View Single Post
  #1  
Old 11-24-2010, 08:51 PM
  jadefrolics's Avatar 
jadefrolics jadefrolics is offline
 

Senior Member
  
Join Date: Feb 2010
Posts: 138
 

Default "Contact to order" for just one category

I have a site where all categories are totally normal except for one category where I want customers to contact me directly if they are interested in purchasing, rather than being able to add it to the cart and checkout. However, I want to show the price still.

I tried to use an if statement I found in another thread, but it doesn't seem to work on the product_details.tpl or perhaps it's only for older x-cart versions.

This is what I have...

Code:
{if $cat eq "251"} My alternate code here {else} {include file="customer/buttons/add_to_cart.tpl" type="input" additional_button_class="main-button"} {/if}

But it doesn't do anything. Could someone tell me the proper way for hiding Add To Cart button for one category only on the product_details.tpl?

If I just comment it out it gets rid of the button, so it seems like I'm in the right location..

Thanks!
__________________
shop jadefrolics
illustrated prints, accessories, and other goodies
http://shop.jadefrolics.com
X-Cart Gold Version 4.4.1
Reply With Quote