Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2007
    Posts
    34
    Plugin Contributions
    0

    Default Set Product Qty Maximum for 1500 products?

    I have uploaded all my products to ZenCart using Easy Populate but I need to set the "Product Qty Maximum" to "0" for all of these products as I do not want the user to be able to enter a quantity number (people will only ever buy one unit of each product). I do not seem to be able to set this field using Easy Populate.

    Is there another way of doing this without setting each one individually?

    Thanks

    Gary

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

    Default Re: Set Product Qty Maximum for 1500 products?

    Product Maximum of 0 means unlimited ...

    Product Maximum of 1 means 1 can be ordered ...

    You may want to hide the quantity box so that they cannot change it ... this will make the quantity box on listings switch to Buy Now buttons ...

    You can update all of your Products, if ALL products are to be 1 only, by using this in the Tools ... Install SQL Patches ...

    PHP Code:
    UPDATE products SET products_quantity_order_max=1
    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: v1.5.5]
    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
    Feb 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: Set Product Qty Maximum for 1500 products?

    Oops "0" and "1" mix up!

    Thank you for your help with this - it worked a treat.

    Gary

  4. #4
    Join Date
    Dec 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Set Product Qty Maximum for 1500 products?

    Hi I have a similar problem, I wish to change the maximum order size to "2" for all my products. Do you just go to Tools->Install SQL patches and then type the above php code into the "Enter the query to be executed:" text box, change the relevant value (in my case to "2"), and then click the send button? Or am I missing some steps? I searched for a thread on how to use this tool, but no luck.

    Obviously DB backup comes first, just in case. I am running 1.3.8A with the DB patched to 1.3.8.

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

    Default Re: Set Product Qty Maximum for 1500 products?

    Backup your database first ...

    Then, to make the maximum quantity per product set to 2 you can use the command from above as:
    Code:
    UPDATE products SET products_quantity_order_max=2;
    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: v1.5.5]
    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!

  6. #6
    Join Date
    Apr 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Set Product Qty Maximum for 1500 products?

    I have this problem too, i presume this could only be controlled for each order (i.e. nothing to stop an user placing a 2nd order).

    any solution can stop an user placing a 2nd order?

  7. #7
    Join Date
    Apr 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Set Product Qty Maximum for 1500 products?

    Sorry Ajeh, this question was discuzz in http://www.zen-cart.com/forum/showthread.php?t=117678

 

 

Similar Threads

  1. Product Qty Maximum Bulk Edit
    By townsend2009 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 22 Sep 2011, 09:54 PM
  2. Problem with Product Qty Maximum not working
    By deepnet in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 8 Jan 2011, 04:20 PM
  3. How do I disable displaying the Product Qty Maximum?
    By jottoleivi in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Feb 2008, 07:13 PM
  4. set min qty for all products/categories
    By acwinc in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 22 Nov 2007, 06:30 AM
  5. Product Qty Maximum set to 1 but...
    By KTNaturals in forum General Questions
    Replies: 1
    Last Post: 19 Oct 2007, 02:18 AM

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