M2.4.0, v1.1.4: Error "apply store credit more than the order total"

Created by Esther Nguyen, Modified on Mon, 31 Oct 2022 at 02:01 PM by Esther Nguyen

ISSUE:

We got one order today with a minus total. How could it be possible that the customer can apply store credit for more than the order total? We tried all possibilities by applying the store credit then we removed/edited cart items, but we could not replicate the issue

- Make it zero total order on the checkout page but do not place an order

- Then open the cart page in a DIFFERENT TAB

- Now delete one item and come to the checkout page by switching the tab

- Then click place order on the checkout page

I think before a customer places an order, it should check the validation of the store credit amount with the order total.


SOLUTION:


To resolve this issue, we will add extra logic to check the price validation of the Store Credit Amount with the Order total before Save Order


Please download the file app/code/Bss/StoreCredit/Observer/SalesEventQuoteSubmitSuccessObserver.php attached below to add and override the current file on your site;


If you need any further assistance, please feel free to contact us. We'd be happy to support you!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article