Results 1 to 6 of 6
  1. #1
    Join Date
    May 2009
    Posts
    47
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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/showth...860#post610860

    I am thinking you should fix all of these, but in particular $24 ...
    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!

  4. #4
    Join Date
    May 2009
    Posts
    47
    Plugin Contributions
    0

    Default Re: How to limit Option Attributes to 1 qty

    Arrgh!

    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?

  5. #5
    Join Date
    May 2009
    Posts
    47
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    May 2009
    Posts
    47
    Plugin Contributions
    0

    Default Re: How to limit Option Attributes to 1 qty

    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.

 

 

Similar Threads

  1. v139h Display Attributes, Qty Discounts & Qty Box in a Table
    By pool27 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 May 2014, 11:49 AM
  2. v150 Help with attributes how to set up qty for each
    By dsimon in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 22 Nov 2012, 03:09 PM
  3. Display Attributes/Options, Qty Discounts & Qty Box in Matrix
    By teaj in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Apr 2011, 02:59 PM
  4. Attributes - Setting Qty per Size option
    By dragonimpact in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 13 Dec 2009, 12:18 AM
  5. How to do Attributes Qty Price Discount?
    By lina0962 in forum Customization from the Admin
    Replies: 1
    Last Post: 3 Mar 2007, 03:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg