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

#   Coupon does not unload automatically

##

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

Less More

- Posts: 142
- Thank you received: 3
-
-

14 years 2 weeks ago [\#73321](#73321) by [ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")  *[Coupon does not unload automatically](/forum/3-bug-report/73321-coupon-does-not-unload-automatically#73321 "Hi  I'm using the business edition  In my case I have a coupon that Auto load in cart if a value is over 50'000yen.  But if the customer does adjust the cart at the end, (as example: take out one product) and the shopping value goes under 50'000yen then the coupon stays there! Is there a way to change that?  The other way around, if someone adds one product in the end of the checkout (in the cart) and the value goes over 50'000yen, then the coupon adds automatically, and that's great.  Best regards Raphael")* was created by *[ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")*

Hi

I'm using the business edition

In my case I have a coupon that Auto load in cart if a value is over 50'000yen.

But if the customer does adjust the cart at the end, (as example: take out one product) and the shopping value goes under 50'000yen then the coupon stays there!
Is there a way to change that?

The other way around, if someone adds one product in the end of the checkout (in the cart) and the value goes over 50'000yen, then the coupon adds automatically, and that's great.

Best regards
Raphael

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83MzMyMS1jb3Vwb24tZG9lcy1ub3QtdW5sb2FkLWF1dG9tYXRpY2FsbHk/dG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

14 years 1 week ago [\#73602](#73602) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Coupon does not unload automatically](/forum/3-bug-report/73321-coupon-does-not-unload-automatically#73602 "Hi  I'm using the business edition  In my case I have a coupon that Auto load in cart if a value is over 50'000yen.  But if the customer does adjust the cart at the end, (as example: take out one product) and the shopping value goes under 50'000yen then the coupon stays there! Is there a way to change that?  The other way around, if someone adds one product in the end of the checkout (in the cart) and the value goes over 50'000yen, then the coupon adds automatically, and that's great.  Best regards Raphael")*

Hi,

We tried to reproduce the problem on our end but it's working fine.
Can you give a link to that website with a test coupon code so that we can see the problem ?

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

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

Less More

- Posts: 142
- Thank you received: 3
-
-

14 years 1 week ago [\#73636](#73636) by [ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")  Replied by *[ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")* on topic *[Re: Coupon does not unload automatically](/forum/3-bug-report/73321-coupon-does-not-unload-automatically#73636 "Hi  I'm using the business edition  In my case I have a coupon that Auto load in cart if a value is over 50'000yen.  But if the customer does adjust the cart at the end, (as example: take out one product) and the shopping value goes under 50'000yen then the coupon stays there! Is there a way to change that?  The other way around, if someone adds one product in the end of the checkout (in the cart) and the value goes over 50'000yen, then the coupon adds automatically, and that's great.  Best regards Raphael")*

Hi

Your right the coupon get away. Strange as I tried this many times before reporting.

But I have an other problem. When the coupon is added and then something changes in the cart and the value goes under the 50'000yen then the system leaves the window "cart" and the message "cart is empty" shows and need to do the check out process again. see the photo that shows the cart is empty but there are articles in the cart (shown left).

[ ![cart-empty.jpg](/forum/attachment/6637) ](/forum/attachment/6637 "cart-empty.jpg")

If the value is under 50'0000yen and the articles changes then window "cart" just get updated and stays, the same if the value is always over 50'000yen and product changes then the window "cart" gets updated and stays. Is this maybe just a set up problem?

My shop is not online now I'll send you the access by mail.

Thanks
Raphael

- [ ![cart-empty.jpg](/forum/attachment/6637) ](/forum/attachment/6637 "cart-empty.jpg") [ ](/forum/attachment/6637?download=1 "cart-empty.jpg")

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

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

Less More

- Posts: 142
- Thank you received: 3
-
-

14 years 14 hours ago [\#76264](#76264) by [ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")  Replied by *[ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")* on topic *[Re: Coupon does not unload automatically](/forum/3-bug-report/73321-coupon-does-not-unload-automatically#76264 "Hi  I'm using the business edition  In my case I have a coupon that Auto load in cart if a value is over 50'000yen.  But if the customer does adjust the cart at the end, (as example: take out one product) and the shopping value goes under 50'000yen then the coupon stays there! Is there a way to change that?  The other way around, if someone adds one product in the end of the checkout (in the cart) and the value goes over 50'000yen, then the coupon adds automatically, and that's great.  Best regards Raphael")*

Hi Nicolas

Have you tried to unload the coupon on my site?

I put it online for you:
here the address: [ www.shop.epower.jp](http://www.shop.epower.jp)

just add wine bottles up to 50'000JPY, then the coupon will loads automatically into the cart. After take one bottle away, so that the value goes under 50'000JPY. You will see that the cart window reloads and the message the cart is empty shows up! Even there are still bottles in the cart.

Best regards
Raphael

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83MzMyMS1jb3Vwb24tZG9lcy1ub3QtdW5sb2FkLWF1dG9tYXRpY2FsbHk/dG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

13 years 11 months ago [\#76543](#76543) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Coupon does not unload automatically](/forum/3-bug-report/73321-coupon-does-not-unload-automatically#76543 "Hi  I'm using the business edition  In my case I have a coupon that Auto load in cart if a value is over 50'000yen.  But if the customer does adjust the cart at the end, (as example: take out one product) and the shopping value goes under 50'000yen then the coupon stays there! Is there a way to change that?  The other way around, if someone adds one product in the end of the checkout (in the cart) and the value goes over 50'000yen, then the coupon adds automatically, and that's great.  Best regards Raphael")*

Hi,

You can remove the lines:
$this-&gt;setRedirect( $this-&gt;redirect_url,JText::_('CART_EMPTY'));
$this-&gt;redirect();
in the file components/com_hikashop/controllers/checkout.php in order to avoid the problem. However, I'm still not sure as to why you have that problem.
That would require a FTP access in order to debug the issue to really understand why you have that problem since we don't have it on our end.

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

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

Less More

- Posts: 142
- Thank you received: 3
-
-

13 years 11 months ago [\#76863](#76863) by [ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")  Replied by *[ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")* on topic *[Re: Coupon does not unload automatically](/forum/3-bug-report/73321-coupon-does-not-unload-automatically#76863 "Hi  I'm using the business edition  In my case I have a coupon that Auto load in cart if a value is over 50'000yen.  But if the customer does adjust the cart at the end, (as example: take out one product) and the shopping value goes under 50'000yen then the coupon stays there! Is there a way to change that?  The other way around, if someone adds one product in the end of the checkout (in the cart) and the value goes over 50'000yen, then the coupon adds automatically, and that's great.  Best regards Raphael")*

Hi

I tried to remove the lines: and it worked. But now I updated to Hikashop 2.0 and I have the same problem.
There is no line that fits your description anymore. Can you tell me which line I have to delete in Hikashop 2.0?

Best regards
Raphael

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83MzMyMS1jb3Vwb24tZG9lcy1ub3QtdW5sb2FkLWF1dG9tYXRpY2FsbHk/dG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

13 years 11 months ago [\#76864](#76864) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Coupon does not unload automatically](/forum/3-bug-report/73321-coupon-does-not-unload-automatically#76864 "Hi  I'm using the business edition  In my case I have a coupon that Auto load in cart if a value is over 50'000yen.  But if the customer does adjust the cart at the end, (as example: take out one product) and the shopping value goes under 50'000yen then the coupon stays there! Is there a way to change that?  The other way around, if someone adds one product in the end of the checkout (in the cart) and the value goes over 50'000yen, then the coupon adds automatically, and that's great.  Best regards Raphael")*

Hi,

The lines are still the same on HikaShop 2.0.
Please double check.

The following user(s) said Thank You: [ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")

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

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

Less More

- Posts: 142
- Thank you received: 3
-
-

13 years 11 months ago -  13 years 11 months ago [\#76885](#76885) by [ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")  Replied by *[ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile")* on topic *[Re: Coupon does not unload automatically](/forum/3-bug-report/73321-coupon-does-not-unload-automatically#76885 "Hi  I'm using the business edition  In my case I have a coupon that Auto load in cart if a value is over 50'000yen.  But if the customer does adjust the cart at the end, (as example: take out one product) and the shopping value goes under 50'000yen then the coupon stays there! Is there a way to change that?  The other way around, if someone adds one product in the end of the checkout (in the cart) and the value goes over 50'000yen, then the coupon adds automatically, and that's great.  Best regards Raphael")*

Hi yes it is true!

I had to be blind when looking for that line.....

But I can tell you that I did set up one more shop in one other domain and there was the same mistake....
Anyway, it worked out well now.

thank you
Raphael

Last edit: 13 years 11 months ago by [ePower2007](/forum/user/8541-epower2007 "View ePower2007's Profile"). Reason: additional information

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

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