lightspeedretail / webstore

Web Store eCommerce solution for Lightspeed
http://www.lightspeedpos.com/webstore
Open Software License 3.0
85 stars 63 forks source link

CData generated by Web Store conflicting with custom changes #668

Closed brandinchiu closed 9 years ago

brandinchiu commented 9 years ago

At the bottom of the Web Store markup, from the product detail page, CData is inserted by Yii to handle some of the ajax calls. One of these fragments:

if($.isFunction(bindZoom))bindZoom();

Is causing problems because I'm not using your photo extension. Where is this being generated so I can remove it? Whenever the matrix is changed, JS crashes because this line fails to find the bindZoom plugin.

tylerforesthauser commented 9 years ago

@brandinchiu This code is all happening in an extension.

/core/protected/extensions/wsmenu/wsmatrixselector.php - line 261

Of course you can copy the wsmenu directory to /custom/extensions and change the line <?php $this->widget('ext.wsmenu.wsmatrixselector', array( to <?php $this->widget('custom.wsmenu.wsmatrixselector', array( in your Product Details view file.

Hope that helps!