Configuration script to exclude products on change of attribute of Root Product
Hi All,
I am trying to create a configurator script in a way that when the attribute value changes for Root product,out of the n component products in a relationship some should get deleted
product structure sample example with two components :
Root product- Test Product
Root product attribute - TV(values:Y,N)
Product Components- Test product 1,Test product 2
Product Components attribute name:prod(default value for Test Product1:tv)
Relationship name- Products
Test Product->Products-->Test Product 1(Attribute name:prod,Default attribute value tv)
|-------->Test Product 2 (Attribute name:prod,Default attribute value blank)
So as per the above structure I am trying to remove Test Product 1 when TV attribute(Attribute of Test Product) becomes N.