Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added Example of how to check if Customer is in a Role
  • Loading branch information
Benjamin Gemperle authored and Benjamin Gemperle committed Jan 19, 2015
1 parent 06c284f commit 2fb1bf0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ Thanks for buying from %Store.Name%. Below is the summary of the order.
}
...
Order Number: %Order.OrderNumber%
...
@if (Nop.Core.Domain.Customers.CustomerExtensions.IsInCustomerRole(Model.Customer, "Registered"))
{
<div>
Thanks for your Registration.
</div>
}
```

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.
Expand Down

0 comments on commit 2fb1bf0

Please sign in to comment.