Default Magento does not show associate product’s id of a configurable product on the product detail page When change options of a configurable product.
If, you want to show associate id then see below code
Override this file into your theme : vendor/magento/module-catalog/view/frontend/templates/product/view/attribute.phtml
And, paste below script in last of this page
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<script type="text/javascript"> require(["jquery"], function(jQuery) { jQuery(".product-options-wrapper select[id^='attribute']").last().on('change', function() { setTimeout(function (){ simpleId=jQuery("input[name=selected_configurable_option]").val(); jQuery(".value").html(simpleId); // Place your place id or class in place of ".value" }, 500); }); }); </script> |
If you want get query string params in controller file,...
Create di.xml and add the below code Magemonkey/Redirect/etc/frontend/di.xml [crayon-62838a27677b6180203963/] Create...
You can try below code to change local date to...
Step 1: First you need to add registration.php file in...
Step1 : Override message.js in current theme file on the...