View Single Post
  #14  
Old 06-27-2011, 11:31 AM
 
upupcreative upupcreative is offline
 

Advanced Member
  
Join Date: Aug 2010
Posts: 66
 

Default Re: Qty Removal in product.tpl

So, I'd like to remove the quantity selector ONLY for one category in my shop. So basically I'm going to modify product_details.tpl to achieve the following logic:

if category == wedding then:
quantity = 1
and hide the quantity input box

So here's what I think I need to add:

{if $product.categoryid == 4}
<script type="text/javascript">
<!--
var min_avail = 1;
var avail = 1;
var product_avail = 1;
-->
</script>
<input type="hidden" name="amount" value="1" />

{/if}

HOWEVER: I'm not sure where to add it and what to do with what's already there.

I appreciate any guidance - I considered just playing around to figure it out but I really don't want to spend the afternoon undoing things if I don't need to.

Thanks,
Julie
__________________
Version 4.4.2
Reply With Quote