VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: holanpan7 on November 09, 2019, 21:21:29 PM

Title: Specific email sent to shopper
Post by: holanpan7 on November 09, 2019, 21:21:29 PM
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!
Title: Re: Specific email sent to shopper
Post by: GJC Web Design on November 09, 2019, 23:08:36 PM
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";
Title: Re: Specific email sent to shopper
Post by: holanpan7 on November 10, 2019, 00:21:48 AM
Thanks!

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

;D