0

Currently we are using Magento version 1.9.2.2 and out free shipping coupon is not working correctly, I have set up a product cart rule in which if cart subtotal is >=100 and place by General or Guest user then he get free shipping. I have also create another coupon for 50% off on shipping if order is >=299 and placed by wholesale which is working correctly.

Where as the coupon is applied and also excluding the shipping amount but it also exclude the amount from cart item as well and adding the subtotal amount to shipping price.

I have already attach the screen shot so it would be easy to rectify the error. It would be great if any one update me which file is adding the discount on item row in cart.

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

  • Your setup is working correctly. You are saying $100 & Shipping discount for cart. If you are only looking for FREE SHIPPING, have that $100 to $0 and mark Free Shipping to Yes. That should give free shipping. – Adarsh Khatri Apr 5 '18 at 23:32
  • Hi I have tried what you saying but that one is also not working, its says coupon applied but there is no changes appears on shipping price. Please have a look: awesomescreenshot.com/image/3281202/… – Piyush Sharma Apr 6 '18 at 13:05
0

I have resolve my issue by changing Discount.php in /app/code/core/Mage/SalesRule/Model/Quote there is a foreach loop in which discount is applied to each line item i have make changes in this file to restrict shipping coupon applied on line item.

need to edit this function: _aggregateItemDiscount() which is calling from foreach loop to apply discount to line item

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.