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

#   Send email with coupon code after first order

##

- **[vanway](/forum/user/33071-vanway "View vanway's Profile")**
- [![vanway's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33071.png)](/forum/user/33071-vanway "View vanway's Profile") Topic Author
- [ Offline](/forum/user/33071-vanway)

Less More

- Posts: 129
- Thank you received: 2
-
-
-
- [](http://www.tiendamat.com)
-

10 years 7 months ago [\#238100](#238100) by [vanway](/forum/user/33071-vanway "View vanway's Profile")  *[Send email with coupon code after first order](/forum/44-mass-actions/884126-send-email-with-coupon-code-after-first-order#238100 "-- url of the page with the problem -- :   www.tiendamat.com  -- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  I've been trying to set up a mass action to send an email to our costumer when they do their first order, with a coupon gift for a 5% discount on the second order.  I have no problems creating the coupon, but hasn't been able to create the mass action. Is there any way to do it?  Thank you very much.")* was created by *[vanway](/forum/user/33071-vanway "View vanway's Profile")*

-- url of the page with the problem -- : [ www.tiendamat.com](http://www.tiendamat.com)
-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1

I've been trying to set up a mass action to send an email to our costumer when they do their first order, with a coupon gift for a 5% discount on the second order.

I have no problems creating the coupon, but hasn't been able to create the mass action. Is there any way to do it?

Thank you very much.

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

10 years 7 months ago [\#238111](#238111) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send email with coupon code after first order](/forum/44-mass-actions/884126-send-email-with-coupon-code-after-first-order#238111 "-- url of the page with the problem -- :   www.tiendamat.com  -- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  I've been trying to set up a mass action to send an email to our costumer when they do their first order, with a coupon gift for a 5% discount on the second order.  I have no problems creating the coupon, but hasn't been able to create the mass action. Is there any way to do it?  Thank you very much.")*

Hi,

You need to enter user.user_email in the field "To address" of your action in your mass action so that the email will be sent to the customer of the order. You also want to use a trigger "after an order is updated" and a filter on the order status equal to "confirmed".

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

- **[vanway](/forum/user/33071-vanway "View vanway's Profile")**
- [![vanway's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33071.png)](/forum/user/33071-vanway "View vanway's Profile") Topic Author
- [ Offline](/forum/user/33071-vanway)

Less More

- Posts: 129
- Thank you received: 2
-
-
-
- [](http://www.tiendamat.com)
-

10 years 7 months ago [\#238206](#238206) by [vanway](/forum/user/33071-vanway "View vanway's Profile")  Replied by *[vanway](/forum/user/33071-vanway "View vanway's Profile")* on topic *[Send email with coupon code after first order](/forum/44-mass-actions/884126-send-email-with-coupon-code-after-first-order#238206 "-- url of the page with the problem -- :   www.tiendamat.com  -- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  I've been trying to set up a mass action to send an email to our costumer when they do their first order, with a coupon gift for a 5% discount on the second order.  I have no problems creating the coupon, but hasn't been able to create the mass action. Is there any way to do it?  Thank you very much.")*

Thanks for the answer Nicolas,

Just a question: I really don't understand the fields of Limitations ("start" and "value"). So putting 1 and 1 there, will only trigger on the first order?

PS: Tried to solve it by myself, but on mass actions, when you click on "help" it says "Documentation currently not available : massaction-form"

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

10 years 7 months ago [\#238218](#238218) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send email with coupon code after first order](/forum/44-mass-actions/884126-send-email-with-coupon-code-after-first-order#238218 "-- url of the page with the problem -- :   www.tiendamat.com  -- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5.1  I've been trying to set up a mass action to send an email to our costumer when they do their first order, with a coupon gift for a 5% discount on the second order.  I have no problems creating the coupon, but hasn't been able to create the mass action. Is there any way to do it?  Thank you very much.")*

Hi,

If you put 1 and 1 in them, it won't do anything.
The "start" is the position of the element after which the process will run.
The "value" is the number of elements it will process.
So suppose that you have 2000 products after the filters, and that you configured 0 and 500 (like by default), the actions will run for the first 500 products. To process the actions for the next 500 products, you'll have to change the limitations to 500 and 500, then, 1000 and 500 and finally 1500 and 500.
Or you could do it once with 0 and 2000, but then your server might not have resources restrictions high enough for the processing and it might crash.
The limitations allows for processing large amounts of elements in smaller chuncks.

PS: Thank you. We've fixed that.

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

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