Skip to main content

Specific text when an order is cancelled

More
10 years 11 months ago #217279 by edizioniromena
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.3

Hi,

We would like to insert a specific text message in the email that's sent to the customer, in the case the order is being cancelled.
I think that the email template is the "ORDER_STATUS_NOTIFICATION_SUBJECT".
Can i insert some specific text that must only appear in the case the "order status notification" is about a cancelled order?

Thank you

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #217317 by nicolas
Hi,

You can add such code:
Code:
<?php if($data->order_status=='cancelled'){ ?> My text <?php } ?>
in the HTML version of that email via the menu System>Emails
The following user(s) said Thank You: edizioniromena

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #217371 by edizioniromena
Thank you for your answer, i will try it as soon as possible!
If i'd like to exclude some particular content if the order is cancelled, can i use this code?
Code:
<?php if($data->order_status!=='cancelled'){ ?> Excluded text <?php } ?>
Thank you again

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #217377 by Xavier
Hi,

Yes indeed, but "!=" is enough.
The following user(s) said Thank You: edizioniromena

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #217489 by edizioniromena
Ah, ok! :)
Thank you again, i've tested and it works!

Please Log in or Create an account to join the conversation.

Time to create page: 0.203 seconds
Powered by Kunena Forum