Forums / Customization from the Admin / How to set "No, Do not show Quantity Box" to Default?

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

Locked

Views: 3,737

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
1 Dec 2008, 6:08 PM
#1
toussi avatar

toussi

New Zenner

Join Date:
Aug 2008
Posts:
45
Plugin Contributions:
0

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!

18 Jan 2010, 1:54 AM
#2
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

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.

19 Jan 2010, 6:41 AM
#3
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

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

pricediscrimination:

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?

19 Jan 2010, 2:40 PM
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

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

Breakfast: the most important donut of the day.

19 Jan 2010, 3:05 PM
#5
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

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

rstevenson:

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.

19 Jan 2010, 5:39 PM
#6
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

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

Breakfast: the most important donut of the day.

22 Jan 2010, 4:29 PM
#7
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

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

rstevenson:

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.

4 Feb 2010, 5:58 AM
#8
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

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.

4 Feb 2010, 6:26 AM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

'products_quantity_order_max' => '0',

Zen-Venom Get Bitten

26 Feb 2010, 8:52 AM
#10
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

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

toussi:

  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!

My Contributions: Zen Lightbox | Best Sellers Reloaded