Skip to content

Commit 2fb1bf0

Browse files
Benjamin GemperleBenjamin Gemperle
authored andcommitted
Update README.md
Added Example of how to check if Customer is in a Role
1 parent 06c284f commit 2fb1bf0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ Thanks for buying from %Store.Name%. Below is the summary of the order.
2323
}
2424
...
2525
Order Number: %Order.OrderNumber%
26+
...
27+
@if (Nop.Core.Domain.Customers.CustomerExtensions.IsInCustomerRole(Model.Customer, "Registered"))
28+
{
29+
<div>
30+
Thanks for your Registration.
31+
</div>
32+
}
2633
```
2734

2835
Any Message Template has the related Objects available in the Model. E.g. Model.Order, Model.Customer, Model.Vendor etc. Works with Subject and Body.

0 commit comments

Comments
 (0)