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

Created by Esther Nguyen, Modified on Wed, 22 Apr at 12:28 AM by Support Agent

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!


Get to know us!!


BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


Improve your website performance by choosing our extensions:

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 at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article