This issue appears to be caused by the method getAssignedVariableAttributes() in /Jigoshop/Entity/Product/Variable. On line ~187 it tries to grab the values of $attribute->getValue() which will always return null. It should grab $attribute->getAttribute()->getValue() which will return an array of the actual attributes. This also then requires some change to the content in the IF statement. I changed the block to the following and it works again.
if($attribute->getAttribute()->getValue()) {
foreach($attribute->getAttribute()->getValue() as $option) {
$attributes[$attribute->getAttribute()->getId()]['options'][$option] = $attribute->getAttribute()->getOption($option)->getLabel();
}
} else {
foreach($attribute->getAttribute()->getOptions() as $option) {
$attributes[$attribute->getAttribute()->getId()]['options'][$option->getId()] = $option->getLabel();
}
}
-
This reply was modified 7 years, 6 months ago by morgan.leek.