2

To enable AJAX add to cart on home page, You need to add small JS code create: app/design/frontend/{Package}/{theme}/Magento_Theme/layout/cms_index_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:...


2

Found the solution by adding this code to the theme product listing phtml file. app/design/frontend/Sm/destino/Magento_Catalog/templates/product/list.phtml <div class="box-tocart"> <div class="fieldset"> <div class="field qty"> <!-- <label class="label" for="qty"...


1

Create a module by following steps: app/code/M2Expert/CmsAddtocart/registration.php with below code: <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'M2Expert_CmsAddtocart', __DIR__ ); app/code/M2Expert/CmsAddtocart/etc/module.xml with below code: <?xml version=&...


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