Jump to content
darren

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!

Share this post


Link to post
Share on other sites

did you find the div with class "qty" in product-add-to-cart.tpl? You should be able to use a similar syntax with $product

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More