You can fix this by updating the Bazaar:XpathToStore app key in the web.config
For example if your home page document alias was "homePage" and your Bazaar store was directly under the home page the web.config entry would look like this...
I've moved the bazaar underneath the "Homepage" node, and changed the Web.config.
I now have a "store" menu item on my site.
So far, so good.
But when I click on "All Tshirts", I get the bazaar page telling me there are no products found.
Clicking the bazaar-home gives an YSOD.
The given key was not present in the dictionary.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
Source Error:
Line 17: <h1>Featured Products</h1>
Line 18: </div>
Line 19: @if (Model.FeaturedProducts.Any())
Line 20: {
Line 21: <div class="row">
Source File: d:\Projects\Sandbox\WebshopBazaar\WebshopBazaar\App_Plugins\Merchello.Bazaar\Themes\Sandstone-3\Views\Store.cshtml Line: 19
Model.FeaturedProducts threw a KeyNotFoundException
I've re-saved the store-home, hoping it would have a value.
Also, when I open the BazaarStore document type, Umbraco gives me the following error:
Request error: The URL returned a 404 (not found):
/umbraco/backoffice/Merchello/EntityCollectionApi/GetByKey
No, but when I try a own page displaying "all products" it shows no items either. So I guess there just isn't a way to show ALL products. I don't think it would ever happen, so it shouldn't be a big problem?
Still a bit odd to include it in the bazaar if it doesn't work tho
Move Bazaar-Store node to another node
Hi,
Is it possible to move the Store node from the Bazaar to another node?
I want the store under my Home node, so the store is a node in my navigation, and pages can get data recursive from the home-page.
But when I move the Store node, I get an "Object Reference Not Set" error.
Is it possible at all?
Hi, did you find the solution to this? I'm encountering the same issue.
Thanks in advance
Hi,
You can fix this by updating the Bazaar:XpathToStore app key in the web.config
For example if your home page document alias was "homePage" and your Bazaar store was directly under the home page the web.config entry would look like this...
Hope this helps : )
Cheers
That's good to know!
Thank you :)
I've moved the bazaar underneath the "Homepage" node, and changed the Web.config. I now have a "store" menu item on my site.
So far, so good.
But when I click on "All Tshirts", I get the bazaar page telling me there are no products found. Clicking the bazaar-home gives an YSOD.
Model.FeaturedProducts threw a
KeyNotFoundException
I've re-saved the store-home, hoping it would have a value.
Also, when I open the BazaarStore document type, Umbraco gives me the following error:
Request error: The URL returned a 404 (not found): /umbraco/backoffice/Merchello/EntityCollectionApi/GetByKey
Are those two related?
I'm not sure if this is the same, but I have also had a similar issue to this - the cause in my case was the culture codes.
If you have changed your shops culture from en-US to anything else, try changing it back again and see if it starts working again.
When I had this issue, I updated the cultures directly in the merchello DB from en-US to our culture
Then did the following to make sure nothing was cached...
Cheers
Hi Jeroen,
Same problem here too with the "All TShirts" page and the exception on the Store document type.
I tried Nutty's suggestion but that didn't work...I hadn't changed the culture previously.
Did you find a solution?
Thanks
No, but when I try a own page displaying "all products" it shows no items either. So I guess there just isn't a way to show ALL products. I don't think it would ever happen, so it shouldn't be a big problem?
Still a bit odd to include it in the bazaar if it doesn't work tho
is working on a reply...