Different text for each status mail

  • Posts: 159
  • Thank you received: 2
8 years 9 months ago #230624

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

Hi,
I wonder, if there is a way to have more than two options to use a customized text in the status mails that are send out to the customer.
I added a 'reminder' status for unpaid orders. It would be great, if I could connect this new status with another mail than the 'confirmed' one. At the moment I open each mail and paste and copy the reminder text before I send it.
Is there a way to do this?
Thanks
Roger

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

  • Posts: 13201
  • Thank you received: 2322
8 years 9 months ago #230626

Hi,

The easiest way would be to edit the "confirmed" email and add some PHP code to display the desired text based on the order status.
Something like:

<?php
if($data->order->order_status == 'unpaid'){
    echo "Your desired text";
}
?>

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

Time to create page: 0.065 seconds
Powered by Kunena Forum