tatamifightwear Posted February 12, 2010 Share Posted February 12, 2010 Hi guys i am having a problem in a new theme i have installed. When you go to the product page the categories go missing from the categories block? The block still says there but the categories go missing.Any ideas guys?ThanksGareth Link to comment Share on other sites More sharing options...
tomerg3 Posted February 12, 2010 Share Posted February 12, 2010 Check the error log in Firefox for any javascript errors. Link to comment Share on other sites More sharing options...
tatamifightwear Posted February 13, 2010 Author Share Posted February 13, 2010 hi tomerg no there is no javascript errors as it works fine throughout the whole site apart from when you go to product view. Any ideas? Link to comment Share on other sites More sharing options...
tomerg3 Posted February 13, 2010 Share Posted February 13, 2010 What's the URL? Link to comment Share on other sites More sharing options...
tatamifightwear Posted February 13, 2010 Author Share Posted February 13, 2010 http://www.topdogembroidery.co.uk/product.php?id_product=10thanks for your help Link to comment Share on other sites More sharing options...
Harun Posted February 13, 2010 Share Posted February 13, 2010 Hi I have checked your website and found that entire JavaScript has stopped working except smooth scroll.It looks like you are using old version template or have done modification in blocksearch-top.tpl and product.tpl as some variables in your .tpl JavaScript are not declared.and here's the solutionstep 1 : open product.tpl (your theme dir) go to "// Parameters" section and add below lines of code var displayPrice = {$priceDisplay};var group_reduction = '{$group_reduction}'; step 2 : open prestashop dir\modules\blocksearch\blocksearch-top.tplfind line starting with "extraParams"and replace that entire line with extraParams:{ajaxSearch:1,id_lang:{/literal}{$cookie->id_lang}{literal[spam-filter] this will resolve your JavaScript issue and categories will be back. Link to comment Share on other sites More sharing options...
tomerg3 Posted February 13, 2010 Share Posted February 13, 2010 http://www.topdogembroidery.co.uk/product.php?id_product=10thanks for your help You have 2 errorsError: syntax errorSource File: http://www.topdogembroidery.co.uk/product.php?id_product=10Line: 125, Column: 38Source Code: extraParams:{ajaxSearch:1,id_lang:} Error: displayPrice is not definedSource File: http://www.topdogembroidery.co.uk/themes/etcleanblue/js/product.jsLine: 249Please read http://www.prestashop.com/forums/viewthread/43675/ for the fix.It would be great if you could post a comment on the thread, I'm trying to bump it up a bit. Link to comment Share on other sites More sharing options...
Harun Posted February 14, 2010 Share Posted February 14, 2010 Hi tomerg3there is one more error in that pageError: group_reduction is not defined. this error comes up once you fix above 2in my reply above i have provided fix for this Link to comment Share on other sites More sharing options...
tatamifightwear Posted February 17, 2010 Author Share Posted February 17, 2010 hi guys thanks for this i will try it tonight and let you know how i get on. Thanks Link to comment Share on other sites More sharing options...
tatamifightwear Posted February 17, 2010 Author Share Posted February 17, 2010 hi guys got the categories working thank you very much for the support 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