how to make a coupon ignore one item

  • Posts: 3
  • Thank you received: 0
7 years 1 month ago #288269

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.5

How can I offer a customer a coupon code that will not work on gift certificates - the work around I'm using is to make it "Ignore discount products" - so I have to first raise the price (by $0.01) for the gift certificate, and then discount it by the same amount to get the new coupon code to ignore it.
Is there a better way?

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
7 years 1 month ago #288290

Hello,

The best way is to use restriction (categorie, product, user etc) on Coupon/Discount system but it's only available on Essential & Business version.



You can see here , which features is available for each version.

Regards

Last edit: 7 years 1 month ago by Philip.

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

  • Posts: 3
  • Thank you received: 0
7 years 1 month ago #288346

I have the business edition, but I can't figure out how to make the gift certificate be permanently outside of any coupon or discount. Otherwise, anytime I make a coupon code for a specific customer, or a general sale, I have to go through hoops of raising the price and then discounting it so the coupon restrictions can be applied.

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

  • Posts: 83599
  • Thank you received: 13531
  • MODERATOR
7 years 1 month ago #288363

Hi,

The coupon restrictions in HikaShop are inclusive, not exclusive.
So would have to move it to a category by itself and select the other categories in the coupon.
And you could copy the previous coupons instead of creating new coupons so that you wouldn't have to reselect the categories each time.

Otherwise, if you want exclusive product restriction for coupons, I believe that AWOCoupon, which is compatible with the coupon system of HikaShop, has such capability:
awodev.com/products/joomla/awocoupon

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

  • Posts: 146
  • Thank you received: 8
1 month 4 days ago #366140

Hi Nicolas,

I have a similar situation at the moment. I would want just 1 product to be excluded from all coupons so people can only purchase it at full price. How best to arrange for this? I think the coupon system still only has inclusive option instead of exclusive?

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

  • Posts: 83599
  • Thank you received: 13531
  • MODERATOR
1 month 4 days ago #366142

Hi,

Indeed, the coupon system doesn't have an exclusive option.
So using AWO Coupon could be a solution, as I was saying in my previous message here.
Otherwise, a small plugin could be developed implementing the onAfterCouponCheck event to check if the target product is in the $products array remove it from there:
www.hikashop.com/support/documentation/6...l#onAfterCouponCheck

I've asked chatGPT for you:
chatgpt.com/canvas/shared/67d195ae3eb4819187884bf0d78f168d
The code looks good. Just replace the product id in the code, ask chatGPT to also generate the XML and you have the plugin.
And if you need extra products to be discarded, or the product has variants that you also want to discard, I'm sure chatGPT can update the code to take that into account.

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

  • Posts: 146
  • Thank you received: 8
1 month 4 days ago #366152

Hi Nicolas,

Thanks, but as always i can't use any part of the answers.
I can't go about buying a plugin for 1 function i need 1 or 2 times and then go about spending all day copying the coupons to the new plugin.

Also, as i am just a guy that sells things, i don't know how chatgpt works so i have to completely ignore that.

I will just do the painful process of making custom payment links over email for every customer in the waiting list as that's 200% more easy then all the other options for me.

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

  • Posts: 146
  • Thank you received: 8
2 weeks 2 days ago #366446

I actually took the time to see how xml files need to be setup and made one out of a copy of an existing simple one.
BAM! whole shop down, needed a backup to get it running again.
This was fun :) Thanks chatgpt

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

  • Posts: 83599
  • Thank you received: 13531
  • MODERATOR
2 weeks 2 days ago #366447

Hi,

Note that if a plugin crashes the whole website, you can easily restore it by renaming the folder of the plugin via FTP in the plugins/hikashop/ folder of your website. That way, no need to restore everything from a backup.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum