It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Code on Quantities

Code on Quantities

Postby daurgo2001 on Fri Sep 10, 2010 12:58 am

Hello!


The code in question is this:

<ss:if test="$store.InventoryEnabled">
<ss:if test="$product.quantity == 0">This item is out of stock<ss:else/>Available Quantity: <ss:value source="$product.quantity"/></ss:if>
</ss:if>


The problem is that I would like any product that has 3 or more items in stock to just say "3 or more".

What does the code need to be?
daurgo2001
 
Posts: 2
Joined: Fri Sep 10, 2010 12:49 am

Re: Code on Quantities

Postby daurgo2001 on Fri Sep 10, 2010 1:35 am

Nvm.... got it! ^.^


<ss:if test="$store.InventoryEnabled">
<ss:if test="$product.quantity == 0">This item is out of stock</ss:if>
<ss:if test="$product.quantity >=3"> 3 or more<ss:else/>Available Quantity: <ss:value source="$product.quantity"/></ss:if>
</ss:if>
</ss:if>

Thanks!
- David
daurgo2001
 
Posts: 2
Joined: Fri Sep 10, 2010 12:49 am


Who is online

Users browsing this forum: No registered users and 6 guests