You are here: DEVPPL Forum Programming HTML Forum
NOTIFICATIONS
54.087
MEMBERS
15.684
TOPICS
62.255
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

Code on Quantities

0

Loading

Code on Quantities

Postby Daurgo » Fri Sep 10, 2010 1: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?
Daurgo
 
Reputation: 0
Posts: 2
Joined: Fri Sep 10, 2010 1:49 am
Highscores: 0
Arcade winning challenges: 0

Code on Quantities - Sponsored results

Sponsored results

Login to get rid of ads

 

0

Loading

Re: Code on Quantities

Postby Daurgo » Fri Sep 10, 2010 2: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
Daurgo
 
Reputation: 0
Posts: 2
Joined: Fri Sep 10, 2010 1:49 am
Highscores: 0
Arcade winning challenges: 0
^ Back to Top