Sunnysideup\EcommerceProductVariation\Model\Buyables\ProductWithVariationDecorator::generateVariationsFromAttributeValues
The array provided needs to be TypeID => arrayOfValueIDs TypeID => arrayOfValueIDs TypeID => arrayOfValueIDs you can also make it: NameOfAttritbuteType => arrayOfValueIDs OR: NameOfAttritbuteType => arrayOfValueNames e.g.
Colour => array(Red, Orange, Blue ) Size => array(S, M, L ) Foo => array( 1 => 1, 3 => 3 ). TypeID is the ID of the ProductAttributeType. You can also make it a string in which case it will be found / created arrayOfValueIDs is an array of IDs of the already created ProductAttributeValue (key and value need to be the same) You can also make it an array of strings in which case they will be found / created...
Signature
public function generateVariationsFromAttributeValues(array
$values )
Parameters
$values
— array
Returns
- int