Jump to content

Remove quantity selection


Jones87

Recommended Posts

Good Morning,

I am creating an online store with Prestashop 1.7.7.7 and I would like to remove the quantity selector that the template brings by default (the template in question also the one that comes by default) since the products are going to be sold by quantity sections (25 , 50,100 ... etc)

original.jpg.db11d66e026830dd274b98e994486548.jpg

Searching in the Prestashop forums and after much searching I found this solution on the route: themes/classic/assets/css/theme.css

.product-quantity .qty {

display:none;}

But the quantity header keeps appearing.

image.png.92e40486b26067ea18da1911faae2f5b.png

 

And if I use:

.product-actions .control-label {

display: none;}

The headers of the combinations I have created also disappear.

1761645818_option2.jpg.68a94a46ff79cbd95e67335ea048b5a9.jpg

 

This other option deletes the header, but the problem is that it also deletes my cart and that I am interested in leaving it to be able to add the products.

.product-add-to-cart {

display:none;}

50753683_option3.jpg.16df92f881f861d2d64f4cdba8851621.jpg

 

I have also tried with this option on the route:

themes/templates/catalog/_partials/product-add-to-cart.tpl

Remove:

<span class="control-label">{l s='Quantity' d='Shop.Theme.Catalog'}</span>

Change:

type="number"
name="qty"
id="quantity_wanted"

to:

type="hidden"
name="qty"

But none of these options have finished solving the problem for me.

Does anyone have any other suggestions?

Thank you so much beforehand.

 

 

 

Edited by Jones87 (see edit history)
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...