PRODUCT PARTITION under ProductType Shows error

4 views
Skip to first unread message

cvit sandeep

unread,
Apr 13, 2015, 2:59:57 AM4/13/15
to adwor...@googlegroups.com
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.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages