Jump to content

Change the default quantity for a product? [SOLVED]


Recommended Posts

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

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

  • 9 years later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...