News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Specific email sent to shopper

Started by holanpan7, November 09, 2019, 21:21:29 PM

Previous topic - Next topic

holanpan7

Hello,

I am using joomla! 3.9.13 +VirtueMart 3.6.2 10159

When I update the order status to shipped, il would like that the email sent to the shopper to only includes the mail_html_header and mail_html_shopper.
Because, I only wants to send a message with tracking number that I will put in comments. I don't need to send again the order items details.

Does anyone has any idea of how it could be done?

Thanks!

GJC Web Design

in mail_html use an if statement to inlc/exclu the different templates

if($this->orderDetails['details']['BT']->order_status_name == 'whatever' ){

//do something
}

check what is in $this->orderDetails['details']['BT']  these days -- the status might be there C, P, etc

print 'Debug Line '.__LINE__.' orderDetails <pre>'; print_r ($this->orderDetails['details']['BT']); print "</pre><br />\n";
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

holanpan7

Thanks!

I got it to work. For info I used order_status i/o order_status_name and I created a new template.

;D