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

#   Automatic coupon on a per-order basis

##

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

Less More

- Posts: 13
- Thank you received: 1
-
-

10 years 5 months ago [\#242334](#242334) by [stephanie.pomerleau](/forum/user/39006-stephanie-pomerleau "View stephanie.pomerleau's Profile")  *[Automatic coupon on a per-order basis](/forum/46-discount-coupon/884964-automatic-coupon-on-a-per-order-basis#242334 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.1 -- Error-message(debug-mod must be tuned on) -- : (no error)  Hi- I have a customer who would like to automate coupon creation on a per-order basis. That is, the first customer who places an order gets a coupon, then the 25th order placed, that customer gets a coupon, and every order that is a multiple of 25, the customer who places it gets a coupon. Is there any way to automatically create a coupon on a per-order basis? I don't think that it needs to be applied to the order in progress, but a coupon or discount that can be used on a future purchase. Thanks! Stephanie")* was created by *[stephanie.pomerleau](/forum/user/39006-stephanie-pomerleau "View stephanie.pomerleau's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.1
-- Error-message(debug-mod must be tuned on) -- : (no error)

Hi-
I have a customer who would like to automate coupon creation on a per-order basis.
That is, the first customer who places an order gets a coupon, then the 25th order placed, that customer gets a coupon, and every order that is a multiple of 25, the customer who places it gets a coupon.
Is there any way to automatically create a coupon on a per-order basis? I don't think that it needs to be applied to the order in progress, but a coupon or discount that can be used on a future purchase.
Thanks!
Stephanie

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi84ODQ5NjQtYXV0b21hdGljLWNvdXBvbi1vbi1hLXBlci1vcmRlci1iYXNpcz90bXBsPW1hcmtkb3du) 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: 86592
- Thank you received: 14332
-
-

10 years 5 months ago [\#242376](#242376) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Automatic coupon on a per-order basis](/forum/46-discount-coupon/884964-automatic-coupon-on-a-per-order-basis#242376 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.1 -- Error-message(debug-mod must be tuned on) -- : (no error)  Hi- I have a customer who would like to automate coupon creation on a per-order basis. That is, the first customer who places an order gets a coupon, then the 25th order placed, that customer gets a coupon, and every order that is a multiple of 25, the customer who places it gets a coupon. Is there any way to automatically create a coupon on a per-order basis? I don't think that it needs to be applied to the order in progress, but a coupon or discount that can be used on a future purchase. Thanks! Stephanie")*

Hi,

The question is how are you gonna tell the customer that he can use that coupon code ?
I think that what you want to use for that is AcyMailing.
There, you can do two things:
1. Create a newsletter with a HikaShop coupon tag so that HikaShop generates a coupon code and adds it to the email sent each time the email is sent. That's possible with the integration plugin we have made between HikaShop and AcyMailing.
2. Create an AcyMailing mass action with a trigger "after an order is confirmed", a filter to get the email address of the customer last confirmed order if its order_id is a multiple of 25 ( with a MySQL query and this filter [ www.acyba.com/acymailing/309-acymailing-...universalfilter.html](https://www.acyba.com/acymailing/309-acymailing-plugin-universalfilter.html) )
and an action to send that newsletter to the customer's email address.

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

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

Less More

- Posts: 13
- Thank you received: 1
-
-

10 years 5 months ago [\#242477](#242477) by [stephanie.pomerleau](/forum/user/39006-stephanie-pomerleau "View stephanie.pomerleau's Profile")  Replied by *[stephanie.pomerleau](/forum/user/39006-stephanie-pomerleau "View stephanie.pomerleau's Profile")* on topic *[Automatic coupon on a per-order basis](/forum/46-discount-coupon/884964-automatic-coupon-on-a-per-order-basis#242477 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.1 -- Error-message(debug-mod must be tuned on) -- : (no error)  Hi- I have a customer who would like to automate coupon creation on a per-order basis. That is, the first customer who places an order gets a coupon, then the 25th order placed, that customer gets a coupon, and every order that is a multiple of 25, the customer who places it gets a coupon. Is there any way to automatically create a coupon on a per-order basis? I don't think that it needs to be applied to the order in progress, but a coupon or discount that can be used on a future purchase. Thanks! Stephanie")*

Hi Nicolas,
I find this very interesting as an option, and would answer my customer's need to reward customers based on the total number of orders the store receives.

All I would need is the AcyMailing Entreprise version to be able to do that?

I am understanding that I need to set up both steps, where the first one is setting up the actual email containing the coupon, and then step 2 is the trigger that sends out the email (created in step 1) to the correct recipient.
--&gt; is this correct?

Reading from this page ([ ](https://www.acyba.com/acymailing/161-acymailing-plugin-hikashop.html#coupon)[ www.acyba.com/acymailing/161-acymailing-...hikashop.html#coupon](https://www.acyba.com/acymailing/161-acymailing-plugin-hikashop.html#coupon)), it says it can "generate a coupon per receiver in a newsletter " - does this mean that the coupon is restricted so that only that particular user can redeem the coupon? This would be the behaviour I am looking for.

Thanks!
Stephanie

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi84ODQ5NjQtYXV0b21hdGljLWNvdXBvbi1vbi1hLXBlci1vcmRlci1iYXNpcz90bXBsPW1hcmtkb3du) 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: 86592
- Thank you received: 14332
-
-

10 years 5 months ago [\#242518](#242518) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Automatic coupon on a per-order basis](/forum/46-discount-coupon/884964-automatic-coupon-on-a-per-order-basis#242518 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.1 -- Error-message(debug-mod must be tuned on) -- : (no error)  Hi- I have a customer who would like to automate coupon creation on a per-order basis. That is, the first customer who places an order gets a coupon, then the 25th order placed, that customer gets a coupon, and every order that is a multiple of 25, the customer who places it gets a coupon. Is there any way to automatically create a coupon on a per-order basis? I don't think that it needs to be applied to the order in progress, but a coupon or discount that can be used on a future purchase. Thanks! Stephanie")*

Hi,

1. Yes, that would require AcyMailing Enterprise. I would however recommend to first check with the AcyMailing support that they can confirm that what I said is really possible with their mass action system.

2. That's correct.

3. It's not restricted to that user. However, everyone would get a different coupon code which could be used only once. So in that respect, it is kind of limited to that customer.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi84ODQ5NjQtYXV0b21hdGljLWNvdXBvbi1vbi1hLXBlci1vcmRlci1iYXNpcz90bXBsPW1hcmtkb3du) 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.060 seconds

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