Author page: madalien

Getting selected simple product id in configurable product on client side.

Getting selected simple product id in configurable product on client side.

The following article will present step by step how one can retrieve in javascript the selected simple produit id at configurable options’ selection in Magento2. Step 1: Override configurable template    First we’ll need to override the default configurable template from our custom theme. So create the file MyVendorName/MyTheme/Magento_ConfigurableProduct/templates/product/view/type/options/configurable.phtml. Then copy-paste the content of the core .phtml into the new file.…

Continue reading