Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: Default Variant with Negative Inventory Problem

  1. #1
    codeimpossible is offline Junior Member
    Join Date
    Feb 2010
    Posts
    2

    Default Default Variant with Negative Inventory Problem

    So I have a product with 3 variants. The default variant happens to have a negative inventory (-1) and when this occurs the product details page no longer displays any data. I have it set to use productvariantsindropdown.xml.config.

    I've debugged this a bit and I've found the source, or what I believe is the source, of the problem. When the default variant has a negative inventory the product is no longer returned in the result set for the

    exec dbo.aspdnsf_ProductInfo @ProductID, @CustomerLevelID, 1, 0, @affiliateID

    query which is at the top of all the xmlpackages. Is this happening because I haven't changed a configuration variable or is this a bug?

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    If you have the HideProductsWithLessThanThisInventoryLevel AppConfig set to a value, then we don't return the product if the default variant is less than that threshold. We do that because default variant info is used on non-product pages (entity pages, search results, etc) and we don't want to display one piece of info on those pages then have the customer click the link and find something different.

  3. #3
    codeimpossible is offline Junior Member
    Join Date
    Feb 2010
    Posts
    2

    Default

    ok, I have the HideProductsWithLessThanThisInventoryLevel appconfig value set to "0" which should disable this feature right?

  4. #4
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    That depends on your version. Try setting it to -1, that was the 'off' setting for a few releases.