Jump to content

Question about combinations/combinaisons in ProductController.


Tokeiito

Recommended Posts

Hello,

 

Notice: I don't cear about misstype and etc. I'm interested why and where variable $combinations is changed in smarty before compiling.

 

i need to add wholesale_price into product view. So i just made ProductController overriding process().

 

Very interesting thing happened where $combinations are assigned for smarty.

 

self::$smarty->assign(array(
  'groups' => $groups,
  'combinaisons' => $combinations, /* Kept for compatibility purpose only */
  'combinations' => $combinations,
  'colors' => (sizeof($colors) AND $this->product->id_color_default) ? $colors : false,
  'combinationImages' => $combinationImages));

}

 

in smarty $combinations != $combinaisons. $combinaisons has the data i've added, while $combinations does not.

 

Any clue whats happening there?

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

Hi,

 

Prestashop developers is not robots)) They also do mistakes. In one of the oldest version someone of developers team done a misprint

 

Regards

I don't cear about misstypes. I'm talking, that somewhere on the way in smarty, variable $combinations is changed, while misstyped one $combinaisons is not.

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