Jump to content

[SOLVED] How to remove Quantity field in Product page


Recommended Posts

Hi,

 

I'm new to Prestashop. I will be selling flyers through my site that can purchased in quantities of 250, 500 and 1000. So I have decided to make an attribute called quantity and use that instead of the Quantity field that shows up on the product page.

 

Is there any way to remove the Quantity field from the product page so that it does not show up there?

 

Thanks in advance for your help!

Link to comment
Share on other sites

go to product.tpl file and search for 

<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}" />

then remove this code or just comment out it with {* comment *} method

Link to comment
Share on other sites

  • 9 months later...
  • 1 year later...
And if I wanted to show only the quantities but do that not editable via keyboard?

 

I would like to remove the input and increase or decrease the amount only with states + and -.

 

How I can do this?

Link to comment
Share on other sites

  • 4 weeks later...

Hi, 

 

I also made a quantity list using a combination but I don't see how to "connect" it. Right now I have a drop down list of quantity like 500, 1000, 2000, 5000 on the product page but selecting any do no make update on the quantity.

 
Thank your help or quick tips where to look for that.
 
Julien
Edited by fx1 (see edit history)
Link to comment
Share on other sites

  • 5 months later...

go to product.tpl file and search for 

<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}" />

then remove this code or just comment out it with {* comment *} method

 

I would like to do this for only some products in my store.  I sell packaged meat, for which I have created combinations and don't want the "quantity" selector, and I also sell individual items like milk and cheese, for which there are no combinations and I need the "quantity" field.

How can this be done?

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...