Jump to content

[SOLVED] Problems with product comparison (empty values)


Recommended Posts

Hi all,

 

after having installed the Extra Features contribution (prestashop-grouped-features) I have some problems with the product comparison: feature values are empty!

 

I have made no customizations neither to the module nor to the theme. I think that the problem is this: the var $tab[$feature_id] is not set since I have put a control (with an if block) here. How can I solve this? Thank you so much for your support.

Link to comment
Share on other sites

Hi thank you for answering but I solved this by myself just now... I post the solution to the problem, which is in the compare controller... in "CompareController.php" just replace this line (about 109)

 

foreach ($curProduct->getFrontFeatures(self::$cookie->id_lang) AS $feature)

 

with this:

 

foreach ($curProduct->getFrontFeatures(self::$cookie->id_lang, false) AS $feature)

 

Bye!

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...