Magebay Support PortalAvoiding JS errors – Magebay Support Portal https://www.magebay.com/forum/articles/avoiding-js-errors/feed Fri, 22 Nov 2024 19:53:48 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://www.magebay.com/forum/articles/avoiding-js-errors/#post-4199 <![CDATA[Avoiding JS errors]]> https://www.magebay.com/forum/articles/avoiding-js-errors/#post-4199 Mon, 21 Aug 2017 06:51:50 +0000 hlghtball 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.

]]>
https://www.magebay.com/forum/articles/avoiding-js-errors/#post-5219 <![CDATA[Reply To: Avoiding JS errors]]> https://www.magebay.com/forum/articles/avoiding-js-errors/#post-5219 Mon, 29 Jan 2018 08:53:11 +0000 Ly Tong 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

]]>