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

#   Coupon

##

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

Less More

- Posts: 34
- Thank you received: 0
-
-

14 years 11 months ago [\#32481](#32481) by [SD](/forum/user/3897-sd "View SD's Profile")  *[Coupon](/forum/3-bug-report/32481-coupon#32481 "Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little &quot;X&quot; circle beside it that will allow you to remove it. When it's clicked, nothing happens (this...")* was created by *[SD](/forum/user/3897-sd "View SD's Profile")*

Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little "X" circle beside it that will allow you to remove it. When it's clicked, nothing happens (this appears to be the case in almost any browser)...it has to be clicked at least 2 or 3 times quickly for it to work. Is there a fix for this so that it removes the coupon when clicked just once?

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

14 years 11 months ago [\#32516](#32516) 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](/forum/3-bug-report/32481-coupon#32516 "Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little &quot;X&quot; circle beside it that will allow you to remove it. When it's clicked, nothing happens (this...")*

I just tried on our demo website and it works the first time I click on the X.
Do you have some caching enabled on your website (in the joomla configuration or via the system cache plugin)?
Could you give a link to your website so that we can see that ?

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

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

Less More

- Posts: 34
- Thank you received: 0
-
-

14 years 11 months ago -  14 years 10 months ago [\#32538](#32538) by [SD](/forum/user/3897-sd "View SD's Profile")  Replied by *[SD](/forum/user/3897-sd "View SD's Profile")* on topic *[Re: Coupon](/forum/3-bug-report/32481-coupon#32538 "Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little &quot;X&quot; circle beside it that will allow you to remove it. When it's clicked, nothing happens (this...")*

There is no caching enabled.

Last edit: 14 years 10 months ago by [SD](/forum/user/3897-sd "View SD's Profile").

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

14 years 11 months ago [\#32565](#32565) 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](/forum/3-bug-report/32481-coupon#32565 "Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little &quot;X&quot; circle beside it that will allow you to remove it. When it's clicked, nothing happens (this...")*

I forgot to ask but we'll of course need a coupon code to look at that ![:)](/media/kunena/emoticons/3.png ":)")

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

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

Less More

- Posts: 34
- Thank you received: 0
-
-

14 years 11 months ago -  14 years 10 months ago [\#32605](#32605) by [SD](/forum/user/3897-sd "View SD's Profile")  Replied by *[SD](/forum/user/3897-sd "View SD's Profile")* on topic *[Re: Coupon](/forum/3-bug-report/32481-coupon#32605 "Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little &quot;X&quot; circle beside it that will allow you to remove it. When it's clicked, nothing happens (this...")*

Keep in mind this is a live site.

Last edit: 14 years 10 months ago by [SD](/forum/user/3897-sd "View SD's Profile").

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

14 years 11 months ago [\#32637](#32637) 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](/forum/3-bug-report/32481-coupon#32637 "Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little &quot;X&quot; circle beside it that will allow you to remove it. When it's clicked, nothing happens (this...")*

Could you change the line:

&lt;a href="&lt;?php echo hikashop_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).'&amp;previous='.$this-&gt;step.'&amp;removecoupon=1'.'&amp;'.JUtility::getToken().'=1'); ?&gt;" &gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'delete2.png';?&gt;" alt="remove coupon" /&gt;&lt;/a&gt;

by:
global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&amp;Itemid='.$Itemid;
}
?&gt;
&lt;a href="&lt;?php echo hikashop_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).'&amp;previous='.$this-&gt;step.'&amp;removecoupon=1'.'&amp;'.JUtility::getToken().'=1'.$url_itemid); ?&gt;" &gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'delete2.png';?&gt;" alt="remove coupon" /&gt;&lt;/a&gt;

in the file "coupon" of the view "checkout" vi the menu Display-&gt;Views and try again ?

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

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

Less More

- Posts: 34
- Thank you received: 0
-
-

14 years 11 months ago [\#32673](#32673) by [SD](/forum/user/3897-sd "View SD's Profile")  Replied by *[SD](/forum/user/3897-sd "View SD's Profile")* on topic *[Re: Coupon](/forum/3-bug-report/32481-coupon#32673 "Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little &quot;X&quot; circle beside it that will allow you to remove it. When it's clicked, nothing happens (this...")*

> Could you change the line:
>
> &lt;a href="&lt;?php echo hikashop\_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).'&amp;previous='.$this-&gt;step.'&amp;removecoupon=1'.'&amp;'.JUtility::getToken().'=1'); ?&gt;" &gt;&lt;img src="&lt;?php echo HIKASHOP\_IMAGES . 'delete2.png';?&gt;" alt="remove coupon" /&gt;&lt;/a&gt;
>
> by:
> global $Itemid;
> $url\_itemid='';
> if(!empty($Itemid)){
> $url\_itemid='&amp;Itemid='.$Itemid;
> }
> ?&gt;
> &lt;a href="&lt;?php echo hikashop\_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).'&amp;previous='.$this-&gt;step.'&amp;removecoupon=1'.'&amp;'.JUtility::getToken().'=1'.$url\_itemid); ?&gt;" &gt;&lt;img src="&lt;?php echo HIKASHOP\_IMAGES . 'delete2.png';?&gt;" alt="remove coupon" /&gt;&lt;/a&gt;
>
>
> in the file "coupon" of the view "checkout" vi the menu Display-&gt;Views and try again ?

To confirm,

replace:

**&lt;a href="&lt;?php echo hikashop\_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).'&amp;previous='.$this-&gt;step.'&amp;removecoupon=1'.'&amp;'.JUtility::getToken().'=1'); ?&gt;" &gt;&lt;img src="&lt;?php echo HIKASHOP\_IMAGES . 'delete2.png';?&gt;" alt="remove coupon" /&gt;&lt;/a&gt;**

with

**global $Itemid;
$url\_itemid='';
if(!empty($Itemid)){
$url\_itemid='&amp;Itemid='.$Itemid;
}
?&gt;
&lt;a href="&lt;?php echo hikashop\_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).'&amp;previous='.$this-&gt;step.'&amp;removecoupon=1'.'&amp;'.JUtility::getToken().'=1'.$url\_itemid); ?&gt;" &gt;&lt;img src="&lt;?php echo HIKASHOP\_IMAGES . 'delete2.png';?&gt;" alt="remove coupon" /&gt;&lt;/a&gt;**

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

14 years 11 months ago [\#32698](#32698) 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](/forum/3-bug-report/32481-coupon#32698 "Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little &quot;X&quot; circle beside it that will allow you to remove it. When it's clicked, nothing happens (this...")*

I forgot a ?&gt; in the first piece of code. It should be:

?&gt;
&lt;a href="&lt;?php echo hikashop_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).'&amp;previous='.$this-&gt;step.'&amp;removecoupon=1'.'&amp;'.JUtility::getToken().'=1'); ?&gt;" &gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'delete2.png';?&gt;" alt="remove coupon" /&gt;&lt;/a&gt;

to be replaced by:

global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&amp;Itemid='.$Itemid;
}
?&gt;
&lt;a href="&lt;?php echo hikashop_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).'&amp;previous='.$this-&gt;step.'&amp;removecoupon=1'.'&amp;'.JUtility::getToken().'=1'.$url_itemid); ?&gt;" &gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'delete2.png';?&gt;" alt="remove coupon" /&gt;&lt;/a&gt;

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

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

Less More

- Posts: 62
- Thank you received: 0
-
-

14 years 10 months ago [\#32794](#32794) by [Devine](/forum/user/2915-devine "View Devine's Profile")  Replied by *[Devine](/forum/user/2915-devine "View Devine's Profile")* on topic *[Re: Coupon](/forum/3-bug-report/32481-coupon#32794 "Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little &quot;X&quot; circle beside it that will allow you to remove it. When it's clicked, nothing happens (this...")*

I have recently changed my checkout work flow to login_address_shipping_coupon,payment_terms_confirm_cart_status_fields,end.

Since doing so adding a coupon has been real buggy. It often takes numerous goes to get it to actually add the coupon. Generally it just refreshes the same step in the checkout and looks like it has done nothing. When it finally does actually add the coupon it then automatically submits to the next step where I have payment. If you then go back in the checkout process there is no option to remove the coupon although it is still added to the order.

If I change the work flow to this login_address_shipping,payment_terms_coupon_confirm_cart_status_fields,end there is no issue with the coupon behaviour. You can add and remove coupons without a problem. The reason I cannot have this work flow is that the adding of a coupon deselects the shipping method and my payment methods heavily depend on the shipping method.

Can you please assist with this?

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

14 years 10 months ago [\#32809](#32809) 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](/forum/3-bug-report/32481-coupon#32809 "Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little &quot;X&quot; circle beside it that will allow you to remove it. When it's clicked, nothing happens (this...")*

Since the shipping methods restrictions can be based on the total of the order, the shipping methods selection has to be reseted indeed.
If you want, you could have the coupon view on both steps:
login_address_shipping_coupon,payment_terms_confirm_cart_coupon_status_fields,end

For the fact that the coupon is not working properly, that's because we didn't thought about having that view on a step without the cart view. The fix is easy, just add the line:
$this-&gt;assignRef('coupon',@$cart-&gt;coupon);
after the line:
$coupon_error_message = JRequest::getVar('coupon_error_message','');
in the file components/com_hikashop/views/checkout/view.html.php

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

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

Less More

- Posts: 62
- Thank you received: 0
-
-

14 years 10 months ago [\#32873](#32873) by [Devine](/forum/user/2915-devine "View Devine's Profile")  Replied by *[Devine](/forum/user/2915-devine "View Devine's Profile")* on topic *[Re: Coupon](/forum/3-bug-report/32481-coupon#32873 "Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little &quot;X&quot; circle beside it that will allow you to remove it. When it's clicked, nothing happens (this...")*

Thank you yes this has worked.

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

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

Less More

- Posts: 34
- Thank you received: 0
-
-

14 years 10 months ago [\#35378](#35378) by [SD](/forum/user/3897-sd "View SD's Profile")  Replied by *[SD](/forum/user/3897-sd "View SD's Profile")* on topic *[Re: Coupon](/forum/3-bug-report/32481-coupon#35378 "Joomla 1.7 and Hikashop 1.5.3 Business. When one adds a coupon to use at checkout, there's a little &quot;X&quot; circle beside it that will allow you to remove it. When it's clicked, nothing happens (this...")*

Thanks, this solution has worked well.

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

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