is it possible to give an award based on a order property?
Let´s say that i have added a property named "fixeddiscountpct", and the value is 7. I then create a rule under Markering, checking for the "fixeddiscountpct" property > 0.
In the awards section i wan´t to add the value from the "fixeddiscountpct" property. Is this possible?
thank you for the answer. Do you have an example for a Order Amount Award? It doesn´t seem that there is a AOrderAmountAward to inherit from? Or am i missing something?
Add order property value to award
Hi Tea Commerce,
is it possible to give an award based on a order property?
Let´s say that i have added a property named "fixeddiscountpct", and the value is 7. I then create a rule under Markering, checking for the "fixeddiscountpct" property > 0.
In the awards section i wan´t to add the value from the "fixeddiscountpct" property. Is this possible?
Best regards René
Hi René,
To do that you would need to create a custom award. It's pretty simple to do so. You can check out how Tea Commerce for Umbraco is doing it: https://github.com/TeaCommerce/Tea-Commerce-for-Umbraco/tree/master/Source/TeaCommerce.Umbraco.Configuration/Marketing/Models/Awards
And the front end stuff: https://github.com/TeaCommerce/Tea-Commerce-for-Umbraco/tree/master/Source/TeaCommerce.Umbraco.Application/Marketing/Awards/OrderLineAmountAward
You just make your own and apply whatever discount you need.
/Rune
Hi Rune,
thank you for the answer. Do you have an example for a Order Amount Award? It doesn´t seem that there is a AOrderAmountAward to inherit from? Or am i missing something?
/René
The standard order amount award looks like this:
Thanks Rune,
now i´m right on track!
/René
Good to hear :)
is working on a reply...