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

#   add to cart link with coupon code

##

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile")
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

9 years 3 months ago [\#273981](#273981) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#273981 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hi,

Forgive me if I misunderstood. So there is no possibility to add coupon via url as for now? Only products?

Adding product via url works fine. We send abandoned cart email via acymailing which we modify for every user based on abandoned cart in hikashop. As we have 2-5 abandoned carts per day it's takes 5-10 minutes to send such emails to user. Not a big deal until its summer...
What we found that 30% will return and create order...So its worth it.
However some shops could have more abandoned carts and having real abandoned cart + not paid order reminder ( with having products, coupons and such links inside email ) is a feature must have. It could increase sales drastically.

I remember acymailing was talking about such feature when asked but as for now there is nothing new from them.

So if you could add this to your TODO list and implement it in near future and not after years it would be really great!

Thank you for understanding.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi84NzAyNzMtYWRkLXRvLWNhcnQtbGluay13aXRoLWNvdXBvbi1jb2RlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

9 years 3 months ago [\#273982](#273982) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#273982 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hi,

It's actually planned for next version of HikaShop, which is to be released soon.
The implementation was actually simpler than what we expected.
In fact, you can already add it to HikaShop 3.1.1 by adding the code: Code:

if($status &#124;&#124; is_null($status)){ $coupon = JRequest::getString('coupon'); if(!empty($coupon)) $cartClass-&gt;addCoupon($cart_id, $coupon); }

before the code: Code:

$cart = $cartClass-&gt;getFullCart($cart_id); if(in_array($tmpl, array('ajax', 'raw'))) { $ret = $this-&gt;getAjaxCartData($used_data, $cart, $status); echo json_encode($ret); exit; }

in the file components/com_hikashop/controllers/product.php

And then you can just add a parameter &amp;coupon=XXX to the add to cart URL you're using and it will do the job.

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

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

- **[Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")**
- [![Forward Marketing's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")
- [ Offline](/forum/user/45357-forward-marketing)

Less More

- Posts: 11
- Thank you received: 1
-
-

9 years 2 months ago -  9 years 2 months ago [\#276934](#276934) by [Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")  Replied by *[Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#276934 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hi,

i´ve tried your method but it does not work for me. I´ve added the code
Code:

if($status &#124;&#124; is_null($status)){ $coupon = JRequest::getString('coupon'); if(!empty($coupon)) $cartClass-&gt;addCoupon($cart_id, $coupon); }

before Code:

$cart = $cartClass-&gt;getFullCart($cart_id); if($tmpl == 'ajax') { $ret = $this-&gt;getAjaxCartData($used_data, $cart, $status); echo json_encode($ret); exit; }

in components/com_hikashop/controllers/product.php

and use the following Product url:

mydomain.de/index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;product_id=2&amp;coupon=58745

I´ve also tried to use the cupon ID but nothing of them works, the product is in the cart but without the code....

I´ve using Hikashop 3.1.1 .

Thanks in advance!

Last edit: 9 years 2 months ago by [Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi84NzAyNzMtYWRkLXRvLWNhcnQtbGluay13aXRoLWNvdXBvbi1jb2RlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

9 years 2 months ago [\#276938](#276938) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#276938 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hi,

I've tried on my end with the 3.2.0 (all the patches applied including this end which will be in the next release) and it's working fine.
The only reason it wouldn't work is if the coupon is not authorized to be added.
So try with a coupon code that doesn't have any restriction.

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

- **[Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")**
- [![Forward Marketing's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")
- [ Offline](/forum/user/45357-forward-marketing)

Less More

- Posts: 11
- Thank you received: 1
-
-

9 years 2 months ago [\#276973](#276973) by [Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")  Replied by *[Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#276973 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hello Nicolas,

the coupon code has no restrictions but it still does not work.

should i use the coupon id or the coupon code in the url?

I´ve tried both, unfortunately without any effect.

regards

Chris

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi84NzAyNzMtYWRkLXRvLWNhcnQtbGluay13aXRoLWNvdXBvbi1jb2RlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

9 years 2 months ago [\#276988](#276988) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#276988 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hi,

It's the coupon code you need to use.

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

- **[Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")**
- [![Forward Marketing's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")
- [ Offline](/forum/user/45357-forward-marketing)

Less More

- Posts: 11
- Thank you received: 1
-
-

9 years 2 months ago -  9 years 2 months ago [\#276998](#276998) by [Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")  Replied by *[Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#276998 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

hi nicolas,

it does not work for me as i said above.

What´s your timeline for the release of V 3.2.0 ?

Last edit: 9 years 2 months ago by [Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi84NzAyNzMtYWRkLXRvLWNhcnQtbGluay13aXRoLWNvdXBvbi1jb2RlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

9 years 2 months ago [\#277005](#277005) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#277005 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hi,

During this week. I Just need some time to finish preparing the release...

The following user(s) said Thank You: [Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")

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

- **[Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")**
- [![Forward Marketing's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")
- [ Offline](/forum/user/45357-forward-marketing)

Less More

- Posts: 11
- Thank you received: 1
-
-

9 years 1 month ago -  9 years 1 month ago [\#277578](#277578) by [Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")  Replied by *[Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#277578 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

[strike]I´ve installed the new version 3.2 and tried it as i wrote above but it still does not work[/strike]

It´s working fine now, maybe it was a cache problem...

Last edit: 9 years 1 month ago by [Forward Marketing](/forum/user/45357-forward-marketing "View Forward Marketing's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 1 month ago -  9 years 1 month ago [\#277579](#277579) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#277579 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hello,

I'm glad it's working for you now.
Please understand that without any details about what you're doing we can't understand what is wrong and we can't for sure reproduce your issue since it's working fine for us.
So it would be better if you provide more information about your coupon, the URL, what is "not working", etc when you contact us next time for another issue.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 9 years 1 month ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

- **[zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")**
- [![zipadyduda's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30673.gif)](/forum/user/30673-zipadyduda "View zipadyduda's Profile") Topic Author
- [ Offline](/forum/user/30673-zipadyduda)

Less More

- Posts: 140
- Thank you received: 0
-
-

8 years 11 months ago [\#282437](#282437) by [zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")  Replied by *[zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#282437 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

I'm on 3.2.1 now. Do I still have to add code to make this work?
Obviously the problem with hacking the code is that it fails after every update.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi84NzAyNzMtYWRkLXRvLWNhcnQtbGluay13aXRoLWNvdXBvbi1jb2RlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

8 years 11 months ago [\#282438](#282438) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#282438 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hi,

No. That is now supported by default.

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

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

- **[zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")**
- [![zipadyduda's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30673.gif)](/forum/user/30673-zipadyduda "View zipadyduda's Profile") Topic Author
- [ Offline](/forum/user/30673-zipadyduda)

Less More

- Posts: 140
- Thank you received: 0
-
-

8 years 11 months ago [\#282649](#282649) by [zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")  Replied by *[zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#282649 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

That's awesome thanks.

Now if only we could add more than one type of item to the cart with one link.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi84NzAyNzMtYWRkLXRvLWNhcnQtbGluay13aXRoLWNvdXBvbi1jb2RlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

8 years 11 months ago [\#282657](#282657) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#282657 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hi,

That's possible too. Since HikaShop 3, you can now add several products at once with a URL link and you can even add the coupon on top of that.
For example, if you set the "Add to cart on listings" option of the HikaShop configuration to "global on listing", it will add all the products for which you set a quantity on the listings when you click on the main add to cart button at the button. So you just need to use the same parameter names than this button uses to add several products at once.

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile")
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 11 months ago [\#282692](#282692) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#282692 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hi,

Any chance Hikashop could consider to develop abandoned and order not paid reminder emails for real? Which could be added to existing Emails feature?

It is strange that Hikashop is about 7 years old and there is not such emails by default. All proper shopping carts have it without need extra component or development....

I can say that we do send such emails manually and our profit per month has increased about 15%. Some people had issues with payment some had issues during checkout. So to all who is using Hikashop I suggest to try to send such emails...This will definetely return some customers and increase your profit!

Kind Regards

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

- **[zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")**
- [![zipadyduda's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30673.gif)](/forum/user/30673-zipadyduda "View zipadyduda's Profile") Topic Author
- [ Offline](/forum/user/30673-zipadyduda)

Less More

- Posts: 140
- Thank you received: 0
-
-

8 years 11 months ago [\#282708](#282708) by [zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")  Replied by *[zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#282708 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

What is the syntax of that? I tried and it's not working, it only adds one item to cart.

example

[ www.mydomain.com/index.php?option=com\_hi...kout=1&amp;product\_id=24](https://www.mydomain.com/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=20&coupon=XXX&quantity=1&checkout=1&product_id=24)

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

- **[zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")**
- [![zipadyduda's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30673.gif)](/forum/user/30673-zipadyduda "View zipadyduda's Profile") Topic Author
- [ Offline](/forum/user/30673-zipadyduda)

Less More

- Posts: 140
- Thank you received: 0
-
-

8 years 11 months ago [\#282709](#282709) by [zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")  Replied by *[zipadyduda](/forum/user/30673-zipadyduda "View zipadyduda's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#282709 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

I agree, even with acymailing abandoned cart situation is not ideal. However this is probably a topic for a new thread.

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile")
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 11 months ago -  8 years 11 months ago [\#282710](#282710) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#282710 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hi,

It should look like this:
Code:

http://mysite.com/index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;data[XXX]=1&amp;data[XXX]=1&amp;add=1

Where XXX is your product id

Thanks

Last edit: 8 years 11 months ago by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile").

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

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

8 years 11 months ago [\#282719](#282719) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[add to cart link with coupon code](/forum/46-discount-coupon/870273-add-to-cart-link-with-coupon-code?start=20#282719 "-- HikaShop version -- : Business: 2.3.2  Sorry if this was already posted, I couldn't find it. I know about the &quot;Add to cart HTML link&quot; feature. Is there a way to automatically populate a coupon / discount code so that when the link is followed, the user doesn't have to type in the code?  Thanks in advance.")*

Hi,

> However this is probably a topic for a new thread.

Yes, it is.
In that thread ; it's unfortunately far from the subject.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

[](#top)
