vins1234 Posted May 11, 2011 Share Posted May 11, 2011 How do I include custom javascript code in prestashop. I want to include the following code in product-list.tpl so that it renders the javascript on the category pages. [removed] $(document).ready(function(){ var slider = $('#slider1').bxSlider(); $('.thumbs a').click(function(){ var thumbIndex = $('.thumbs a').index(this); slider.goToSlide(thumbIndex); $('.thumbs a').removeClass('pager-active'); $(this).addClass('pager-active'); return false; }); $('.thumbs a:first').addClass('pager-active'); }); [removed] Thank you. Link to comment Share on other sites More sharing options...
jeevanoss Posted May 11, 2011 Share Posted May 11, 2011 [removed] {literal} js code {/literal} [removed] Link to comment Share on other sites More sharing options...
vins1234 Posted May 12, 2011 Author Share Posted May 12, 2011 Where should I include this code . In header.tpl or in product-list.tpl? And what do the [removed] [removed] tags mean? I am a newbie to prestashop.Thanks for the help. Link to comment Share on other sites More sharing options...
jeevanoss Posted May 12, 2011 Share Posted May 12, 2011 You can include in one of the tplremoved is [removed][removed] Link to comment Share on other sites More sharing options...
jeevanoss Posted May 12, 2011 Share Posted May 12, 2011 [removed][removed] Link to comment Share on other sites More sharing options...
vins1234 Posted May 12, 2011 Author Share Posted May 12, 2011 Do you by any chance know how to include a custom slider/carousel on the products page listing all product images in a category as thumbnails and the main slider contains the enlarged image of the clicked product thumbnail.I have attached a screenshot of what I want to achieve. Thanks for your help. Link to comment Share on other sites More sharing options...
jeevanoss Posted May 12, 2011 Share Posted May 12, 2011 [removed] [removed] is script tag for javascript 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