Different e-mails

  • Posts: 69
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
11 months 2 weeks ago #357308

-- HikaShop version -- : 4.7.5 [2308101603]
-- Joomla version -- : 4.2.9
-- PHP version -- : 7

Hi, because I sell digital products and subscriptions, is there a way to create different order e-mail confermation related to the two different purchases?
Thank you
Francesco

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 months 2 weeks ago #357314

Hi,

It's possible. In the HTML code of your email, you can use such code:

<?php 
$layout = 'layout_1';
foreach($data->cart->products as $product) {
  if($product->order_product_code == 'xxx')
   $layout = 'layout_2';
}
if($layout_1) {
?>
HTML for layout 1
<?php } else { ?>
HTML for layout 2
<?php } ?>

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

  • Posts: 69
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
11 months 1 week ago #357417

Thank you!
Regards
Francesco

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

Time to create page: 0.058 seconds
Powered by Kunena Forum