Copied to clipboard

Flag this post as spam?

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


  • Tony 104 posts 162 karma points
    Jan 06, 2017 @ 16:37
    Tony
    0

    Getting products that are not available

    I running the following

    var merchello = new Merchello.Web.MerchelloHelper();
    var products = merchello.TypedProductContentFromCollection(collectionKey).AsQueryable();
    

    In the collection there are 22 products of which two are not available, why are these products not coming through?

    I still need there information to display, and I would use the 'Available' property to define how its show.

    Is there anyway to get products which have the available set to false, seems pointless having the property in the product object if its always true

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jan 06, 2017 @ 16:51
    Rusty Swayne
    0

    Hey Tony,

    I'd have to look for certain, but I suspect the underlying query is filtering out all products that are marked not available. The available property is intended to allow an editor to be able to create products with are not displayable on the front end of the website - so it's sort of a semantics issue - and/or the property should not have been added to the front end model.

    However, I think it's worth a discussion if the consensus is this is confusing and needs a change. It'd be great to open a "Usability" issue in the issue tracker - http://issues.merchello.com.

  • Tony 104 posts 162 karma points
    Jan 06, 2017 @ 17:01
    Tony
    0

    Done :)

Please Sign in or register to post replies

Write your reply to:

Draft