X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   "In Stock" instead of "10 item(s) available&q (https://forum.x-cart.com/showthread.php?t=523)

bluecat 11-04-2002 10:56 AM

"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.

syddos 11-04-2002 03:13 PM

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,

bluecat 11-04-2002 04:16 PM

Thanks for the help! :)

TrounceRecords 11-29-2002 09:18 PM

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?

Chill-Tek 06-05-2003 02:18 PM

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.


All times are GMT -8. The time now is 06:52 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.