- Posts: 3
- Thank you received: 0
how to make a coupon ignore one item
8 years 7 months ago #288269
by judygross
how to make a coupon ignore one item was created by judygross
-- 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?
-- 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.
8 years 7 months ago - 8 years 7 months ago #288290
by Philip
Replied by Philip on topic how to make a coupon ignore one item
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
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: 8 years 7 months ago by Philip.
Please Log in or Create an account to join the conversation.
8 years 7 months ago #288346
by judygross
Replied by judygross on topic how to make a coupon ignore one item
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.
8 years 7 months ago #288363
by nicolas
Replied by nicolas on topic how to make a coupon ignore one item
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
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.
1 year 6 months ago #366140
by NicoW
Replied by NicoW on topic how to make a coupon ignore one item
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?
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.
1 year 6 months ago #366142
by nicolas
Replied by nicolas on topic how to make a coupon ignore one item
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.
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.
1 year 6 months ago #366152
by NicoW
Replied by NicoW on topic how to make a coupon ignore one item
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.
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.
1 year 5 months ago #366446
by NicoW
Replied by NicoW on topic how to make a coupon ignore one item
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
BAM! whole shop down, needed a backup to get it running again.
This was fun
Please Log in or Create an account to join the conversation.
1 year 5 months ago #366447
by nicolas
Replied by nicolas on topic how to make a coupon ignore one item
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.
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.228 seconds