Adding a product through AddItem in products econfigurator script
Hi,
I have a product structure hierarchy as below where Rel stands for Relationship,C stands for customizable product, P stands for Product and Root is the Product root:
Root
-Rel1
-C1
-Rel2
-C2
-Rel3
-P1
If I want to add P1 automatically, through AddItem method in my script as follows, do we have a limit that we can add the child till level 2 only i.e. till C2 or we can add as below till P3:
var temp=AddItem("$.[Root]#1.[Rel1]#[C1].[Rel2]#[C2]",Rel3,P1,"1");
Thanks
------------
Sanket