| You are here: DEVPPL ‹ Forum ‹ Programming ‹ HTML Forum |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
Code on Quantities
2 posts
• Page 1 of 1
0
Code on Quantities
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?
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?
- Daurgo
- Reputation: 0
- Posts: 2
- Joined: Fri Sep 10, 2010 1:49 am
- Highscores: 0
- Arcade winning challenges: 0
0
Re: Code on Quantities
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
<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
- Daurgo
- Reputation: 0
- Posts: 2
- Joined: Fri Sep 10, 2010 1:49 am
- Highscores: 0
- Arcade winning challenges: 0
|
|