News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Hide/Display order email content based on order status???

Started by skhn123, April 21, 2014, 16:38:05 PM

Previous topic - Next topic

skhn123

Hello everyone!

i am using VM Latest and Joomla 2.5.17 and my question is, is it possible to hide or display order email content based on order status. eg: if order status is shipped then i want to hide the item details, some part of order details etc.

Any help/suggestion.

Regards

byPV

Hi,

you can create your own PHP conditions with variable $this->orderDetails['details']['BT']->order_status . This variable contains values P, U, C, etc...

In example ( /templates/{YOUR_TEMPLATE}/html/com_virtuemart/invoice/mail_html.php ):


<?php if ($this->orderDetails['details']['BT']->order_status == 'P') { // Pending ?>
  <p>Text for pending orders....</p>
<?php ?>


Regards,
Pavel

skhn123

Thank you so much for your kind reply i will test it today and will post the result.

Regards
Sadique Khan