Jump to content

[SOLVED] Categories go missing in product page


Recommended Posts

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 solution


step 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.tpl

find 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



You have 2 errors

Error: syntax error
Source File: http://www.topdogembroidery.co.uk/product.php?id_product=10
Line: 125, Column: 38
Source Code:
extraParams:{ajaxSearch:1,id_lang:}

Error: displayPrice is not defined
Source File: http://www.topdogembroidery.co.uk/themes/etcleanblue/js/product.js
Line: 249

Please 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...