Hi Team ,
I am currently working on Product partition ,getting the following error
An error has occurred: [RequiredError.REQUIRED @ operations[6].operand.criterion.caseValue.type]
The code is as follows,
$root = $helper->createSubdivision();
$helper->createUnit($root, new ProductCanonicalCondition('NEW'), 200000);
$helper->createUnit($root, new ProductCanonicalCondition('USED'), 100000);
$otherCondition = $helper->createSubdivision($root, new ProductCanonicalCondition());
$helper->createUnit($otherCondition, new ProductType('PRODUCT_TYPE_L1','shirts'), 200000);
$helper->createUnit($otherCondition, new ProductType('PRODUCT_TYPE_L1','footwear'), 100000);
$janko = $helper->createSubdivision($otherCondition, new ProductType());
$helper->createUnit($janko, new ProductType('PRODUCT_TYPE_L2','shirt11'), 100000);
$helper->createUnit($janko, new ProductType('PRODUCT_TYPE_L2'));
Is this because of not giving the 'PRODUCT_TYPE' in seventh line.
If i add any PRODUCT_TYPE there that also leads to some error
Please help me to Resolve this issue.