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

#   How to sent a different order created email per warehouse

##

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

Less More

- Posts: 212
- Thank you received: 17
-
-

5 years 9 months ago [\#328137](#328137) by [smithshop123](/forum/user/17903-smithshop123 "View smithshop123's Profile")  *[How to sent a different order created email per warehouse](/forum/2-general-talk-about-hikashop/901638-how-to-sent-a-different-order-created-email-per-warehouse#328137 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.25 -- Error-message(debug-mod must be tuned on) -- : none  Hi, we've created a dedicated warehouse for a specific line of products that require a slightly different customer email. The new email will be the same for all of the line. Can you step us through how this would be done (e.g. creating a additional template, entering the alternate info, association with the warehouse)?  Thanks, Ian and Stu")* was created by *[smithshop123](/forum/user/17903-smithshop123 "View smithshop123's Profile")*

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.20
-- PHP version -- : 7.3.25
-- Error-message(debug-mod must be tuned on) -- : none

Hi,
we've created a dedicated warehouse for a specific line of products that require a slightly different customer email. The new email will be the same for all of the line. Can you step us through how this would be done (e.g. creating a additional template, entering the alternate info, association with the warehouse)?

Thanks,
Ian and Stu

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwMTYzOC1ob3ctdG8tc2VudC1hLWRpZmZlcmVudC1vcmRlci1jcmVhdGVkLWVtYWlsLXBlci13YXJlaG91c2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

5 years 9 months ago [\#328139](#328139) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to sent a different order created email per warehouse](/forum/2-general-talk-about-hikashop/901638-how-to-sent-a-different-order-created-email-per-warehouse#328139 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.25 -- Error-message(debug-mod must be tuned on) -- : none  Hi, we've created a dedicated warehouse for a specific line of products that require a slightly different customer email. The new email will be the same for all of the line. Can you step us through how this would be done (e.g. creating a additional template, entering the alternate info, association with the warehouse)?  Thanks, Ian and Stu")*

Hi,

Well, before I can answer your questions, I would you to answer my questions on your project:
- You say that you want a new email to be sent to the customer for the new warehouse, but the normal email would still be sent.
So rather than creating a new email template, wouldn't it be better to modify the existing email ?
- The order creation notification email is sent for the whole order. And in an order you can potentially have products from different warehouses. What should happen in that case ?

Supposing that you're ok with modifying the current email, and that you won't have orders with products from different warehouses in the same order, then the best is to edit the order creation notification email via the menu System&gt;Emails.
There, in the HTML code, you can directly write your PHP code. For example: Code:

&lt;?php $firstProduct = reset($data-&gt;cart-&gt;products); $productClass = hikashop_get('class.product); $product = $productClass-&gt;get($firstProduct-&gt;product_id); if($product-&gt;product_warehouse_id == XX) { echo 'text for purchase of products from the warehouse with the id XX'; } else { echo 'text for purchase of other products'; } ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwMTYzOC1ob3ctdG8tc2VudC1hLWRpZmZlcmVudC1vcmRlci1jcmVhdGVkLWVtYWlsLXBlci13YXJlaG91c2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 212
- Thank you received: 17
-
-

5 years 9 months ago [\#328183](#328183) by [smithshop123](/forum/user/17903-smithshop123 "View smithshop123's Profile")  Replied by *[smithshop123](/forum/user/17903-smithshop123 "View smithshop123's Profile")* on topic *[How to sent a different order created email per warehouse](/forum/2-general-talk-about-hikashop/901638-how-to-sent-a-different-order-created-email-per-warehouse#328183 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.25 -- Error-message(debug-mod must be tuned on) -- : none  Hi, we've created a dedicated warehouse for a specific line of products that require a slightly different customer email. The new email will be the same for all of the line. Can you step us through how this would be done (e.g. creating a additional template, entering the alternate info, association with the warehouse)?  Thanks, Ian and Stu")*

Hi,
We're not confident with coding this. If you can send me the exact changes for the order_creation_notification email it would be appreciated.

Many thanks,
Ian and Stu

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwMTYzOC1ob3ctdG8tc2VudC1hLWRpZmZlcmVudC1vcmRlci1jcmVhdGVkLWVtYWlsLXBlci13YXJlaG91c2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

5 years 9 months ago [\#328186](#328186) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to sent a different order created email per warehouse](/forum/2-general-talk-about-hikashop/901638-how-to-sent-a-different-order-created-email-per-warehouse#328186 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.25 -- Error-message(debug-mod must be tuned on) -- : none  Hi, we've created a dedicated warehouse for a specific line of products that require a slightly different customer email. The new email will be the same for all of the line. Can you step us through how this would be done (e.g. creating a additional template, entering the alternate info, association with the warehouse)?  Thanks, Ian and Stu")*

Hi,

Well, I already gave you the exact changes in my previous message, so I don't know what more you want ?
More than that would require us to know the id of your warehouses and the exact text you want to be different where etc.
But, this is custom work, not user support. If you want us to do the modification for you on your website, that's possible. Please use our contact form to request a quote along with precise information on what you want to be changed in the email and for which case precisely, along with a link to this thread for reference. We'll be able to give you a quote on the job.
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

The following user(s) said Thank You: [smithshop123](/forum/user/17903-smithshop123 "View smithshop123's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwMTYzOC1ob3ctdG8tc2VudC1hLWRpZmZlcmVudC1vcmRlci1jcmVhdGVkLWVtYWlsLXBlci13YXJlaG91c2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 212
- Thank you received: 17
-
-

5 years 9 months ago [\#328305](#328305) by [smithshop123](/forum/user/17903-smithshop123 "View smithshop123's Profile")  Replied by *[smithshop123](/forum/user/17903-smithshop123 "View smithshop123's Profile")* on topic *[How to sent a different order created email per warehouse](/forum/2-general-talk-about-hikashop/901638-how-to-sent-a-different-order-created-email-per-warehouse#328305 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.3.25 -- Error-message(debug-mod must be tuned on) -- : none  Hi, we've created a dedicated warehouse for a specific line of products that require a slightly different customer email. The new email will be the same for all of the line. Can you step us through how this would be done (e.g. creating a additional template, entering the alternate info, association with the warehouse)?  Thanks, Ian and Stu")*

Hi,
we decided to create a custom field in the checkout restricted to the specific product (as per your original advice). This works well.

Many thanks,
Ian and Stu

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwMTYzOC1ob3ctdG8tc2VudC1hLWRpZmZlcmVudC1vcmRlci1jcmVhdGVkLWVtYWlsLXBlci13YXJlaG91c2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.070 seconds

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