Timeline for Magento 2: Add custom button in Product Detail Page
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 28, 2019 at 12:13 | comment | added | insoftservice | its configurable product. So we receive product id of the configurable product by the above method | |
Aug 27, 2019 at 13:29 | comment | added | Rat |
Add the custom js below line of code $('[name=product]').change(function(){ $.ajax({ url:CallBackURL, type:"POST", data:{'product_id':$('[name=product]').val()}, success:function(data){ //your code } }); });
|
|
Aug 27, 2019 at 9:08 | comment | added | insoftservice | thx for your comments do you have any links for the same. | |
Aug 27, 2019 at 7:10 | comment | added | Rat | Yes,the values from configurable product. If you need change the url based on the selected attributes, call the ajax on attribute selection and replace the button based on response. | |
Aug 26, 2019 at 14:53 | comment | added | insoftservice | now if someone selects medium and green color will its custom attributes get captured on external links? | |
Aug 26, 2019 at 14:27 | history | answered | Rat | CC BY-SA 4.0 |