Hi,
my aim is to expand the order status notification email (possible in HikaShop Business) like this:
a) add a specific text if status is changed to confirmed
b) add a specific text if status is changed to confirmed AND a specific product (product_name: "My first product") from a specific product_category was bought
So far I solved a) like this (or possibly the code existed in the mail before):
if($data->mail_status === 'bezahlt') {
echo JText::sprintf('Confirming order number. %s on %s.',$url,HIKASHOP_LIVE);
}
else {
echo JText::sprintf('ORDER_STATUS_CHANGED_TO',$url,$data->mail_status);
}
}
To solve b) I am lacking the if condition for my product in the specific product category.
I would appreciate any helping sample code.
Best,
KB