VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: encreplus on February 15, 2020, 16:14:49 PM

Title: Order Status
Post by: encreplus on February 15, 2020, 16:14:49 PM
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
Title: Re: Order Status
Post by: 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
Title: Re: Order Status
Post by: pinochico on February 15, 2020, 19:36:47 PM
Hi,

You can Use Virtuemart Mailing Manager - app for customizing email template for any orders statues:
https://www.minijoomla.org/extensions/virtuemart-mailing-manager
Title: Re: Order Status
Post by: pinochico on February 16, 2020, 10:34:54 AM
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.
Title: Re: Order Status
Post by: encreplus on February 16, 2020, 19:25:33 PM
The quote was not from the correct post , sorry
Title: Re: Order Status
Post by: encreplus on February 16, 2020, 19:28:46 PM
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
Title: Re: Order Status
Post by: GJC Web Design on February 16, 2020, 20:00:00 PM
if($this->orderDetails['details']['BT']->order_status = 'X'){
   // do something
}
Title: Re: Order Status
Post by: encreplus on February 16, 2020, 21:34:27 PM
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 ;)
Title: Re: Order Status
Post by: encreplus on February 16, 2020, 21:40:23 PM
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
Title: Re: Order Status
Post by: GJC Web Design on February 16, 2020, 22:16:30 PM
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