r.steins Posted July 16, 2013 Share Posted July 16, 2013 Does anybody now in which php file you can change the quantity up/down counter? Default is +1 / -1 I want to change is to +2 / -2 soo only an even quantity can be ordered Thanks! Link to comment Share on other sites More sharing options...
NemoPS Posted July 17, 2013 Share Posted July 17, 2013 You mean in the product page? Well, you can try using a custom input type="number" and edit line 325 which looks like this <!-- quantity wanted --> <p id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) OR $virtual OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> <label>{l s='Quantity:'}</label> <input type="text" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}{if $product->minimal_quantity > 1}{$product->minimal_quantity}{else}1{/if}{/if}" size="2" maxlength="3" {if $product->minimal_quantity > 1}onkeyup="checkMinimalQuantity({$product->minimal_quantity});"{/if} /> </p> After changing the input to type="number" you can specity the attribute step="2" for it. Note that you'll get incompatibility warnings from a validator if your theme is not html5 Link to comment Share on other sites More sharing options...
vekia Posted July 17, 2013 Share Posted July 17, 2013 i think that the main problem is related to the shopping cart page in this case you should try to edit the quantity buttons in the shopping-cart-product-line.tpl template file Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now