Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
i need to redesign the checkout form wrapping inside the row and col-md-6 container , i have added the col-md-6 class for each field not sure how to wrap row class for each 2 field as a fieldset
I referred in google that to add this script but not sure in which phtml we need to add it , i tried adding it in footer section but its not working. <script> require([ 'Magento_Customer/js/customer-data' ], function (customerData) { var sections = ['cart']; customerData.invalidate(sections); }); </script>
customer-data.js is not loaded in the viewsource of the page. If i included it directly in the Magento_theme js its getting some console error and the minicart stops working.
My requirement is a custom module to implement it all , if i override addtocart then i have to create a folder in current theme and then only it will work , im trying to create as a module which will be plug an play for multiple magento sites.