Exclude Certain Attributes from Coupon Discount Calculation

  • Posts: 22
  • Thank you received: 1
  • Hikashop Business
8 months 3 weeks ago #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 "express shipping fee" from the coupon discount calculation?

Thanks in advance

John

Please Log in or Create an account to join the conversation.

  • Posts: 77783
  • Thank you received: 12273
  • MODERATOR
8 months 3 weeks ago #341541

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 or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 1
  • Hikashop Business
8 months 2 weeks ago #341723

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 or Create an account to join the conversation.

  • Posts: 3892
  • Thank you received: 534
  • MODERATOR
8 months 2 weeks ago #341726

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 or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 1
  • Hikashop Business
8 months 2 weeks ago #341759

Hi,

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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 77783
  • Thank you received: 12273
  • MODERATOR
8 months 1 week ago #341783

Hi,

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

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 1
  • Hikashop Business
8 months 1 week ago #341806

Hi,

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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 77783
  • Thank you received: 12273
  • MODERATOR
8 months 1 week ago #341808

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum