Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Linking quantity with 2 or more items

Linking quantity with 2 or more items

Locked

Views: 567

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
1 Aug 2010, 4:49 PM
#1
liderbug avatar

liderbug

Zen Follower

Join Date:
Jul 2009
Posts:
104
Plugin Contributions:
0

Linking quantity with 2 or more items

Zen Cart 1.3.8a

A chair is a chair is a chair. (Well in our case... folding)

I've tried searching - but on what word...

So I've got Adult tickets and Children'a tickets but only 200 chairs. How do I link the sales together?

Thanks

1 Aug 2010, 5:07 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Linking quantity with 2 or more items

Your post is a little light on information, but it sounds like you're selling seats to an event, and there are two ticket prices - Adults and Children.

You would make the seat the product (with a quantity of 200) and set up two attributes, with pricing by attribute.

https://www.zen-cart.com/tutorials/index.php?article=57

If you want to separate (or track) the attributes:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=310

1 Aug 2010, 8:19 PM
#3
liderbug avatar

liderbug

Zen Follower

Join Date:
Jul 2009
Posts:
104
Plugin Contributions:
0

Re: Linking quantity with 2 or more items

I'm getting close.

Option Name Manager:
ID Option Name Option Type Sort Order Size Max
1 Adult Text 1 4 4
2 Child Text 2 4 4

Attribute controller
111 Adult TEXT + 10.0000 + 0 1 $10.00 $0.00
112 Child TEXT + 6.0000 + 0 2 $6.00 $0.00

Attribute Settings
Title Value Action
Enable Downloads true
Download by Redirect true
Download by streaming false
Download Expiration (Number of Days) 7
Number of Downloads Allowed - Per Product 5
Downloads Controller Update Status Value 4
Downloads Controller Order Status Value >= lower value 2
Downloads Controller Order Status Value <= upper value 4
Enable Price Factor true
Enable Qty Price Discount false
Enable Attribute Images true
Enable Text Pricing by word or letter true
Text Pricing - Spaces are Free 1
Read Only option type - Ignore for Add to Cart 1

My sales page now has

Please Choose:
Adult [ ] (+$10.00)
Child [ ] (+$6.00) (and the box) Add to Cart: 1
add this to my cart

When I click on Add to Cart I get 1 adult at $0 and 1 child at $16. The total is right. I've missed something. Hope you can tell from above what I did wrong.

Thanks

1 Aug 2010, 8:48 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Linking quantity with 2 or more items

In the product setup page in Admin - Catalog, is the product set to Price By Attributes and the product price to 0.00 ?

1 Aug 2010, 10:06 PM
#5
liderbug avatar

liderbug

Zen Follower

Join Date:
Jul 2009
Posts:
104
Plugin Contributions:
0

Re: Linking quantity with 2 or more items

Wasn't, is now. (the price by att). But now Att-1 Adult, $10 and Att-2 Child, $6 gives me a ticket at $16 per.

OK, I've got "1" product, no price. Now before I had adult & child and atts lower left: Adult [ ] $10 & Child [ ] $6 with the add to cart [ 1 ] lower right. When I clicked on A2C the next page looked good and you could set both numbers and the right price but only deducted from Adult count.

getting confusededed....

2 Aug 2010, 9:15 AM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Linking quantity with 2 or more items

I'm getting confused myself.

So it's working OK now, except the stock isn't being deducted properly ?

If you have the attribuites set up properly, it's the product, not the attribute, where stock is tracked. There is a mod which allows stock by attribute, but you said 'a chair is a chair is a chair'.

If you post a link to the site, it'll be easier for us to advise.