Hello,
I am creating a new custom discount Rule Provider for Umbraco Commerce using Version 13 and have most of it working, but I am stuck on one bit.
I am allowing the discount admin to pick a node as part of setting up the rule. I have followed the documentation here Settings Objects | Umbraco Commerce and it is working correctly and the Node is stored as a Udi and saved. All good.
What I am now trying to do is create a custom label for that discount to display the name of the node that has been chosen by the discount admin.
I have followed the example here to create a Label View Discount Rules / Rewards | Umbraco Commerce and that is working correctly. I have the following wrapped in a span and this outputs it as follows:
Customer Is {{ model.customerNodeId }}
Customer Is umb://document/92eff6afa58e48c78817402fb2511905
But obviously this isn’t much use to the end customer. Could someone tell me how I get from having the Node/Udi in my model to returning the name of the Node?
Ideally I want it to say Customer Is ‘Customer X’ (Customer X being the name of the Node)
Thanks,
Matt