combinationAttributeValue
function, since version 2.1.3
categories: prestashop
combinationAttributeValue(combinationId, attribute)
This function returns value of specific attribute from given combination.
For example, if product combination are based on two atributes color and size, we can use this function to retrieve size of this combination.
parameters
- combinationId: number - id of product combination for which we want to find attribute value
- attribute: number - if of attribute
return type
string
examples
combinationAttributeValue(combination.id, 1)