Yes, Exactly If I remove the Property rule the discount coupon on the discount code rule works. But It won't work with another rule in OR condition
The workflow flow :
->If a user logged in with the group name 'customers' and add a product to basket it will add a property to the orderline as 'customers' and the discount is deducted with the order line calculator.
->if the user is not logged in and applied the discount code in Discount code rule it should deduct the discount, right? Because it is given as an OR condition
Please do correct me if I'm doing anything wrong and please let me know the possibilities that this wont work :)
For whatever reason, when this was originally developed, anything that is an order line based rule, the calculation engine filters order lines based on those rules and uses those for the basis of the next rule.
I think the best option would probably be to break this up into two discounts, so one that is for the property and one that is for the discount code.
This approach has caught a number of people out, so I will be reviewing it as part of the v8 works as I personally don't think it's all that logical.
Multiple Rules on a Teacommerce Marketing Campaign doesn't work properly
We've created a Marketing campaign for Discount with two Rules.
One is Discount Code Rule and other is Property Rule
Discount Code rule doesn't work when applying through TC.AddDiscountCode. Can you please let me know why this is not working? PFA
Hi Vineeth,
In what way doesn't it work? Do you see it added to the orders discount codes collection? But it's not deducting the value?
Matt
Yes, Exactly If I remove the Property rule the discount coupon on the discount code rule works. But It won't work with another rule in OR condition
The workflow flow :
->If a user logged in with the group name 'customers' and add a product to basket it will add a property to the orderline as 'customers' and the discount is deducted with the order line calculator.
->if the user is not logged in and applied the discount code in Discount code rule it should deduct the discount, right? Because it is given as an OR condition
Please do correct me if I'm doing anything wrong and please let me know the possibilities that this wont work :)
Hmmm, I think i might know why it's not working.
For whatever reason, when this was originally developed, anything that is an order line based rule, the calculation engine filters order lines based on those rules and uses those for the basis of the next rule.
I think the best option would probably be to break this up into two discounts, so one that is for the property and one that is for the discount code.
This approach has caught a number of people out, so I will be reviewing it as part of the v8 works as I personally don't think it's all that logical.
Hope this helps
Matt
Thanks, matt :)
is working on a reply...