Jump to content

1.7 Hide quantity field on select product pages


AFCPS

Recommended Posts

I would like to hide the quantity selection box on specific products.

I have found this code from an archived post on version 1.6 however doesn't seem to work if i insert it into /themes/classic/templates/catalog/product.tpl:

  Quote

{if $category->id==3} <script type="text/javascript"> $("#quantity_wanted, #quantity_wanted_p, .button-minus, .button-plus").css( "display", "none" ); $("#quantity_wanted").prev().css( "display", "none" ); </script> {/if}

Expand  

I'm happy to hide them using categories or product ID's, whichever works.

quantity image.png

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