Hi,
I am creating promotion using AdminPromotion and setting setOrderTotalCode("ot_total_discount");
AdminPromotion promotion = new AdminPromotion();
promotion.setName(getName());
promotion.setActive(true);
promotion.setOrderTotalCode("ot_total_discount");
On admin contol panel i can see the promotion created with correct promotion type but "Minimum Order Value", "Min total quantity" , "Min quantity for a product", "Discount Type" etc. field of Total Discount module are not set.
How can i give these value at the time of creating promotion and attach these to the promotion through API?
Thank you very much in advance.
I am creating promotion using AdminPromotion and setting setOrderTotalCode("ot_total_discount");
AdminPromotion promotion = new AdminPromotion();
promotion.setName(getName());
promotion.setActive(true);
promotion.setOrderTotalCode("ot_total_discount");
On admin contol panel i can see the promotion created with correct promotion type but "Minimum Order Value", "Min total quantity" , "Min quantity for a product", "Discount Type" etc. field of Total Discount module are not set.
How can i give these value at the time of creating promotion and attach these to the promotion through API?
Thank you very much in advance.