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 3 of 3

Thread: Hide add to cart button when out of stock

  1. #1
    JacobL is offline Junior Member
    Join Date
    Jul 2009
    Posts
    20

    Default Hide add to cart button when out of stock

    Title says it all. I searched but didn't find anything. How do I hide the add to cart button when product is out of stock? Is this possible without a lot of modification? In my opinion it should already work like this.

    Thank you

  2. #2
    Louie is offline Senior Member
    Join Date
    Oct 2008
    Posts
    126

    Default

    You could the feature inventory control on this one. See this link http://manual.aspdotnetstorefront.co...y-control.aspx

  3. #3
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    This should do what you need.
    C#/VB.NET Code:
    <xsl:param name="inv" select="aspdnsf:GetMLValue(Inventory)"></xsl:param>

    <
    xsl:if test="$inv&gt;0">
    Show your add to cart button
    </xsl:if> 

    TTFN

    BFG