Jump to content

1.7.3.0 Cannot hide Quantity product number


zant91

Recommended Posts

Hello,

First of all, I've been searching within these forums and The Internet for answers for several days, and all I've found is useless in my classic theme for prestashop 1.7.3.0. (or that's what I think because I cannot find the same lines of code).

What I want to achieve is, using the classic template in Prestashop 1.7.3.0, hide or grey out the quantity number of the same product a user is allowed to add to the cart. I want this number to be 1, and not to be increased for any product.

I attach a screenshot in order to help you guys to understand what I'm looking for.

Thanks in advance.

quantity.jpg

Link to comment
Share on other sites

54 minutes ago, zant91 said:

Hello,

First of all, I've been searching within these forums and The Internet for answers for several days, and all I've found is useless in my classic theme for prestashop 1.7.3.0. (or that's what I think because I cannot find the same lines of code).

What I want to achieve is, using the classic template in Prestashop 1.7.3.0, hide or grey out the quantity number of the same product a user is allowed to add to the cart. I want this number to be 1, and not to be increased for any product.

I attach a screenshot in order to help you guys to understand what I'm looking for.

Thanks in advance.

quantity.jpg

 

I finally found it, if anyone is interested, here are the steps:

Open ---> prestashop\themes\classic\templates\catalog\_partials\product-add-to-cart.tpl

Comment --->

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

Commnet --->

<div class="qty">
          <input
            type="text"
            name="qty"
            id="quantity_wanted"
            value="{$product.quantity_wanted}"
            class="input-group"
            min="{$product.minimal_quantity}"
            aria-label="{l s='Quantity' d='Shop.Theme.Actions'}"
          >
 </div>

 

Cheers

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