v2.2.6: How to fix exception error when adding to cart?

Created by Jane D, Modified on Fri, 21 Jan 2022 at 10:30 AM by Jane D

QUESTION:


I got this error below when adding a product to the cart.

The error appeared after installing the module Bss_OneStepCheckoutAdvanced v2.2.6 on my site M2.3.5_p2.


1 exception (s):

Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with customerId = 

Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with customerId = 

<pre>#1 Magento\Customer\Model\CustomerRegistry->retrieve() called at [vendor/magento/mdoule-customer/Model/ResourceModel/CustomerRepository .php : 340)...



ANSWER:


With this module error, please edit the fileapp/code/Bss/OrderAmount/Helper/Data.php as below:


Or please download the file fix I attached below and overrides the current file on your site:


If you need further assistance, please do not hesitate to contact us. We'd be happy to support! 

Attachments (1)

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