cancel
Showing results for 
Search instead for 
Did you mean: 

Discount Amount applying on $0.00 price product when customer apply coupon code

SOLVED

Discount Amount applying on $0.00 price product when customer apply coupon code

Hello,

I am facing one issue, I have created one coupon code to get a $25 discount when the subtotal is greater than or equal to $35,

I have created a test order by adding 3 products in which one product's amount is $0 but when I check it on Amin Sales->Order->Items Ordered section, -$0.01 Discount Amount applying on $0 product and in Row Total it is showing $0.01

Please look at the Screenshot: https://nimb.ws/eQI0Dr

can you please let me know how I can fix it?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Discount Amount applying on $0.00 price product when customer apply coupon code

Solution:

 

Update this line -

if ($itemPrice < 0) 

by  

if ($itemPrice <= 0) 

in Magento\SalesRule\Model\Validator file

 

 

 

View solution in original post

4 REPLIES 4

Re: Discount Amount applying on $0.00 price product when customer apply coupon code

Hello @bilalmango3e50 

Can you please share the screenshot of the rule you created with the condition?

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Discount Amount applying on $0.00 price product when customer apply coupon code

Please check it here: https://nimb.ws/8YGQIR

Re: Discount Amount applying on $0.00 price product when customer apply coupon code

I am working on Magento 2.4.3-p2 Version 

Re: Discount Amount applying on $0.00 price product when customer apply coupon code

Solution:

 

Update this line -

if ($itemPrice < 0) 

by  

if ($itemPrice <= 0) 

in Magento\SalesRule\Model\Validator file