Page 1 of 1

Change Qty to 0 rather than 1 Version 1.5.1.3

Posted: Mon Jan 23, 2012 10:07 pm
by robertdon777
Hi There

I'm using opencart for a web-to-print service at the moment for a University. My client wants a change to the Qty. Box area.

Ideally we want to have the Quantity set to '0', so the customer has to input the quantity rather than always being 1 and then just adding it straight to the cart.

Hope someone can help with these changes, it would help me out a great deal.

Rob

Re: Change Qty to 0 rather than 1 Version 1.5.1.3

Posted: Thu Jan 26, 2012 1:55 am
by robertdon777
Help - I just cannot find where this code is to change it!

Re: Change Qty to 0 rather than 1 Version 1.5.1.3

Posted: Thu Jan 26, 2012 2:29 am
by Qphoria
1. EDIT: catalog/view/theme/YOURTHEME/template/product/product.tpl

2. FIND:

Code: Select all

<?php echo $minimum; ?>
3. REPLACE WITH:

Code: Select all

0

Re: Change Qty to 0 rather than 1 Version 1.5.1.3- SOLVED

Posted: Thu Jan 26, 2012 7:34 pm
by robertdon777
All done

used this code here (and as above- thanks) to change:

Catalog » View » Theme » Gentle » Template » Product » Product.tpl


Line 184:
<input type="text" name="quantity" size="2" value="<?php echo $minimum; ?>" />

Change to:
<input type="text" name="quantity" size="2" value="0" />

Thank you