Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Yadwinder singh 43 posts 112 karma points
    Aug 12, 2013 @ 11:03
    Yadwinder singh
    0

    ucommerce product property @displayonsite not working

    Hello,

    I'm using uCommerce 3.6.

    The Product property @displayonsite not working.

    Please help....

    Thanks,

    Yadwinder singh

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Aug 12, 2013 @ 11:07
    Nickolaj Lundgreen
    0

    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 :)

  • Yadwinder singh 43 posts 112 karma points
    Aug 12, 2013 @ 11:53
    Yadwinder singh
    0

    Hi Nickolaj,

    Thanks for reply,

    Please tell me where I have to make change.

    tell me file name.

     

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Aug 12, 2013 @ 12:56
    Nickolaj Lundgreen
    0

    If you are using the razor store, it's here: / App_Code / uCommerce / Helpers / Product.cshtml

  • Yadwinder singh 43 posts 112 karma points
    Aug 12, 2013 @ 13:30
    Yadwinder singh
    0

    Thanks a lot, Nickolaj.

    By implementing this, a single product hides

    but not the whole category

    How's this possible?

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Aug 12, 2013 @ 13:42
    Nickolaj Lundgreen
    0

    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?

  • Yadwinder singh 43 posts 112 karma points
    Aug 12, 2013 @ 13:52
    Yadwinder singh
    0

    I want to know that

    How could I hide a category also?

     

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Aug 12, 2013 @ 13:54
    Nickolaj Lundgreen
    0

    That would be something like this: category.Categories.Where(x=> x.DisplayOnSite)

    In: / App_Code / uCommerce / Helpers / Category.cshtml

  • Yadwinder singh 43 posts 112 karma points
    Aug 12, 2013 @ 14:01
    Yadwinder singh
    100

    this is not working here

  • Lars Horne-Mortensen 40 posts 184 karma points
    Aug 16, 2013 @ 10:27
    Lars Horne-Mortensen
    0

    Hi Yadwinder,

    Did you figure it out?

  • Splaxi 9 posts 29 karma points
    Aug 24, 2013 @ 17:08
    Splaxi
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft