Magebay Support PortalAvoiding JS errors – Magebay Support Portal https://www.magebay.com/forum/articles/avoiding-js-errors/feed/ Tue, 07 May 2024 03:00:33 +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

]]>