supersesam Posted November 16, 2009 Share Posted November 16, 2009 Hi again,now I'd like to change the default quantity for all products from "1" (as it is now) to "6" in order to display the quantity discount (which is set to 6) as soon as someone clicks on a product.Is that possible?I've looked at many of the .php and .tpl files but coundn't find anything. There are no threads about this either Thanks in advance. Link to comment Share on other sites More sharing options...
rocky Posted November 17, 2009 Share Posted November 17, 2009 It is line 258 of product.tpl in your theme's directory that you are looking for: <input type="text" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}1{/if}" size="2" maxlength="3" /> Change {else}1{/if} to {else}6{/if}. Link to comment Share on other sites More sharing options...
supersesam Posted November 17, 2009 Author Share Posted November 17, 2009 Thanks man, you are my new best friend! Link to comment Share on other sites More sharing options...
MGape Posted May 27, 2019 Share Posted May 27, 2019 Hi, it doesn't works in my theme. This is the script: <input type="text" min="1" 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}" /> I have tried to change "1" with "5000" in order to display the quantity discount but it doesn't work. Probably the problem is due to the "Minimum purchase total for an order to be validated" , that is set to 100.00 €. can it be? Thanks in advance. 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