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
Hello,
I'm using uCommerce 3.6.
The Product property @displayonsite not working.
Please help....
Thanks,
Yadwinder singh
Your view needs to filter the products based on the display on site property like this:
products.Where(x=> x.DisplayOnSite)
Hope that makes sense :)
Hi Nickolaj,
Thanks for reply,
Please tell me where I have to make change.
tell me file name.
If you are using the razor store, it's here: / App_Code / uCommerce / Helpers / Product.cshtml
Thanks a lot, Nickolaj.
By implementing this, a single product hides
but not the whole category
How's this possible?
You asked for help to hide the product, but now you are talking about categories. Im getting a little lost :) What do you want to achieve?
I want to know that
How could I hide a category also?
That would be something like this: category.Categories.Where(x=> x.DisplayOnSite)
In: / App_Code / uCommerce / Helpers / Category.cshtml
this is not working here
Hi Yadwinder,
Did you figure it out?
Hi.
I did find the same features missing in the Razor Demo store.
I did pull the store from Bitbucket and fixed the problems in som different commits. I've create a pull request against the Razor demo store.
You can see my changes at my own repo: https://bitbucket.org/splaxi/ucommerce-razor-store-forked-to-help
I did a fix on DisplayOnSite regarding Categories in the LeftNavigation, DisplayOnSite regarding products ind the product list, rendering the product if user has bookmarked the url and the product have been disabled since the bookmark.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
ucommerce product property @displayonsite not working
Hello,
I'm using uCommerce 3.6.
The Product property @displayonsite not working.
Please help....
Thanks,
Yadwinder singh
Your view needs to filter the products based on the display on site property like this:
products.Where(x=> x.DisplayOnSite)
Hope that makes sense :)
Hi Nickolaj,
Thanks for reply,
Please tell me where I have to make change.
tell me file name.
If you are using the razor store, it's here: / App_Code / uCommerce / Helpers / Product.cshtml
Thanks a lot, Nickolaj.
By implementing this, a single product hides
but not the whole category
How's this possible?
You asked for help to hide the product, but now you are talking about categories. Im getting a little lost :) What do you want to achieve?
I want to know that
How could I hide a category also?
That would be something like this: category.Categories.Where(x=> x.DisplayOnSite)
In: / App_Code / uCommerce / Helpers / Category.cshtml
this is not working here
Hi Yadwinder,
Did you figure it out?
Hi.
I did find the same features missing in the Razor Demo store.
I did pull the store from Bitbucket and fixed the problems in som different commits. I've create a pull request against the Razor demo store.
You can see my changes at my own repo: https://bitbucket.org/splaxi/ucommerce-razor-store-forked-to-help
I did a fix on DisplayOnSite regarding Categories in the LeftNavigation, DisplayOnSite regarding products ind the product list, rendering the product if user has bookmarked the url and the product have been disabled since the bookmark.
is working on a reply...