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

#   Exclude Certain Attributes from Coupon Discount Calculation

##

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

Less More

- Posts: 39
- Thank you received: 4
-
-

4 years 6 months ago [\#341539](#341539) by [thenorthernoffice](/forum/user/33750-thenorthernoffice "View thenorthernoffice's Profile")  *[Exclude Certain Attributes from Coupon Discount Calculation](/forum/46-discount-coupon/904392-exclude-certain-attributes-from-coupon-discount-calculation#341539 "-- url of the page with the problem -- : https:www.militaryplaques.com -- HikaShop version -- : 4.5.1 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : xxxxx -- Error-message(debug-mod must be tuned on) -- : xxxxxxxxx  Our store calculates final price based on attributes chosen. That is size, etc. One attribute is the express shipment. The problem we face is that coupon discount should only be given against the product and not the express shipping fee.  Can we exclude the attribute &quot;express shipping fee&quot; from the coupon discount calculation?  Thanks in advance  John")* was created by *[thenorthernoffice](/forum/user/33750-thenorthernoffice "View thenorthernoffice's Profile")*

-- url of the page with the problem -- : https:www.militaryplaques.com
-- HikaShop version -- : 4.5.1
-- Joomla version -- : 3.10.9
-- PHP version -- : 7.4.29
-- Browser(s) name and version -- : xxxxx
-- Error-message(debug-mod must be tuned on) -- : xxxxxxxxx

Our store calculates final price based on attributes chosen. That is size, etc. One attribute is the express shipment. The problem we face is that coupon discount should only be given against the product and not the express shipping fee.

Can we exclude the attribute "express shipping fee" from the coupon discount calculation?

Thanks in advance

John

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

4 years 6 months ago [\#341541](#341541) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Exclude Certain Attributes from Coupon Discount Calculation](/forum/46-discount-coupon/904392-exclude-certain-attributes-from-coupon-discount-calculation#341541 "-- url of the page with the problem -- : https:www.militaryplaques.com -- HikaShop version -- : 4.5.1 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : xxxxx -- Error-message(debug-mod must be tuned on) -- : xxxxxxxxx  Our store calculates final price based on attributes chosen. That is size, etc. One attribute is the express shipment. The problem we face is that coupon discount should only be given against the product and not the express shipping fee.  Can we exclude the attribute &quot;express shipping fee&quot; from the coupon discount calculation?  Thanks in advance  John")*

Hi,

If you activate the "coupon percentage applies to product only" setting of the coupon, it will calculate the value of the coupon based on the products matching with either the "products" or the "categories" setting of the coupon.
So for example suppose that you have two categories: "main products" and "options".
And in the "main products" category you have the products "product A" and "product B".
And in the "options" category you have the products "option A" and "option B".
If you configure a coupon restricted to the "main products" category with that "coupon percentage applies to product only" setting activated, then only the price of the "product A" and "product B" in the cart will be taken into account and the "option A" and "option B" prices will be ignored even if they are added to the cart as options of their main products.

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

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

Less More

- Posts: 39
- Thank you received: 4
-
-

4 years 5 months ago [\#341723](#341723) by [thenorthernoffice](/forum/user/33750-thenorthernoffice "View thenorthernoffice's Profile")  Replied by *[thenorthernoffice](/forum/user/33750-thenorthernoffice "View thenorthernoffice's Profile")* on topic *[Exclude Certain Attributes from Coupon Discount Calculation](/forum/46-discount-coupon/904392-exclude-certain-attributes-from-coupon-discount-calculation#341723 "-- url of the page with the problem -- : https:www.militaryplaques.com -- HikaShop version -- : 4.5.1 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : xxxxx -- Error-message(debug-mod must be tuned on) -- : xxxxxxxxx  Our store calculates final price based on attributes chosen. That is size, etc. One attribute is the express shipment. The problem we face is that coupon discount should only be given against the product and not the express shipping fee.  Can we exclude the attribute &quot;express shipping fee&quot; from the coupon discount calculation?  Thanks in advance  John")*

Hi,

Tried what you suggested.
But the discount code will be applied to the total price(product price + attributes price).
What we want for the coupon is to be deducted from the product price.
Can you please advise?

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

4 years 5 months ago [\#341726](#341726) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Exclude Certain Attributes from Coupon Discount Calculation](/forum/46-discount-coupon/904392-exclude-certain-attributes-from-coupon-discount-calculation#341726 "-- url of the page with the problem -- : https:www.militaryplaques.com -- HikaShop version -- : 4.5.1 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : xxxxx -- Error-message(debug-mod must be tuned on) -- : xxxxxxxxx  Our store calculates final price based on attributes chosen. That is size, etc. One attribute is the express shipment. The problem we face is that coupon discount should only be given against the product and not the express shipping fee.  Can we exclude the attribute &quot;express shipping fee&quot; from the coupon discount calculation?  Thanks in advance  John")*

Hello,

in order to netter help you, we will need to better understand the context (and check that everything work as expected) and so, can you provide these elements :
- Your coupon settings screenshot
- Your taxes part screenshot (in your Main tab HikaShop configuration)

Awaiting your element to progress on your subject.
Regards

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

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

Less More

- Posts: 39
- Thank you received: 4
-
-

4 years 5 months ago [\#341759](#341759) by [thenorthernoffice](/forum/user/33750-thenorthernoffice "View thenorthernoffice's Profile")  Replied by *[thenorthernoffice](/forum/user/33750-thenorthernoffice "View thenorthernoffice's Profile")* on topic *[Exclude Certain Attributes from Coupon Discount Calculation](/forum/46-discount-coupon/904392-exclude-certain-attributes-from-coupon-discount-calculation#341759 "-- url of the page with the problem -- : https:www.militaryplaques.com -- HikaShop version -- : 4.5.1 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : xxxxx -- Error-message(debug-mod must be tuned on) -- : xxxxxxxxx  Our store calculates final price based on attributes chosen. That is size, etc. One attribute is the express shipment. The problem we face is that coupon discount should only be given against the product and not the express shipping fee.  Can we exclude the attribute &quot;express shipping fee&quot; from the coupon discount calculation?  Thanks in advance  John")*

Hi,

Please see screenshots.
Attached sample product.
The original price is 155.95
Thanks.

- [ ![tax.JPG](/forum/attachment/54831) ](/forum/attachment/54831 "tax.JPG") [ ](/forum/attachment/54831?download=1 "tax.JPG")
- [ ![Coupon.png](/forum/attachment/54832) ](/forum/attachment/54832 "Coupon.png") [ ](/forum/attachment/54832?download=1 "Coupon.png")
- [ ![sampleproduct.JPG](/forum/attachment/54833) ](/forum/attachment/54833 "sampleproduct.JPG") [ ](/forum/attachment/54833?download=1 "sampleproduct.JPG")

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

4 years 5 months ago [\#341783](#341783) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Exclude Certain Attributes from Coupon Discount Calculation](/forum/46-discount-coupon/904392-exclude-certain-attributes-from-coupon-discount-calculation#341783 "-- url of the page with the problem -- : https:www.militaryplaques.com -- HikaShop version -- : 4.5.1 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : xxxxx -- Error-message(debug-mod must be tuned on) -- : xxxxxxxxx  Our store calculates final price based on attributes chosen. That is size, etc. One attribute is the express shipment. The problem we face is that coupon discount should only be given against the product and not the express shipping fee.  Can we exclude the attribute &quot;express shipping fee&quot; from the coupon discount calculation?  Thanks in advance  John")*

Hi,

I did a test on my end and it works fine :
[ i.imgur.com/MyyUyFI.png](https://i.imgur.com/MyyUyFI.png)
Are you really using HikaShop 4.5.1 ?
Otherwise, updating would probably help.

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

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

Less More

- Posts: 39
- Thank you received: 4
-
-

4 years 5 months ago [\#341806](#341806) by [thenorthernoffice](/forum/user/33750-thenorthernoffice "View thenorthernoffice's Profile")  Replied by *[thenorthernoffice](/forum/user/33750-thenorthernoffice "View thenorthernoffice's Profile")* on topic *[Exclude Certain Attributes from Coupon Discount Calculation](/forum/46-discount-coupon/904392-exclude-certain-attributes-from-coupon-discount-calculation#341806 "-- url of the page with the problem -- : https:www.militaryplaques.com -- HikaShop version -- : 4.5.1 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : xxxxx -- Error-message(debug-mod must be tuned on) -- : xxxxxxxxx  Our store calculates final price based on attributes chosen. That is size, etc. One attribute is the express shipment. The problem we face is that coupon discount should only be given against the product and not the express shipping fee.  Can we exclude the attribute &quot;express shipping fee&quot; from the coupon discount calculation?  Thanks in advance  John")*

Hi,

Are you really using HikaShop 4.5.1 ? - Yes, using Hikashop 4.5.1
By the way, the attributes are custom plugins.
Thanks.

- [ ![Capture.JPG](/forum/attachment/54847) ](/forum/attachment/54847 "Capture.JPG") [ ](/forum/attachment/54847?download=1 "Capture.JPG")

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

4 years 5 months ago [\#341808](#341808) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Exclude Certain Attributes from Coupon Discount Calculation](/forum/46-discount-coupon/904392-exclude-certain-attributes-from-coupon-discount-calculation#341808 "-- url of the page with the problem -- : https:www.militaryplaques.com -- HikaShop version -- : 4.5.1 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : xxxxx -- Error-message(debug-mod must be tuned on) -- : xxxxxxxxx  Our store calculates final price based on attributes chosen. That is size, etc. One attribute is the express shipment. The problem we face is that coupon discount should only be given against the product and not the express shipping fee.  Can we exclude the attribute &quot;express shipping fee&quot; from the coupon discount calculation?  Thanks in advance  John")*

Hi,

What do you mean by "By the way, the attributes are custom plugins." ?
Are you talking about the options ?
How are these plugins coded ?
If the plugins add the attributes in a way that prevents the coupon system from discarding them, then there is not much you can do with the options available in HikaShop.
In that case, it would require a custom plugin to handle the calculation of the amount of the coupon. The events we have available in the HikaShop Coupon API can be used for that:
[ www.hikashop.com/support/documentation/6...entation.html#coupon](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#coupon)

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

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