Jump to content

how can i get the value of combiniation attributs


Recommended Posts

hey again,

 

I do a new attributs combinition in prestashop  1.6 

 

I need to get value all of this atributes and stock in array for calcule specail of price .

 

so my problem how can I get the value of all this attributs 

I read there method   getAttributeCombinations  bt when I can use that in my module or override the class product or productlist ?? 

 

 

thanks  

 

Link to comment
Share on other sites

I think u should do the following things in ur specific tpl file:

 

inside javascript u should the following:-

combID = $('#idCombination').val();
combination = combinationsFromController[combID];
alert(combination.price);

and also put this

{addJsDef attributesCombinations=$attributesCombinations}

the combination.price is having the value of attribute combination.

 

Hope it may help u  :)

Link to comment
Share on other sites

×
×
  • Create New...