[SOLVED] [checkout] initial "Quantity" needs to be auto selected as "1"

smilem

Joined: 2009-02-25
Posts: 118
Posted: Sat, 2010-01-23 18:07

On Checkout "Step 1 - Adjust products and quantities"
When all "Products" are set "Show in Dropdown" and customer adds all photos to cart the cart displays selection for every photo as "unselected". The idea was when customer selects a photo size it would auto fill the quantity to 1.

AttachmentSize
cart.gif5.66 KB
 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2010-01-23 18:39

line 120 of modules/checkout/templates/SessionContents.tpl - add a 1 near the end to make:

                <input type="text" name="{g->formVar var="form[photos][`$item.id`][newqty]"}" size="1" style="text-align:right;" value="1"/>

Obey the usual rules for making local edits to templates.

 
smilem

Joined: 2009-02-25
Posts: 118
Posted: Sat, 2010-01-23 19:06

Perfect. Now it works like i need :)
Thanks for you help.