News:

Support the VirtueMart project and become a member

Main Menu

Change in "Shipped Order" Email

Started by rage76, April 15, 2019, 17:30:30 PM

Previous topic - Next topic

rage76

hi, I want to include shipping details (like tracking code / docket number" in the "shipped order email"

I add the details in the comment but it does not show in the mail. How do I do that?

J 3.9.5
VM 3.4.2

Jörgen


<?php
$nb
=count($this->orderDetails['history']);
if(
$this->orderDetails['history'][$nb-1]->customer_notified && !(empty($this->orderDetails['history'][$nb-1]->comments))) { 
    echo 
vmText::sprintf('COM_VIRTUEMART_ORDER_COMMENT_WITH_LAST_COMMENT'nl2br($this->orderDetails['history'][$nb-1]->comments));
}
?>


If You mean customer note:

<?php
if(!empty($this->orderDetails['details']['BT']->customer_note)){
   echo 
vmText::sprintf('COM_VIRTUEMART_MAIL_SHOPPER_QUESTION',nl2br($this->orderDetails['details']['BT']->customer_note))

?>



Place it in the right place in Your mail overrides. templates/your-template/html/co_virtuemart/invoice

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

rage76

Thank you Jörgen but I couldn't find the folder named "invoice" in the template overrides.

I did find a folder in the main virtuemart component under "views" folder though. Please guide.

Jörgen

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.