Specific text when an order is cancelled

  • Posts: 26
  • Thank you received: 0
9 years 1 month ago #217279

-- 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.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
9 years 1 month ago #217317

Hi,

You can add such 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.

  • Posts: 26
  • Thank you received: 0
9 years 1 month ago #217371

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?

<?php if($data->order_status!=='cancelled'){ ?>
Excluded text
<?php } ?>
Thank you again

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

  • Posts: 13201
  • Thank you received: 2322
9 years 1 month ago #217377

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.

  • Posts: 26
  • Thank you received: 0
9 years 1 month ago #217489

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.071 seconds
Powered by Kunena Forum