Post by robertdon777 » Mon Jan 23, 2012 10:07 pm

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

Newbie

Posts

Joined
Mon Jan 23, 2012 10:02 pm

Post by robertdon777 » Thu Jan 26, 2012 1:55 am

Help - I just cannot find where this code is to change it!

Newbie

Posts

Joined
Mon Jan 23, 2012 10:02 pm

Post by Qphoria » Thu Jan 26, 2012 2:29 am

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by robertdon777 » Thu Jan 26, 2012 7:34 pm

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

Newbie

Posts

Joined
Mon Jan 23, 2012 10:02 pm
Who is online

Users browsing this forum: No registered users and 8 guests