I need the coupon to be applied to some items only

  • Posts: 139
  • Thank you received: 1
11 years 7 months ago #129665

I have created a non-publish category called discounts.

I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes "Auto load in cart if possible" and "Coupon percentage applies to product only".

However when I get to checkout, the discount has been applied to everything.

Last edit: 11 years 7 months ago by abasel.

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 7 months ago #129678

Can you please do a screenshot of all the options of your coupon ?

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

  • Posts: 139
  • Thank you received: 1
11 years 7 months ago #129801

If the buyer has 2 products in the "1 Day" category" then they get a 10% discount on these products.



But from the above you will see that the wrong coupons are being applied.





Also when I add other products not in the 1 Day category, these are also discounted.

Attachments:
Last edit: 11 years 7 months ago by abasel.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #129820

And can you try it again with your cache cleared and/or with a different browser ?

Last edit: 11 years 7 months ago by Mohamed Thelji.

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

  • Posts: 139
  • Thank you received: 1
11 years 7 months ago #129921

Seems to make no difference :unsure:

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 7 months ago #129983

We'll need a backend access in order to check your settings. Please use our contact form with a link to this thread in order to provide that.

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

  • Posts: 139
  • Thank you received: 1
11 years 7 months ago #129989

I have just done what you asked :-)

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

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #130048

Hi,
The problem was coming from the fact that your 2 product were both part of the 1-Day category, I tried it by putting one of your 2 products out of this category, and it worked fine :) :

Attachments:
Last edit: 11 years 7 months ago by Mohamed Thelji.

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

  • Posts: 139
  • Thank you received: 1
11 years 7 months ago #130109

Hi that for that but the problem still exits.

Here is a list of the products in the discount:



Here is the coupon that should apply when two of the above products are purchased



Here is what the checkout looks like



The result should be $180 (no discounted product) + $200 - $20 (10% discount on the discounted products because two of them were ordered)

This however is the coupon being applied and it's been applied to all products

Attachments:
Last edit: 11 years 7 months ago by abasel. Reason: Forgot an attachement

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

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #130222

Your problem is coming from the fact that the Minimum number of products is applied for ALL the product in your cart, so if you have 2 products in the discounted category, and 3 other products from another category, the coupon that will be auto loaded will be the 8xXEQg28172185f one.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #130303

My bad, when you use the Category and the Minimum number of products options, you should set the Coupon percentage applies to product only option to YES to apply the Minimum number of products option only on your category.
I didn't worked even if I have set this option to YES so I've made a fix that will be in the net hikashop release.

You'll just have to edit the file : "\administrator\components\com_hikashop\classes\discount.php" and change this line :

if($product->product_id !== $productid[0] && empty($coupon->discount_coupon_product_only)){
By :
if($product->product_id !== $productid[0]){

The following user(s) said Thank You: abasel

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

  • Posts: 139
  • Thank you received: 1
11 years 7 months ago #130313

Awesome that worked... sort of :-)

From the screen below you will see that I have two items, one of which is a discount item. The problem I have (and I am not sure if there is a way around this is that this should be seen as three items as they have purchased three). Hika however only applies the 10% discount as it sees it as a single item.

Is there a way around this as I need it to be seen as three items?

If I added another single day item I would then need the 4 day discount applied etc. Basically an order of 3 items (even if the same item) needs to been seen as 3 products for discount purposes.

Thanks for your patience and great support in this matter.

Attachments:
Last edit: 11 years 7 months ago by abasel.

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

  • Posts: 139
  • Thank you received: 1
11 years 7 months ago #130341

I think I have worked it out. As a single discount product always costs $100, I can use value of order instead of product quantity. There I test for the value of the order instead the number of products... this seems to do it.

Thanks for all your help... truly a GREAT product with excellent support.

The following user(s) said Thank You: Mohamed Thelji

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

  • Posts: 139
  • Thank you received: 1
11 years 7 months ago #130381

Alas this is still not working, see image attached.

The value of discountable products is $100, yet Hika is taking the non-discountable product into account too.. there should be not discounts (I have renamed coupons to discount in the language file) in this scenario.

The issue seems to be of a similar nature to what was happening when I was testing by product quantity.

(Just so there is no confusion, I have renamed coupon in the checkout to discount (using the language file), so wherever you see discount in the front end it is actually a coupon)



Coupon - renamed to discount in frontend

Attachments:
Last edit: 11 years 7 months ago by abasel.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #130475

Hi,

Your configuration seems to be good.
The coupon should be applied only on the products of the category "1 Day" if the order is upper than NZD200 and it's applying to product only.

Are you sure that the half days product is not in the 1 Day category ?

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

  • Posts: 139
  • Thank you received: 1
11 years 7 months ago #130509

Are you sure that the half days product is not in the 1 Day category ?


Yes, see screenshot

Attachments:

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

  • Posts: 139
  • Thank you received: 1
11 years 7 months ago #130639

Hi, I am really needing to know if I am doing something wrong here or if there is a bug. I purchased HikaShop based on this feature and I really need it to work by Monday NZ time, Everything else works great but this issue is a show-stopper for me. I've tried the contact form and now have nowhere else to go for help. :unsure:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #130896

Hi,

I can't reach the frontend page, there is an error on load.

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

  • Posts: 139
  • Thank you received: 1
11 years 7 months ago #130975

Hi, sorry about that you have have tried at a time that I was working on it. The link is still only for registered users but you can access it via www.discoverylabs.co.nz/index.php/contact-us/login using the credentials that I messaged you with.

I have taken the pressure off by using a form for now but would like to get it working for the following holidays :-)

Thanks for looking at it for me.

Last edit: 11 years 7 months ago by abasel.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #131018

Hi,

Still errors...
404 on the given link, and connexion error on the base url.

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

Time to create page: 0.182 seconds
Powered by Kunena Forum