Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2008
    Posts
    45
    Plugin Contributions
    0

    Default How to set "No, Do not show Quantity Box" to Default?

    1. How do I set No, Do not show Quantity Box as the default? Where in the code can I make it do that, because I end up click it every time I enter a product and its getting really annoying.


    2. How default the "Products Quantity:" to 1 or any number, so I do not have to enter "999" into it every time... THANKS!

  2. #2
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: How to set "No, Do not show Quantity Box" to Default

    Building upon this question, the Zen Cart Tutorials say "Maximum - the Maximum number that you can buy for the product (Default = 0-Unlimited)" but how do we change that default to be 1 so we don't have to change it all the time.

    The end goal is so that customers can only put 1 of each product in their cart since only 1 of each product exists.

  3. #3
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: How to set "No, Do not show Quantity Box" to Default

    Quote Originally Posted by pricediscrimination View Post
    Building upon this question, the Zen Cart Tutorials say "Maximum - the Maximum number that you can buy for the product (Default = 0-Unlimited)" but how do we change that default to be 1 so we don't have to change it all the time.

    The end goal is so that customers can only put 1 of each product in their cart since only 1 of each product exists.
    hmm, any advice out there?

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: How to set "No, Do not show Quantity Box" to Default

    If you have a lot of products you might want to use a tool like Easy Populate to enter your data instead of using the admin interface (which can be a little clunky.) You can find EP in the Free Software Add Ons, and there is a current thread of advice here.

    Rob

  5. #5
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: How to set "No, Do not show Quantity Box" to Default

    Quote Originally Posted by rstevenson View Post
    If you have a lot of products you might want to use a tool like Easy Populate to enter your data instead of using the admin interface (which can be a little clunky.) You can find EP in the Free Software Add Ons, and there is a current thread of advice here.

    Rob
    Thank you for your reply, but this should just be a quick modification to the code (changing a 0 to a 1 somewhere), an add-on shouldn't be necessary. But I need someone to direct me to the correct code to modify.

  6. #6
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: How to set "No, Do not show Quantity Box" to Default

    Have you used phpMyAdmin (or similar) to look at the database? I would assume that's where the 0s and 1s are.

    Rob

  7. #7
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: How to set "No, Do not show Quantity Box" to Default

    Quote Originally Posted by rstevenson View Post
    Have you used phpMyAdmin (or similar) to look at the database? I would assume that's where the 0s and 1s are.

    Rob
    Sure you can modify the previous entries from the database, but what I am talking about is the code that makes the field for "Product Qty Maximum" prepopulated with a 0. Instead of it being prepopulated with 0, I want it to be a 1.


    (on that note, I wouldn't mind having "Products Quantity" prepopulated with a 1 instead of blank.

  8. #8
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: How to set "No, Do not show Quantity Box" to Default

    I was really hoping one of the big wigs could help me figure this out.. but I don't think many people venture into this forum topic as often as others.

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: How to set "No, Do not show Quantity Box" to Default

    I was really hoping one of the big wigs could help me figure this out.
    Sorry not a wig...

    File = /admin/includes/modules/product/collect_info.php
    Code:
    'products_quantity_order_max' => '0',
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: How to set "No, Do not show Quantity Box" to Default?

    Quote Originally Posted by toussi View Post
    1. How do I set No, Do not show Quantity Box as the default? Where in the code can I make it do that, because I end up click it every time I enter a product and its getting really annoying.
    You can edit this setting using the Product Quantity Box Status - Adding New Products switch under Configuration > Product Info.

    Personally, I think this should be with the other similar switches under Catalog > Product Types... maybe it'll be moved during the admin re-write!

 

 

Similar Threads

  1. Do not show Quantity Box set as default
    By iCarp in forum Customization from the Admin
    Replies: 1
    Last Post: 5 Aug 2015, 01:17 PM
  2. Quantity Discount box and "add to cart" button does not show up in "Category" view
    By petro in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Nov 2013, 09:48 PM
  3. v139h Can I set "No, Do not show Quantity Box" across the board?
    By spawnie69 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 Feb 2012, 04:48 PM
  4. Need to change the default quanity for "each" to "Set" on certain products
    By whiskermouse in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 24 Apr 2010, 02:46 AM
  5. Global set "Do not show quantity box"
    By BesterP12 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 16 Aug 2008, 11:04 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR