Jump to content

Error in accessories tab


Recommended Posts

Hi everybody.

 

I've got a problem with the accessories tab.

I added several accessories (whose quantity is different from zero) to a product through the association panel in admin area, then I discovered that in the front shop I can see the accessories tab but it's empty: no photos, no description, no data about the accessories I just added.

 

Could you possibly help me? Here is a screenshot of my empty accessories tab.

 

Thanks in advance.

post-415188-0-56744700-1350976835_thumb.jpg

Link to comment
Share on other sites

  • 4 months later...
  • 3 weeks later...

And me :D

 

Sometimes after adding accessories to any product, prestashop is going down and display whole page with out css code and at the bottom I can see this Error:

 


[php Notice #8] Undefined index: quantity_all_versions (my_folder\ another folder\theme_folder\cache\smarty\compile\1ecebf90a546c13f2c6010cfdd3404b9efb93bc8.file.product.tpl.php, line 945)


Edited by kapees (see edit history)
Link to comment
Share on other sites

hi,

 

I give a solution here:

http://www.prestasho...pages-produits/

 

In english for you ;)

For PS 1.5.4

 

file > theme > your theme > product.tpl

 

go to line 543 (more or less)

 

change

 

{if ($accessory.allow_oosp || $accessory.quantity_all_versions > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode)}

 

by

 

{if ($accessory.allow_oosp || $accessory.quantity > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode)}

 

enjoy ;)

Edited by jcmart1 (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

hey all.

 

this happens to me and i figured out that it is only happening when my shop is in catalogue mode.

when i put the shop in normal mode the accessories appear again.

i would like for the accessories to show when in catalogue mode.

 

anyone know how to fix that?

 

thanks,

jez...

Link to comment
Share on other sites

  • 1 month later...

hi,

 

I give a solution here:

http://www.prestasho...pages-produits/

 

In english for you ;)

For PS 1.5.4

 

file > theme > your theme > product.tpl

 

go to line 543 (more or less)

 

change

 

{if ($accessory.allow_oosp || $accessory.quantity_all_versions > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode)}

 

by

 

{if ($accessory.allow_oosp || $accessory.quantity > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode)}

 

enjoy ;)

 

this worked for me, cheers

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