- Posts: 26
- Thank you received: 0
Specific text when an order is cancelled
- edizioniromena
-
Topic Author
- Offline
Less
More
10 years 11 months ago #217279
by edizioniromena
Specific text when an order is cancelled was created 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
-- 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.
10 years 11 months ago #217317
by nicolas
Replied by nicolas on topic Specific text when an order is cancelled
Hi,
You can add such code:
in the HTML version of that email via the menu System>Emails
You can add such code:
Code:
<?php if($data->order_status=='cancelled'){ ?>
My text
<?php } ?>
The following user(s) said Thank You: edizioniromena
Please Log in or Create an account to join the conversation.
- edizioniromena
-
Topic Author
- Offline
Less
More
- Posts: 26
- Thank you received: 0
10 years 11 months ago #217371
by edizioniromena
Replied by edizioniromena on topic Specific text when an order is cancelled
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?
Thank you again
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 } ?>
Please Log in or Create an account to join the conversation.
10 years 11 months ago #217377
by Xavier
Replied by Xavier on topic Specific text when an order is cancelled
Hi,
Yes indeed, but "!=" is enough.
Yes indeed, but "!=" is enough.
The following user(s) said Thank You: edizioniromena
Please Log in or Create an account to join the conversation.
- edizioniromena
-
Topic Author
- Offline
Less
More
- Posts: 26
- Thank you received: 0
10 years 11 months ago #217489
by edizioniromena
Replied by edizioniromena on topic Specific text when an order is cancelled
Ah, ok! 
Thank you again, i've tested and it works!
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