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

"In Stock" instead of "10 item(s) available&q

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-04-2002, 10:56 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default "In Stock" instead of "10 item(s) available&q

Is there a way to do this? Basically, I don't want people knowing how much stock I have (of a particular item), but would rather it say something like "In Stock" or "Out of Stock: please allow 3 days for shipment," or something to that affect.

Thank you.
Reply With Quote
  #2  
Old 11-04-2002, 03:13 PM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

Hi Bluecat,

The code below is taken from v3.2.1. /customer/main/product.tpl

Quote:
<tr><td COLSPAN=2></td></tr>
{if $config.General.show_in_stock eq "Y" and $product.distribution eq ""}
<tr>
<TD WIDTH=30%>
{$lng.lbl_quantity}
</td><td nowrap>
{if $product.avail gt 0}
{$product.avail}
{else}
{$lng.txt_no}
{/if}
{$lng.txt_items_available}</td></tr>
{/if}

The highlighted variable holds the number of items available, you could replace this with or without a language database txt variable, to say "In Stock" or what ever, when
Quote:
{if $product.avail gt 0}
(when available products are greater than zero), and
Quote:
{$lng.txt_no}
could be replaced with "Out of Stock" or what ever you prefer.
Quote:
{$lng.txt_no}
{/if}
{$lng.txt_items_available}
you could removed one of these language txt variables, or change $lng.txt_no in the language dB to Not and $lng.txt_items_available to in Stock

Regards,
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote
  #3  
Old 11-04-2002, 04:16 PM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Thanks for the help!
Reply With Quote
  #4  
Old 11-29-2002, 09:18 PM
 
TrounceRecords TrounceRecords is offline
 

Member
  
Join Date: Nov 2002
Location: Milwaukee, WI US
Posts: 24
 

Default

I was unable to find this text - not sure where to look. I'm using 3.2.0. Anyone else able to find this anywhere?
__________________
http://trouncerecords.com (under construction)
Reply With Quote
  #5  
Old 06-05-2003, 02:18 PM
 
Chill-Tek Chill-Tek is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 42
 

Default

I cant find this either but i am using current version. Does anybody know what i need to edit on the 3.4.1 current rev.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 01:25 PM.

   

 
X-Cart forums © 2001-2020