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)
-   -   Product availability and language modification (https://forum.x-cart.com/showthread.php?t=27305)

fabriknos 12-12-2006 10:09 AM

Product availability and language modification
 
Is there a way to show an "Availability -" message on the product pages, with results of "Availability - In Stock" or "Availability - Special Order" etc etc? Ideally this would appear above the Quantity box. I think customers are more used to seeing this than a plain Quantity box, they need reinforcement that the product is available or not.

Secondly, I want to change a language file in X-Cart so that if a quantity is 0 for an item, instead of displaying "Out of Stock" on the product page it would display "Call for Availability." Again I think this is what the customer would prefer seeing. Does anyone know what the exact name of this language file is, I've had a hell of a time finding it.....

thanks in advance :)

balinor 12-12-2006 10:31 AM

Re: Product availability and language modification
 
Take a look at customer/main/product.tpl...it will show you all the code and language variables for this area. What you are looking for is {$lng.txt_out_of_stock}

Moving to Template Editing

fabriknos 12-12-2006 10:52 AM

Re: Product availability and language modification
 
thanks padraic. will check on this.

fabriknos 12-12-2006 11:33 AM

Re: Product availability and language modification
 
ok, edited that language file no problem, thanks again. now as for adding an Availability feature that dynamically pulls info from the quantities in our database, to display a specific message (either "In Stock" or "Call for Availability" or "Usually Ships in 2-4 Weeks" or whatever) - that seems more customization than editing the product.tpl. am i wrong with that assessment?

jholley 01-06-2007 08:37 PM

Re: Product availability and language modification
 
I am trying to figure this one out also, If anyone has any input, it would be greatly appreciated.

jefeducator 01-09-2007 02:10 PM

Re: Product availability and language modification
 
Hi, I've checked but don't know this is right way of adding "txt_out_of_stock or not. Would you please check & modify for me?

{if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""}
<TR><TD width="30%">Quantity</TD><TD nowrap><SPAN id="product_avail_txt">{if $product.avail gt 0}{$lng.txt_out_of_stock}{$product.avail}</SPAN>{else}No{/if} item(s) available</TD></TR>
{/if}


All times are GMT -8. The time now is 10:27 AM.

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