- Posts: 47
- Thank you received: 0
Discount not working as intended...
- ben_whitney
-
Topic Author
- Offline
I've set a discount called "bcjc2013" to apply a 5% discount to products in the Armor category. See the attached screenshot for details.
I also find that applying the discount by category to be problematic for the number of products I have... ideally it would be easier to apply the discount by brand/manufacturer.
Please Log in or Create an account to join the conversation.
- ben_whitney
-
Topic Author
- Offline
- Posts: 47
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Discounts/coupons can apply onto a product or a category. There is no option to have it apply to a brand for now.
Please Log in or Create an account to join the conversation.
- ben_whitney
-
Topic Author
- Offline
- Posts: 47
- Thank you received: 0
Switched the Discount to a Coupon and it appears to work. However I've noticed that the restrictions aren't behaving correctly.
I've set the Category to "Armor" which means any items and sub categories in the Armor section should be discounted. However, if I add an item from another product category, the systems gives a discount for that product as well...
Try using the coupon code "bcjc2013" to see what I mean.
Our site is here:
www.badassjeeps.com
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
I think that the problem is coming from the fact that coupon are applied to your customer orders and discount are directly applied to products.
So if one of the products that are in your cart is in your coupon's product category, the coupon can be applied to this order.
Please Log in or Create an account to join the conversation.
- ben_whitney
-
Topic Author
- Offline
- Posts: 47
- Thank you received: 0
Please Log in or Create an account to join the conversation.
When you set it to "coupon" you have more options displayed, thanks to enable the option "Coupon percentage applies to product only ". This will affect only the discounted products and not all the cart.
Please Log in or Create an account to join the conversation.
- ben_whitney
-
Topic Author
- Offline
- Posts: 47
- Thank you received: 0
Thanks in advance,
Ben
Please Log in or Create an account to join the conversation.
I have reproduced your problem. We will provide a patch as soon as possible.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Well, I have finally find some time to make the debug. I am alone today for the support (bank holiday) so there is a lot to do.
So ! Please edit the file "administrator/components/com_hikashop/classes/discount.php" and replace
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- ben_whitney
-
Topic Author
- Offline
- Posts: 47
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please apply the patch from my previous post.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- ben_whitney
-
Topic Author
- Offline
- Posts: 47
- Thank you received: 0
Cheers,
Ben
Please Log in or Create an account to join the conversation.
- ben_whitney
-
Topic Author
- Offline
- Posts: 47
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Posts: 7
- Thank you received: 0
I'm having exactly the same problem, coupon being incorrectly applied to first category if the second products added are from a category that has a valid coupon, do I need to add the fix you've provided?
Please help as our customers are getting massive discounts on a category which does not have a coupon attached!
Thanks
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Sure this patch has been added through the last last Hikashop version, so can you download it through our website and test it again ?
Please Log in or Create an account to join the conversation.
- Posts: 7
- Thank you received: 0
if(!$product->cart_product_option_parent_id) {
foreach ($id as $productid) {
if($product->product_id !== $productid[0] && empty($coupon->discount_coupon_product_only)){
BUT I am still getting this bug what can i do?
thanks
Please Log in or Create an account to join the conversation.
Even without your custom code it's not working ?
This patch should be working fine. Are you sure that you coupon/discount configuration is correct ?
Please Log in or Create an account to join the conversation.
The discount is on the back issues category only. If the order is only for back issues (5 or more) it's working fine, but an order for 2 x back issues and a product from another category triggered the discount. This shouldn't be possible the other category product should have been at full price and no discount for the 2 x back issues as the number was under 5.
Thanks
Hope
(Replying from linked subscription)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.