bahamont Posted May 19, 2014 Share Posted May 19, 2014 jqzoom doesn't work.When i click in a image, this open a new tab with the image. What i can do? This is the code: {if $jqZoomEnabled} <a href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')}" class="cloud-zoom-gallery" title="{$image.legend|htmlspecialchars}" rel="useZoom: 'zoom1', smallImage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'large_default')}'"> <img id="thumb_{$image.id_image}" src="{$link->getImageLink($product->link_rewrite, $imageIds, 'medium_default')}" alt="{$image.legend|htmlspecialchars}" /> </a> {else} <a href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}"> <img id="thumb_{$image.id_image}" src="{$link->getImageLink($product->link_rewrite, $imageIds, 'medium_default')}" alt="{$image.legend|htmlspecialchars}" /> </a> {/if} Link to comment Share on other sites More sharing options...
vekia Posted May 19, 2014 Share Posted May 19, 2014 there is (on your website) some javascript conflict, or some js scripts crashing whole js. check browser console for potential js errors (ctrl+shift+j in chrome) Link to comment Share on other sites More sharing options...
bahamont Posted May 19, 2014 Author Share Posted May 19, 2014 (edited) I just check it in crome, and i have this error in jquery-1.11.0.min.js:: Uncaught Error: Syntax error, unrecognized expression: input[@type=radio].star But i don't know how solve it. Edited May 19, 2014 by bahamont (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 19, 2014 Share Posted May 19, 2014 do you use some custom modules that can affect js scripts? Link to comment Share on other sites More sharing options...
bahamont Posted May 19, 2014 Author Share Posted May 19, 2014 No, i don't use.should i use it? Link to comment Share on other sites More sharing options...
vekia Posted May 19, 2014 Share Posted May 19, 2014 well you can use external modules if you want what prestashop version you use at the moment? it's default template? Link to comment Share on other sites More sharing options...
bahamont Posted May 19, 2014 Author Share Posted May 19, 2014 (edited) Is a custom template, version : 1.6.0.6 Im using jquery 1.11.0 and jquery-migrate.1.2.1. Can the error be that the version that require jqzoom is older than mine?can i manage the version of jquery with a module? This is the full code of my error: Uncaught Error: Syntax error, unrecognized expression: input[@type=radio].star jquery-1.11.0.min.js.pagespeed.jm.VDIv7VBTRR.js:1 db.error jquery-1.11.0.min.js.pagespeed.jm.VDIv7VBTRR.js:1 ob jquery-1.11.0.min.js.pagespeed.jm.VDIv7VBTRR.js:1 xb jquery-1.11.0.min.js.pagespeed.jm.VDIv7VBTRR.js:1 db jquery-1.11.0.min.js.pagespeed.jm.VDIv7VBTRR.js:1 n.fn.extend.find jquery-1.11.0.min.js.pagespeed.jm.VDIv7VBTRR.js:1 n.fn.init jquery-1.11.0.min.js.pagespeed.jm.VDIv7VBTRR.js:1 e.fn.init jquery-migrate-1.2.1.min.js.pagespeed.jm.mhpNjdU8Wl.js:1 n jquery-1.11.0.min.js.pagespeed.jm.VDIv7VBTRR.js:1 (anonymous function) index.php?id_product=28&controller=product:585 j jquery-1.11.0.min.js.pagespeed.jm.VDIv7VBTRR.js:1 k.fireWith jquery-1.11.0.min.js.pagespeed.jm.VDIv7VBTRR.js:1 n.extend.ready jquery-1.11.0.min.js.pagespeed.jm.VDIv7VBTRR.js:1 K jquery-1.11.0.min.js.pagespeed.jm.VDIv7VBTRR.js:1 Edited May 19, 2014 by bahamont (see edit history) Link to comment Share on other sites More sharing options...
bahamont Posted May 19, 2014 Author Share Posted May 19, 2014 The problems is the productcoment module, disable it and works fine, but now i need add comments to my products Can you help me? Link to comment Share on other sites More sharing options...
vekia Posted May 19, 2014 Share Posted May 19, 2014 i can help but in this case i will need url to your shop (where product comments is enabled) Link to comment Share on other sites More sharing options...
bahamont Posted May 19, 2014 Author Share Posted May 19, 2014 I solved it. The problem was this line: $('input[@type=radio].star').rating(); that i replaced for: $('input.star').rating();. Now works all together. Thanks Link to comment Share on other sites More sharing options...
vekia Posted May 19, 2014 Share Posted May 19, 2014 thakn you for posting solution. i marked your answer as a solution and topic title as solved with regards, Milos Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now