Jump to content

Increase order quanity to 4 digits? Best way to...


Recommended Posts

Hi there,

Have been playing with Presta all day. It is excellent :-)

I would like to know if there is an easy way to increase the order quantity for adding to cart to 4 digits, it is currently 3. The reason is I am selling things people will want to order up to 9999 of.

Any help appreciated.

Gwilym

Link to comment
Share on other sites

You will need to change line 258 of product.tpl in your theme directory:

<input type="text" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}1{/if}" size="2" maxlength="3" />



Change maxlength to 4 to allow quantities up to 9999. Increase size to make the text field longer.

Link to comment
Share on other sites

Thanks so much for the advice.

I did the change to the product.tpl - which almost gets me to where I need to go. My next block is...

- I would like Prestashop to display prices to 3 decimal places (ie $0.015) - probably quite easy in the theme templates?

- In product combinations I would need the impact on price to be to 3 decimal places as well - probably more annoying as it is on the admin side?

I did think of selling in units of 100 but for this instance (selling screws) I think it would be cleaner the other way.

Thoughts?

Gwilym

Link to comment
Share on other sites

  • 2 years later...
  • 4 months later...
×
×
  • Create New...