Modify "confirmed order" email based on purchase

  • Posts: 49
  • Thank you received: 1
9 years 11 months ago #181764

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.34
-- Error-message(debug-mod must be tuned on) -- : no error

The owner of this "shop" wants to customize the order confirmation email based on what is purchased. For instance, this Hikashop includes the affiliate setup. The owner would like to welcome them to the affiliate group and provide a link to an article he has created giving them instructions on how the affiliate setup works, IF They purchased the affiliate group setup.

They way I have them setup, this should be able to be determined by their user group. There are only a couple things to purchase, two of them will give you an additional usergroup after purchase. Those happen to be the two that needs a "custom" addition to the email.

Could this be as simple as an if statement, based on the user group, then include something that I can hard code into the language file?

EDIT: Or it could just be determined by the product ID (obviously) because that is really what is going on.

Last edit: 9 years 11 months ago by YeeP.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 11 months ago #181781

Hi,

It's a bit similar to this thread:
hikashop.com/forum/orders-management/872...r-status.html#177168
you could do something like this:

<?php foreach($data->cart->products as $product){
 if($product->product_id==18){
  echo "special text for product 18";
 }
} ?>

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

Time to create page: 0.042 seconds
Powered by Kunena Forum