Forums / Setting Up Categories, Products, Attributes / How to limit Option Attributes to 1 qty?

How to limit Option Attributes to 1 qty?

Locked

Views: 979

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
30 Jun 2009, 4:25 PM
#1
garby avatar

garby

New Zenner

Join Date:
May 2009
Posts:
48
Plugin Contributions:
0

How to limit Option Attributes to 1 qty?

I added an Option drop down to a product that has different size attachments - so they can choose the size they want.

Problem is the product quantity is limited to one. But you can keep adding the item with different sizes to the shopping cart. Anyway to fix this? :huh:

30 Jun 2009, 8:25 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to limit Option Attributes to 1 qty?

Set the Maximum to 1 instead of 0 ...

Now only 1 can be added to the cart ...

Also set the Quanty Box to be hidden, and save steps on this ...
Products Quantity Box Shows: **No, Do not show Quantity Box **

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Jun 2009, 8:27 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to limit Option Attributes to 1 qty?

NOTE check the Known Bug Fixes for v1.3.8 at:
http://www.zen-cart.com/forum/showthread.php?p=610860#post610860

I am thinking you should fix all of these, but in particular $24 ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Jul 2009, 3:11 PM
#4
garby avatar

garby

New Zenner

Join Date:
May 2009
Posts:
48
Plugin Contributions:
0

Re: How to limit Option Attributes to 1 qty?

Arrgh! :blink:

The first step in the Admin worked great. I then added the line from #24 and now it does not even go to my cart on any item. Just a blank page.

I removed the line (in both places) and it still won't go to my cart.

For reference the lines were located at 2801 and 2871

What can I do?

1 Jul 2009, 3:26 PM
#5
garby avatar

garby

New Zenner

Join Date:
May 2009
Posts:
48
Plugin Contributions:
0

Re: How to limit Option Attributes to 1 qty?

Now it is worse I tried to log into Admin and get this.

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at //includes/classes/shopping_cart.php:3787) in //includes/functions/sessions.php on line 108

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at //includes/classes/shopping_cart.php:3787) in //includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at //includes/classes/shopping_cart.php:3787) in //includes/init_includes/init_templates.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at //includes/classes/shopping_cart.php:3787) in //includes/functions/general.php on line 21

1 Jul 2009, 4:10 PM
#6
garby avatar

garby

New Zenner

Join Date:
May 2009
Posts:
48
Plugin Contributions:
0

Re: How to limit Option Attributes to 1 qty?

:smile: I think it's ok now.

I extracted my backup and found the original shopping_cart.php file - renamed the old one (just in case) and uploaded my backup.

So far everything seems to be fine.

I don't know what happened with the other edited one, as I triple checked that it was the same when I resubmitted it without the code change. :unsure: