Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi there, I'm clearly too tired - but how do I get the store inside of an ajax (well JsonResult) surface controller?
CurrentPage.GetStore isn't working.
I'm gonna need a bit more context I'm afraid. GetStore sounds like an extension method to me as it's not something we ship in the core, but I believe we do have this helper in the demo store codebase and possibly in Vendr Checkout.
If you don't have either of these, you might need to check if you have a GetStore extension method of your own defined anywhere in case you've copied a code snippet from somewhere but missed this bit.
Ah yes - it is an extension method sorry
easy enough to get the store based on the home node's model... so pretty much ignore this
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted