Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Add Quantity Available to Product Options Disable if out of

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 04-27-2006, 07:57 AM
  Debra's Avatar 
Debra Debra is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 44
 

Default

Ok, after really trying hard to figure this out before I posted it I have figured it out right after. If any one else wants to know...When you are setting up the Product Options just select the Option Type as a variant and that way you can control the price, wieght, amount, and order number.

The only problem now that I see is that if you have several product options and one of those products options is out of stock it will have a pop up box that says out of stock but it won't specify which option is out of stock so that the user doesn't know wheter it was option 1, option 2, or option 3, unless they try all the different combinations. How can I actually hide the product option if it is out of stock?
__________________
X-Cart version 4.0.14
Reply With Quote
  #3  
Old 05-09-2006, 06:47 PM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default Re: Add Quantity Available to Product Options Disable if out

Quote:
Originally Posted by Debra
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....
Have you figure out this yet? I need this toooo~
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:31 PM.

   

 
X-Cart forums © 2001-2020