News:

Support the VirtueMart project and become a member

Main Menu

Shipment and Payment names not shown on order confirmation mail

Started by NielsJE, June 16, 2014, 20:53:32 PM

Previous topic - Next topic

NielsJE

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.

GJC Web Design

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

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

NielsJE

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.