VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: NielsJE on June 16, 2014, 20:53:32 PM

Title: Shipment and Payment names not shown on order confirmation mail
Post by: NielsJE on June 16, 2014, 20:53:32 PM
Hello,

I searched all the web for this, but can't find anything related.

The problem is that both shipment name and payment name are not showing on the order confirmation email to shopper and vendor.
The price amounts from shipment and payment are showing correctly in email.
Strange thing is that all is showing correct on the FE order view (index.php?option=com_virtuemart&view=invoice&layout=mail&tmpl=component&virtuemart_order_id=1060).

We are using shipment/payment logo's.
We use a template override, but even without override it doesn't showing.

Joomla 2.5.20
Virtuemart 2.0.26d
I am currently not able to upgrade Virtuemart to 2.6 as our server doesn't have PHP5.3 yet :( Our provider is busy with updating it.

The
From invoice_items.php:
<tr>
<td align="left" class="pricePad" colspan="5"><?php echo $this->orderDetails['shipmentName'?></td>
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment_tax$this->currency?></span> </td>
<?php ?>
<td align="right"><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment$this->currency); ?></td>
</tr>

<tr>
<td align="left" class="pricePad" colspan="5"><?php echo $this->orderDetails['paymentName'?></td>
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_payment_tax$this->currency?></span> </td>
<?php ?>
<td align="right"><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_payment$this->currency); ?></td>
</tr>


Hope someone can help me out with this.
Title: Re: Shipment and Payment names not shown on order confirmation mail
Post by: GJC Web Design on June 16, 2014, 22:38:55 PM
AS you know the templates are shared so it can't be in there..

The ship & payment names are held in the appropriate lang defined tables e.g. jos_virtuemart_paymentmethods_en_gb

is your site multilingual?  Could that have some bearing on it? Are the names saved in all langs?

Perhaps you can echo out the $view in the renderMail () function in the FE shopfunctions.php to see what is being rendered

Title: Re: Shipment and Payment names not shown on order confirmation mail
Post by: NielsJE on June 19, 2014, 18:53:10 PM
Hello GJC,

Thanks your your reply, we have a multilangual website using core Joomla/Virtuemart translation tool (so no 3th pary extensions for translation).

I checked if every shipments and payments are translated in each language and they are.
I also tried to echo out the $view in rendermail function but I can't find it in both files shopperfunctionsf (FE) and shopperfunctions (BE).
What I did was echo the $body from sendVmMail() function. This shows the email content for both shopper and vendor. No one shows the selected shipment or payment method.

I don't know why this is happening because as I said the cart and (index.php?option=com_virtuemart&view=invoice&layout=mail&tmpl=component&virtuemart_order_id=1060) is showing all correctly.

Thanks for any help.