View Single Post
  #1  
Old 04-27-2006, 07:45 AM
  Debra's Avatar 
Debra Debra is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 44
 

Default Add Quantity Available to Product Options Disable if out of

Ok, I was wondering if there is a way to add a quantity to the additional product options. For instance: If I am selling cell phone charm tags...

The main product is called Make your own Cell Phone Charm.
In total quantity I have 10 available.
I have 2 different options for this product:

First option is to pick your charm leash:
I have 10 black charm leashes
2 blue
2 green
and so on...

The second option is to pick your Charm:
I have 2 Make a Wish Tokens
2 Princess Tokens
2 Diva Tokens
and so on....

For the Options though you cannot set the quantity of each and I need to know how to do this so that for instance if all 10 of the black charm leashes are picked I need that option to be disabled or deleted. Hope I've explained myself enough. I didn't know if this would be an easy fix, or if this would require some work. Any suggestions would be great. I saw one post where they added:
Code:
<td>{if $product.avail < 1}0{else}{$product.avail}{/if}

But I'm not sure exactly where to put this and If I used this statement I would have to make each seperate option an actual product right and what would I need to add to actually delete the product from the options list? I am guessing someone has already done this, or that there is already an option to do this that I may be over-looking.
__________________
X-Cart version 4.0.14
Reply With Quote