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
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
Thank you so much for your kind reply i will test it today and will post the result.
Regards
Sadique Khan