Skip to content

magento man

How can i pass product attribute manufacturer and SKU to javascript?

I have the following script which i need to add the product brand/manufacturer and SKU <script> window.addEventListener(‘liveload’, function() { IcecatLive.getDatasheet( { ‘reasonstobuy’:’#Container5′, }, { Brand: **$manufacturer**, PartCode: **$sku**, UserName: ‘myusername’ }, ‘en’) }); </script> I have added custom.phtml in web/magento/app/design/frontend/MyTemplate/default/Magento_Catalog/templates/product/view… Read More »How can i pass product attribute manufacturer and SKU to javascript?