Jump to content

wishlist view page doesn’t show correctly , please help


Recommended Posts

i’m using black&white;theme , when i add some product to wishlist and check it , i found the 3rd/6th/9th/12th/3*n th products doesn;t show picture and some other bugs
please see picture and help me , and what does $product.attributes_small mean ?
thank you

here is another thread , this is not problem of css and theme , i switch to other theme , (default and others) , it's still occurs

http://www.prestashop.com/forums/viewthread/64000/themes/css_problem_in_wishlist_view_page__please_help/
please help

Link to comment
Share on other sites

  • 1 month later...

The problem is in modules/blockwishlist/WishList.php line 254 where it says:
Validate::isUnsignedInt($products[$i]['id_product_attribute']))

you also need to check if its zero, so the line should look like this:
Validate::isUnsignedInt($products[$i]['id_product_attribute']) AND $products[$i]['id_product_attribute'] != 0 )

still looking for the missing picture bug.

hope that helps
Balazs

Link to comment
Share on other sites

I found the missing image problem. It happens when there is a combination selected (e.g. Blue) but there is no image selected for that combination.
The code only looks for a selected combination, it doesn't look for an image corresponding to that combination :-(

so you need to change the following files:
managewishlist.php line 41 should look like this:
if (($products[$i]['id_product_attribute'] != 0) AND ($obj->getCombinationImages(intval($cookie->id_lang) != 0)))

view.php line 25 should look like this:
if (($products[$i]['id_product_attribute'] != 0) AND ($obj->getCombinationImages(intval($cookie->id_lang)!=0)))

that's all i found, should do the same thing if you find missing pictures elsewhere

Balazs

Link to comment
Share on other sites

  • 9 months later...
  • 1 month 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...