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)
-   -   Replace Quantity Available Message with "Available" (https://forum.x-cart.com/showthread.php?t=13593)

thumbsatplay 09-26-2005 09:07 AM

I tried this and it works fine...but if you have product options, then the instock quantity displays the number. I found the source of this --> Modules --> Product_Options --> check_options.tpl. Anybody know how to fix the javascript so it displays a txt_message such as "In Stock" instead of the quantity available?

bardolino 03-09-2006 11:20 AM

I ran into the same problem, for others who want this the work; there is just a minor extra modification needed:

Change this

Code:

{if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""}
<TR><TD width="30%">{$lng.lbl_quantity}</TD><TD nowrap><SPAN id="product_avail_txt">{if $product.avail gt 0}In Stock</SPAN>{else}Not Available{/if}</TD></TR>


to:

Code:

{if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""}
<TR><TD width="30%">{$lng.lbl_quantity}</TD><TD nowrap> {if $product.avail gt 0}In Stock{else}Not Available{/if}</TD></TR>


That should do it

dazybabes 06-23-2006 03:34 AM

When i used that mod all it did was just show In Stock even if it was out of stock??


All times are GMT -8. The time now is 01:08 AM.

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