News:

Looking for documentation? Take a look on our wiki

Main Menu

Order Status

Started by encreplus, February 15, 2020, 16:14:49 PM

Previous topic - Next topic

encreplus

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

GJC Web Design

start by over riding components\com_virtuemart\views\invoice\tmpl\mail_html.php then adapting what is loaded by the order status value
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

pinochico

Hi,

You can Use Virtuemart Mailing Manager - app for customizing email template for any orders statues:
https://www.minijoomla.org/extensions/virtuemart-mailing-manager
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

pinochico

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.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

encreplus

The quote was not from the correct post , sorry

encreplus

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

GJC Web Design

if($this->orderDetails['details']['BT']->order_status = 'X'){
   // do something
}
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

encreplus

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 ;)

encreplus

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

GJC Web Design

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
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