This topic contains 0 replies, has 1 voice, and was last updated by hlghtball 7 years, 4 months ago. This post has been viewed 1238 times
Avoiding JS errors
You must be logged in to reply to this topic.
This topic contains 0 replies, has 1 voice, and was last updated by hlghtball 7 years, 4 months ago. This post has been viewed 1238 times
Using v3.1.4 I get JavaScript errors on every product page, that doesn’t use the product designer.
To avoid this I changed template/pdp/product/iframe_wrapper.phtml to have these lines and logic first:
$pdpDesignInfo = $this->getPdpDesignInfo();
if ($pdpDesignInfo['extra_options'] === '') {
exit;
}
This way no overhead and no JavaScript errors occur on product pages without designer.
i know it sounds corny but i was blown away by your post
————————————-
https://bsscommerce.com/magento-defer-js-extension.html https://bsscommerce.com/blog/top-100-best-magento-2-extensions-free-download/
<ul=https://bsscommerce.com/magento-2-layered-navigation-extension.html>magento 2 price filter range extension
You must be logged in to reply to this topic.