Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Add to cart Button on certain products only...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-09-2003, 01:27 PM
 
yamz yamz is offline
 

Advanced Member
  
Join Date: Dec 2002
Posts: 46
 

Default Add to cart Button on certain products only...

Hello, just wanted to know what the best way was to add an add to cart button on certain products only. I have about 300 products, but I can only sell about 14 of them over the internet.

My first thought was to code it direct in to the Description Box?

If anybody knows of a better way, please let me know!

Thanks,

Yamz
Reply With Quote
  #2  
Old 02-09-2003, 11:31 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

If you put a query around the add to cart form such as.

{if $product.productid eq 12345 }
Add to cart bits here
{else}
Phone ordering bits here
{/if}

Alternatively, if you set stock to zero for the items where you dont wat ordering then no add to cart buttons etc will appear.
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 02-10-2003, 06:29 AM
 
yamz yamz is offline
 

Advanced Member
  
Join Date: Dec 2002
Posts: 46
 

Default Cool!

Thanks man, I will try that!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:59 PM.

   

 
X-Cart forums © 2001-2020