Jump to content

Recommended Posts

When doing a search in my presta webshop it does popup with the search items, but with broken photo's and under the product name is mentioned "undefined"

 

I have indexed the search and cleared the cache

 

What can I do to improve this?

 

post-763716-0-49889400-1461025069_thumb.jpg

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
  • 2 months later...

Hi,

after a quick test, there is something wrong about your theme's(warehouse) ajax search response, the ajax response is missing two variables, one is the image url of the returned products , the second is the price that is not returned by the ajax.

These issues can be fixed in the Javascript/php of the search module.

Regards, Leo

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

If i remember correctly there is a mod_blocksearch module (the warehouse theme's version of the blocksearch module)

Try resetting this module, and disable the prestashop's blocksearch module, maybe you have both enabled and that is the problem. (for warehouse the prestashop's module should be disabled/uninstalled, in order for the mod_blocksearch to work correctly)

If this does not fix your issue, then the ssue in in the mod_blocksearch module's javascript is the code that parses the ajax request of the search, and displays the dropdown with the results(here the image url is undefined, this is why you don't have image displayed). In this JS file you could recreate the url of the product image, if the ajax(php) is not sending it. The good solution is to modify the module's ajax php file to send the image url in the JSON response.

Regards, Leo

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...
  • 1 year later...
  • 9 months later...

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