Author Topic: Changing the template after the purchase order sent  (Read 2333 times)

robertosalemi

  • Jr. Member
  • **
  • Posts: 56
  • Web Programmer
  • Skype Name: robertino_salemi
  • VirtueMart Version: 1.1.2
Changing the template after the purchase order sent
« on: January 03, 2014, 16:50:59 pm »
Hello!
I want to change the template of the email that is sent to the client and the administrator when the purchase has been completed: I would not see the second column in case the user selection as a shipping address to "default", then when the two addresses are the same?

Here we report a mail order:


Tranks.

fsv

  • Jr. Member
  • **
  • Posts: 68
Re: Changing the template after the purchase order sent
« Reply #1 on: January 03, 2014, 22:22:50 pm »
Edit a file /components/com_virtuemart/themes/YourTheme/templates/order_emails/confirmation_email.tpl.php
Condition for display of the block with ShipTo:
if ($dbst->f('address_type') == 'ST') {
   // to show "ShipTo"
}

robertosalemi

  • Jr. Member
  • **
  • Posts: 56
  • Web Programmer
  • Skype Name: robertino_salemi
  • VirtueMart Version: 1.1.2
Re: Changing the template after the purchase order sent
« Reply #2 on: March 02, 2014, 15:41:49 pm »
Perfect, works great.

Thank you!