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

Featured Products add Stock option.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-18-2008, 08:55 AM
 
conradp24 conradp24 is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 83
 

Default Featured Products add Stock option.

Hi, can someone tell me how to add inventory details to Featured Products. I've got the "Buy Now" option enabled and want them to be able to see that items are in stock before they click the button. I've tried taking the code from Products.tpl and putting it into Products_t.tpl but I must be missing something. I've been knocking my head against a wall so any help would be appreciated.
__________________
Conradp24
X-Cart 4.1.12 CentOS Linux
Reply With Quote
  #2  
Old 02-19-2008, 01:39 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Featured Products add Stock option.

Paste the following code in a file "customer/main/products.tpl", where quantity of the goods should be displayed.
PHP Code:
{if $products[product].avail gt 0}{$lng.txt_items_available|substitute:"items":$products[product].avail}{else}{$lng.lbl_no_items_available}{/if} 
Reply With Quote
  #3  
Old 02-19-2008, 11:10 AM
 
conradp24 conradp24 is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 83
 

Wink Re: Featured Products add Stock option.

Yurij, that worked a treat first time. Many thanks. I'm not that clued up on that side of things, it's more guess work than anything else. I knew it had to be something simple. Appreciate it!!
__________________
Conradp24
X-Cart 4.1.12 CentOS Linux
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 07:49 AM.

   

 
X-Cart forums © 2001-2020