Jump to content

Hide quantity box on certain products?


Recommended Posts

it's possible but only with modification of product.tpl file

there is no other way.

 

you have to add there if condition, where you will check the id of product - if condition like: if id of product != product->id 

 

{if $product->id ==20}

display:none css styles for quantity field.

{/if}

  • Like 1
Link to comment
Share on other sites

  • 9 months later...

Not sure if I'm doing something wrong as this fix did not work for me. :(

 

I'm trying to accomplish the same thing for specific products. 

 

I tried this with product ID 21. I put the following code in product.tpl

{if $product->id ==21}
display:none css styles for quantity field.
{/if}
Link to comment
Share on other sites

×
×
  • Create New...