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

#   \[SOLVED\] Discount Not Applied to Variants

##

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago -  15 years 8 months ago [\#7661](#7661) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  *[\[SOLVED\] Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#7661 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")* was created by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")*

Hello,

Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.

Is there a way to include a discount on variants?

Regards,
Ed

Last edit: 15 years 8 months ago by [hdracing](/forum/user/742-hdracing "View hdracing's Profile"). Reason: Solved we think!

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago -  15 years 8 months ago [\#7662](#7662) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#7662 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

I just noticed that adding a discounted product to the cart screws up the formatting of the cart at checkout.

In the example below, there should have been a 30% discount applied to the price, but the undiscounted price is what shows in the cart.

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/DiscountCheckout.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/DiscountCheckout.jpg "&#91;img")

A normal cart should look like this:

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/CartNoDiscount.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/CartNoDiscount.jpg "&#91;img")

- [ ![DiscountCheckout.jpg](/forum/attachment/459) ](/forum/attachment/459 "...ntCheckout.jpg") [ ](/forum/attachment/459?download=1 "...ntCheckout.jpg")
- [ ![CartNoDiscount.jpg](/forum/attachment/461) ](/forum/attachment/461 "...NoDiscount.jpg") [ ](/forum/attachment/461?download=1 "...NoDiscount.jpg")

Last edit: 15 years 8 months ago by [hdracing](/forum/user/742-hdracing "View hdracing's Profile"). Reason: Added Normal Cart jpg

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#7667](#7667) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#7667 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

It looks like the formatting problem above was fixed with the latest release. (I was testing the discounts on 1.4.4), but the problem with discount not being applied to variants is still there. The cart item says 30% discount, but the amount is not applied. The first item in the cart below is the base product with discount. The second item is the same item with a characteristic selected.

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/DiscountCheckout_2.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/DiscountCheckout_2.jpg "&#91;img")

- [ ![DiscountCheckout&#95;2.jpg](/forum/attachment/462) ](/forum/attachment/462 "...Checkout&#95;2.jpg") [ ](/forum/attachment/462?download=1 "...Checkout&#95;2.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2NjEtc29sdmVkLWRpc2NvdW50LW5vdC1hcHBsaWVkLXRvLXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 8 months ago [\#7671](#7671) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#7671 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

Indeed the coupons on categories of products do not work well at the moment on variants

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#7824](#7824) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#7824 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

Nicolas,

Do you have some idea when this issue might be fixed? Also, does the coupon/variant problem only exist when the coupon is applied to Categories, or would it also be a problem with other coupon restrictions?

Sorry to be a pain, but this is an important one for me.

Regards,
Ed

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2NjEtc29sdmVkLWRpc2NvdW50LW5vdC1hcHBsaWVkLXRvLXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 8 months ago [\#7826](#7826) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#7826 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

If you apply the discount directly to the variant, I suppose it should work.
We'll look at that over the weekend.

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#7827](#7827) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#7827 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

Thanks! I'll be recording our first race of the 2011 season this weekend so customer orders should start coming in through the new Hikashop component soon. (hopefully :laugh: )

Regards,
Ed

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#7830](#7830) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#7830 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

**nicolas wrote:**

> If you apply the discount directly to the variant, I suppose it should work.
> We'll look at that over the weekend.

I couldn't find a way to apply a coupon directly to a variant, but I'll wait to see what you come up with for a fix. Not urgent for me right now (maybe others), but it is something I would like to see in a near-future release.

Ed

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2NjEtc29sdmVkLWRpc2NvdW50LW5vdC1hcHBsaWVkLXRvLXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 8 months ago [\#7933](#7933) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#7933 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

Hi,

We uploaded a new build of hikashop which should add that capability. You should now be able to filter per categories discounts and coupons on products AND variants.

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#8402](#8402) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#8402 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

It looks like there is still a problem with discounts and variants. I'm using the latest Business version (downloaded this morning) and while discounts do indeed get reflected in variant prices on the product page, they do not get passed correctly to the Cart Module and Checkout page reflects a different price from the cart module, but it is still incorrect. I'll post some screen shots to demonstrate.

This first shot is the product display showing a $5.00 flat rate discount correctly applied to the default product variant combination (Standard Definition DVD original price $30.00 with $5.00 discount = $25.00). When added to cart, all looks OK.

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/VariantDiscount2.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/VariantDiscount2.jpg "&#91;img")

- [ ![VariantDiscount2.jpg](/forum/attachment/535) ](/forum/attachment/535 "...tDiscount2.jpg") [ ](/forum/attachment/535?download=1 "...tDiscount2.jpg")

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#8403](#8403) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#8403 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

This shot shows the variant High Definition BluRay selected and the product page reflects the correct discounted price (Original price for that variant $40.00 and with $5.00 discount = $35.00)

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/VariantDiscount3.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/VariantDiscount3.jpg "&#91;img")

- [ ![VariantDiscount3.jpg](/forum/attachment/536) ](/forum/attachment/536 "...tDiscount3.jpg") [ ](/forum/attachment/536?download=1 "...tDiscount3.jpg")

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#8404](#8404) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#8404 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

But when that item is added to the cart, the price reflected in the Cart Module is incorrect.

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/VariantDiscount4.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/VariantDiscount4.jpg "&#91;img")

- [ ![VariantDiscount4.jpg](/forum/attachment/537) ](/forum/attachment/537 "...tDiscount4.jpg") [ ](/forum/attachment/537?download=1 "...tDiscount4.jpg")

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#8405](#8405) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#8405 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

And to make it more confusing, when you go to Checkout, the price for that second product is now changed to $30.00 instead of the $25.00 that was in the Cart module, but still not what it should be, which is $35.00.

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/VariantDiscount5.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/VariantDiscount5.jpg "&#91;img")

