-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.6
-- PHP version -- : 5.4.38
Hi,
I set up the confirmation email so that only some information show when the order_status is "confirmed" and when the order_status is "shipped".
Now what i would like to do is depending on the order_status change the subject line.
I have looked in the language file, but the status is %s.
So what i tried to do in the pre-load of the confirmation email is the following:
if($data->order_status=='confirmed') {
$data->$mail->subject = 'Custom text for order confirmation;
} elseif($data->order_status=='shipped') {
$data->$mail->subject = 'Custom text for shipped order';
}
Now i found the code $data->$mail->subject = 'Custom text for order confirmation; in one of the thread, but i can seem to make it work with the if statement.
Any help would be appreciated.
Thanks