Ajax Cart showing configurable product image instead of simple product
-
31-12-2020 - |
Question
I am using ajax cart and minicart shows configurable image instead of simple image.
Already Set Product Thumbnail in
Stores -> Configuration -> Sales -> Checkout -> Shopping Cart -> Configurable Product Image
Solution
I added this code after Add to cart
controller and its working fine.
$session = Mage::getSingleton('checkout/session');
$quoteId = $session->getQuote()->getId();
$session->clear();
$session->setQuoteId($quoteId);
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange