Author Topic: Order Status  (Read 1521 times)

encreplus

  • Jr. Member
  • **
  • Posts: 229
    • Dr-ink
  • VirtueMart Version: 3.0.10
Order Status
« 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9747
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Order Status
« Reply #1 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 546
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Order Status
« Reply #2 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
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 546
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Order Status
« Reply #3 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.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

encreplus

  • Jr. Member
  • **
  • Posts: 229
    • Dr-ink
  • VirtueMart Version: 3.0.10
Re: Order Status
« Reply #4 on: February 16, 2020, 19:25:33 pm »
The quote was not from the correct post , sorry

encreplus

  • Jr. Member
  • **
  • Posts: 229
    • Dr-ink
  • VirtueMart Version: 3.0.10
Re: Order Status
« Reply #5 on: February 16, 2020, 19:28:46 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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9747
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Order Status
« Reply #6 on: February 16, 2020, 20:00:00 pm »
if($this->orderDetails['details']['BT']->order_status = 'X'){
   // do something
}
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

encreplus

  • Jr. Member
  • **
  • Posts: 229
    • Dr-ink
  • VirtueMart Version: 3.0.10
Re: Order Status
« Reply #7 on: February 16, 2020, 21:34:27 pm »
if($this->orderDetails['details']['BT']->order_status = 'X'){
   // do something
}

Wow big thanks , will try this and get back with results ;)

encreplus

  • Jr. Member
  • **
  • Posts: 229
    • Dr-ink
  • VirtueMart Version: 3.0.10
Re: Order Status
« Reply #8 on: February 16, 2020, 21:40:23 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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9747
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Order Status
« Reply #9 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation