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

#   apply Coupon before tax

##

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

Less More

- Posts: 29
- Thank you received: 0
-
-

14 years 9 months ago -  14 years 9 months ago [\#38661](#38661) by [sepyh](/forum/user/1421-sepyh "View sepyh's Profile")  *[apply Coupon before tax](/forum/4-how-to/38661-apply-coupon-before-tax#38661 "Hi,  I've realised coupons are applied after tax (VAT). So i've got a product for £99.99, VAT is say £16.66, we offer a coupon with a £50 discount, yet were still paying £16.66 VAT?????  This is not right under UK law is it? How can we apply the coupon before VAT to the sub total????  If this requires a core hack I do not mind, please let me know if it's possible.  Thanks.")* was created by *[sepyh](/forum/user/1421-sepyh "View sepyh's Profile")*

Hi,

I've realised coupons are applied after tax (VAT). So i've got a product for £99.99, VAT is say £16.66, we offer a coupon with a £50 discount, yet were still paying £16.66 VAT?????

This is not right under UK law is it? How can we apply the coupon before VAT to the sub total????

If this requires a core hack I do not mind, please let me know if it's possible.

Thanks.

Last edit: 14 years 9 months ago by [sepyh](/forum/user/1421-sepyh "View sepyh's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM4NjYxLWFwcGx5LWNvdXBvbi1iZWZvcmUtdGF4P3RtcGw9bWFya2Rvd24=) 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 9 months ago [\#38784](#38784) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: apply Coupon before tax](/forum/4-how-to/38661-apply-coupon-before-tax#38784 "Hi,  I've realised coupons are applied after tax (VAT). So i've got a product for £99.99, VAT is say £16.66, we offer a coupon with a £50 discount, yet were still paying £16.66 VAT?????  This is not right under UK law is it? How can we apply the coupon before VAT to the sub total????  If this requires a core hack I do not mind, please let me know if it's possible.  Thanks.")*

Hi,

In the configuration there is an option to apply the discounts before or after tax.
[ www.hikashop.com/en/support/documentatio...hop-config.html#main](http://www.hikashop.com/en/support/documentation/54-hikashop-config.html#main)

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

14 years 9 months ago [\#38815](#38815) by [sepyh](/forum/user/1421-sepyh "View sepyh's Profile")  Replied by *[sepyh](/forum/user/1421-sepyh "View sepyh's Profile")* on topic *[Re: apply Coupon before tax](/forum/4-how-to/38661-apply-coupon-before-tax#38815 "Hi,  I've realised coupons are applied after tax (VAT). So i've got a product for £99.99, VAT is say £16.66, we offer a coupon with a £50 discount, yet were still paying £16.66 VAT?????  This is not right under UK law is it? How can we apply the coupon before VAT to the sub total????  If this requires a core hack I do not mind, please let me know if it's possible.  Thanks.")*

That option does not work. I saw somewhere you said that discounts were different to coupons and that option does not work with coupons.

Please can you clarify this nicolas.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM4NjYxLWFwcGx5LWNvdXBvbi1iZWZvcmUtdGF4P3RtcGw9bWFya2Rvd24=) 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 9 months ago [\#39088](#39088) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: apply Coupon before tax](/forum/4-how-to/38661-apply-coupon-before-tax#39088 "Hi,  I've realised coupons are applied after tax (VAT). So i've got a product for £99.99, VAT is say £16.66, we offer a coupon with a £50 discount, yet were still paying £16.66 VAT?????  This is not right under UK law is it? How can we apply the coupon before VAT to the sub total????  If this requires a core hack I do not mind, please let me know if it's possible.  Thanks.")*

I must say that we changed lots of things related to discount and tax calculations in recent releases so I'm not sure. I'll have to test that on our end tomorrow to give you a proper answer.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM4NjYxLWFwcGx5LWNvdXBvbi1iZWZvcmUtdGF4P3RtcGw9bWFya2Rvd24=) 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 9 months ago [\#39411](#39411) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: apply Coupon before tax](/forum/4-how-to/38661-apply-coupon-before-tax#39411 "Hi,  I've realised coupons are applied after tax (VAT). So i've got a product for £99.99, VAT is say £16.66, we offer a coupon with a £50 discount, yet were still paying £16.66 VAT?????  This is not right under UK law is it? How can we apply the coupon before VAT to the sub total????  If this requires a core hack I do not mind, please let me know if it's possible.  Thanks.")*

If you want to have the coupon price to be displayed before tax on the checkout, you shoudl try to change the line: Code:

echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;coupon-&gt;discount_value*-1,@$this-&gt;coupon-&gt;discount_currency_id);

to: Code:

echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;coupon-&gt;discount_value_without_tax*-1,@$this-&gt;coupon-&gt;discount_currency_id);

in the file 'cart' of the view 'checkout' that you can edit via the menu Display-&gt;Views.

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

14 years 8 months ago [\#39644](#39644) by [sepyh](/forum/user/1421-sepyh "View sepyh's Profile")  Replied by *[sepyh](/forum/user/1421-sepyh "View sepyh's Profile")* on topic *[Re: apply Coupon before tax](/forum/4-how-to/38661-apply-coupon-before-tax#39644 "Hi,  I've realised coupons are applied after tax (VAT). So i've got a product for £99.99, VAT is say £16.66, we offer a coupon with a £50 discount, yet were still paying £16.66 VAT?????  This is not right under UK law is it? How can we apply the coupon before VAT to the sub total????  If this requires a core hack I do not mind, please let me know if it's possible.  Thanks.")*

Thanks. Will this minus the coupon from the unit price and calculate the VAT after this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM4NjYxLWFwcGx5LWNvdXBvbi1iZWZvcmUtdGF4P3RtcGw9bWFya2Rvd24=) 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 8 months ago [\#39827](#39827) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: apply Coupon before tax](/forum/4-how-to/38661-apply-coupon-before-tax#39827 "Hi,  I've realised coupons are applied after tax (VAT). So i've got a product for £99.99, VAT is say £16.66, we offer a coupon with a £50 discount, yet were still paying £16.66 VAT?????  This is not right under UK law is it? How can we apply the coupon before VAT to the sub total????  If this requires a core hack I do not mind, please let me know if it's possible.  Thanks.")*

That will display the coupon price calculated before the taxes.
The total of the cart won't be affected.

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

- **[coolcatcreative](/forum/user/4236-coolcatcreative "View coolcatcreative's Profile")**
- [![coolcatcreative's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4236.gif)](/forum/user/4236-coolcatcreative "View coolcatcreative's Profile")
- [ Offline](/forum/user/4236-coolcatcreative)

Less More

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

14 years 7 months ago [\#43448](#43448) by [coolcatcreative](/forum/user/4236-coolcatcreative "View coolcatcreative's Profile")  Replied by *[coolcatcreative](/forum/user/4236-coolcatcreative "View coolcatcreative's Profile")* on topic *[Re: apply Coupon before tax](/forum/4-how-to/38661-apply-coupon-before-tax#43448 "Hi,  I've realised coupons are applied after tax (VAT). So i've got a product for £99.99, VAT is say £16.66, we offer a coupon with a £50 discount, yet were still paying £16.66 VAT?????  This is not right under UK law is it? How can we apply the coupon before VAT to the sub total????  If this requires a core hack I do not mind, please let me know if it's possible.  Thanks.")*

Hi Nicolas,

So how would I get the total of the order to be affected indeed?

Here in the US we also need the discount handled before tax, and right now even if I change the cart view as mentioned above, the total is still incorrect (too much taken out, i.e. the tax value is still included in the amount to reduce the order subtotal).

Zoltan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM4NjYxLWFwcGx5LWNvdXBvbi1iZWZvcmUtdGF4P3RtcGw9bWFya2Rvd24=) 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 7 months ago [\#43594](#43594) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: apply Coupon before tax](/forum/4-how-to/38661-apply-coupon-before-tax#43594 "Hi,  I've realised coupons are applied after tax (VAT). So i've got a product for £99.99, VAT is say £16.66, we offer a coupon with a £50 discount, yet were still paying £16.66 VAT?????  This is not right under UK law is it? How can we apply the coupon before VAT to the sub total????  If this requires a core hack I do not mind, please let me know if it's possible.  Thanks.")*

Please make sure that you're editing the correct file for your front end template and not another template.

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

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