HotcakesCommerce / hotcakes-commerce-core

The core of the e-commerce part of the overall solution. This is an ecommerce shopping cart solution built on top of the DNN (DotNetNuke) CMS. Anyone can do commerce online now!
https://mmmcommerce.com
MIT License
68 stars 55 forks source link

Accessing logged in user profile info from Product Viewer view #362

Closed puresystems closed 3 years ago

puresystems commented 3 years ago

Is it possible to access a logged in user's profile info from a View used in the Product View module, which uses the ProductPageViewModel model? We tried the Dnn razor helpers but they didn't appear to work. Does the model provide anything for this?

WillStrohl commented 3 years ago

You sure can. You'd just do something similar to what you see in the documentation article below.

https://hotcakescommerce.zendesk.com/hc/en-us/articles/208219556-How-can-I-use-security-roles-in-a-view-

puresystems commented 3 years ago

Ah yes of course, not sure why we didn't think of this method, thanks!