Good day
I need to create a few new order status but how can i add text to each different to be in the email automaticaly like the ones for ship, confirmed ect ...
Ex : need status : Reviews , and send a nice email to the customer invited them to leave a rating and review about their shoping experience with us ;)
I know how to create the status but what file i have to edit to customize the mail ?
Stefan
start by over riding components\com_virtuemart\views\invoice\tmpl\mail_html.php then adapting what is loaded by the order status value
Hi,
You can Use Virtuemart Mailing Manager - app for customizing email template for any orders statues:
https://www.minijoomla.org/extensions/virtuemart-mailing-manager
I don't understand why do ask again?
If You read info about this app, then you know about Targeted marketing template variables.
Create a custom template is very easy.
The quote was not from the correct post , sorry
Quote from: GJC Web Design on February 15, 2020, 19:22:25 PM
start by over riding components\com_virtuemart\views\invoice\tmpl\mail_html.php then adapting what is loaded by the order status value
thanks nice start,
Any idea how do i call the order status ?? i need to show some com_virtuemart_Text to a particular status ;)
stefan
if($this->orderDetails['details']['BT']->order_status = 'X'){
// do something
}
Quote from: GJC Web Design on February 16, 2020, 20:00:00 PM
if($this->orderDetails['details']['BT']->order_status = 'X'){
// do something
}
Wow big thanks , will try this and get back with results ;)
Quote from: GJC Web Design on February 16, 2020, 20:00:00 PM
if($this->orderDetails['details']['BT']->order_status = 'X'){
// do something
}
Why in mail_html.php and not mail_html_shopper.php ?? just to understand
mail_html.php is the base template and loads all the others or one of your own .. so can be anywhere it is suitable to the task your wanting done