Jump to content

Hide Quantity field for certain product ID?


Recommended Posts

I need the help of someone with a superior brain to mine please.. In prestashop 1.7.6 I need to hide the quantity field for certain products (some have quantity as a combination) - I hoped i could add to the product.tpl something like..

{if $product_id=34}
<script type="text/javascript">
$(".bootstrap-touchspin").css( "display: none" );
</script>
{/if}

But this doesn't work - something similar DID work in PS 1.6, s I must be messing up somewhere. Any advise GREATLY appreciated!

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