1

After add to cart, product added to cart and showing this "We can't add this item to your shopping cart right now." error message.

I have set website and all other necessary fields for product in admin panel.

in exception.log file, showing this details:

report.CRITICAL: Magento\Framework\Exception\NoSuchEntityException: Requested store is not found in /XXX/XXX/vendor/magento/module-store/Model/StoreRepository.php:111

I have already done re indexing, commands, cache but still above error message is showing.

I have already review this: //magento.stackexchange.com/questions/200031/we-cant-add-this-item-to-your-shopping-cart-right-now-on-detail-page-magento

asked Jul 20, 2018 at 12:13

1 Answer 1

1

Here is way you can solved your issue by just checking the real error.

vendor/magento/module-checkout/Controller/Cart/Add.php

Go to the message and check the error message :-

try{
// Your code here
} catch (\Exception $e) {
 echo $e->getMessage(); die();
 $this->messageManager->addException($e, __('We can\'t add this item to your shopping cart right now.'));
 $this->_objectManager->get(\Psr\Log\LoggerInterface::class)->critical($e);
 return $this->goBack();
}
answered Jul 20, 2018 at 13:11

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.