2

you can delete all item before they are adding as cart candidate. You can use following process $cart = $objectManager->create('\Magento\Checkout\Model\Cart'); foreach ($cart->getQuote()->getAllItems() as $item) { /** @var \Magento\Quote\Model\Quote\Item $item */ $item->delete(); } $cart->addProduct($...


1

You should not look in this template app/design/frontend/your-theme-package/theme-variant/catalog/product/view/addtocart.phtml but check this template app/design/frontend/your-theme-package/theme-variant/catalog/product/list.phtml


1

After alot of research, I found the solution. System configuration was wrong for Backorders. Now I make it like this: and it makes my day :)


1

Not sure but let's check this Go to Stores -> configuration -> Under sales tab -> checkout under shopping cart section on the right side, check After Adding a Product Redirect to Shopping Cart -> NO If that is yes then it must to redirecting to cart page after adding the product to cart. Hope this helps


Only top voted, non community-wiki answers of a minimum length are eligible