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.
GetStore in a JsonResult Controller
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.
Thank you
Hi Warren,
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...