Is there a API to add a optional promotion component
Hi,
We have a promotion with 3 components (cardinality in bracket: min max default):
CxP 1 (1,1,1)
CxP 2 (1,1,1)
CxP 3 (0,1,0)
SP 1 (0,1,0)
Note:
CxP = customizable product
SP: simple product
the 1st 2 CxP are added automatically with API ApplyPromotion
Now I need to add CxP 3 and SP 1 by script. How do I do that?
Our objective is that the API sets correctly fields "Prod Prom Id" and "Prod Prom Rule Id" like it's done when I add CxP 3 and SP 1 from the Edit Promotion UI.
I was thinking about API "AppendChild" but it's not documented.
Any suggestion?
Thanks,
Matthieu
0