[Skip to main content](#vessel-content)

#   Modify "confirmed order" email based on purchase

##

- **[YeeP](/forum/user/33561-yeep "View YeeP's Profile")**
- [![YeeP's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33561-yeep "View YeeP's Profile") Topic Author
- [ Offline](/forum/user/33561-yeep)

Less More

- Posts: 49
- Thank you received: 1
-
-

11 years 11 months ago -  11 years 11 months ago [\#181764](#181764) by [YeeP](/forum/user/33561-yeep "View YeeP's Profile")  *[Modify "confirmed order" email based on purchase](/forum/33-customers/873349-modify-confirmed-order-email-based-on-purchase#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 &quot;shop&quot; 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 &quot;custom&quot; 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.")* was created by *[YeeP](/forum/user/33561-yeep "View YeeP's Profile")*

-- 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: 11 years 11 months ago by [YeeP](/forum/user/33561-yeep "View YeeP's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84NzMzNDktbW9kaWZ5LWNvbmZpcm1lZC1vcmRlci1lbWFpbC1iYXNlZC1vbi1wdXJjaGFzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

11 years 11 months ago [\#181781](#181781) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Modify "confirmed order" email based on purchase](/forum/33-customers/873349-modify-confirmed-order-email-based-on-purchase#181781 "-- 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 &quot;shop&quot; 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 &quot;custom&quot; 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.")*

Hi,

It's a bit similar to this thread:
[ hikashop.com/forum/orders-management/872...r-status.html#177168](https://hikashop.com/forum/orders-management/872627-custom-emails-by-order-status.html#177168)
you could do something like this: Code:

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84NzMzNDktbW9kaWZ5LWNvbmZpcm1lZC1vcmRlci1lbWFpbC1iYXNlZC1vbi1wdXJjaGFzZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.042 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