- [ ![VariantDiscount5.jpg](/forum/attachment/538) ](/forum/attachment/538 "...tDiscount5.jpg") [ ](/forum/attachment/538?download=1 "...tDiscount5.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2NjEtc29sdmVkLWRpc2NvdW50LW5vdC1hcHBsaWVkLXRvLXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 8 months ago [\#8444](#8444) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#8444 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

Thank you for this thorough report of the problem. We'll investigate the problem tomorrow and keep you posted on our findings.

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#8697](#8697) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#8697 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

Nicolas,

Something else that I forgot to ask is what is the number to the left of Proceed to Checkout in the Cart Module?

Hope the new office move has gone well for you,
Ed

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2NjEtc29sdmVkLWRpc2NvdW50LW5vdC1hcHBsaWVkLXRvLXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 8 months ago [\#8698](#8698) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#8698 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

That's a bug in current version: [ www.hikashop.com/en/support/forum/3-bug-...-in-cart-module.html](http://www.hikashop.com/en/support/forum/3-bug-report/8673-delete-box-in-cart-module.html)

It's going well. We'll be busy next week settling down there.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2NjEtc29sdmVkLWRpc2NvdW50LW5vdC1hcHBsaWVkLXRvLXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 8 months ago -  15 years 8 months ago [\#8701](#8701) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#8701 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

The problem seems to come from the fact that the discount could be applied several times to variants in the cart.
That should be better if you edit the file administrator/components/com_hikashop/classes/currency.php and replace the line:
if(!empty($element-&gt;discount)){
by:
if(empty($element-&gt;discount) &amp;&amp; !empty($element-&gt;discount)){

and the line:
if(!empty($row-&gt;prices)){
by:
if(empty($row-&gt;discount) &amp;&amp; !empty($row-&gt;prices)){

Last edit: 15 years 8 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile"). Reason: wrong copy/paste

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#8747](#8747) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#8747 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

Nicolas,

The two lines you gave are identical and there is only one instance of that line in the referenced file. Does the that change need to be made in another file?

Thanks,
Ed

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2NjEtc29sdmVkLWRpc2NvdW50LW5vdC1hcHBsaWVkLXRvLXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 8 months ago [\#8755](#8755) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#8755 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

I fixed my copy/paste ![:)](/media/kunena/emoticons/8.png ":)")

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#8759](#8759) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Discount Not Applied to Variants](/forum/4-how-to/7661-solved-discount-not-applied-to-variants#8759 "Hello,  Maybe this is by design or maybe I missed something, but if I apply a percentage discount to a category of products, that discount does not show for any variants of those products. I expected the same percentage would be applied to the products in that category as well as all variants. I tried with sub-categories included and excluded with the same result.  Is there a way to include a discount on variants?  Regards, Ed")*

The line:
if(!empty($row-&gt;prices)){
is in that file three times. Should all three be changed?

Ed

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

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

[](#top)
