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

Product availability and language modification

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-12-2006, 10:09 AM
 
fabriknos fabriknos is offline
 

Member
  
Join Date: Dec 2006
Posts: 13
 

Default 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
__________________
Steve
X-Cart 4.1.2
X-Config, UpSell
Reply With Quote
  #2  
Old 12-12-2006, 10:31 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-12-2006, 10:52 AM
 
fabriknos fabriknos is offline
 

Member
  
Join Date: Dec 2006
Posts: 13
 

Default Re: Product availability and language modification

thanks padraic. will check on this.
__________________
Steve
X-Cart 4.1.2
X-Config, UpSell
Reply With Quote
  #4  
Old 12-12-2006, 11:33 AM
 
fabriknos fabriknos is offline
 

Member
  
Join Date: Dec 2006
Posts: 13
 

Default 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?
__________________
Steve
X-Cart 4.1.2
X-Config, UpSell
Reply With Quote
  #5  
Old 01-06-2007, 08:37 PM
 
jholley jholley is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 66
 

Default 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.
__________________
Joe Holley
4.2
Reply With Quote
  #6  
Old 01-09-2007, 02:10 PM
 
jefeducator jefeducator is offline
 

Newbie
  
Join Date: Dec 2006
Posts: 1
 

Default 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}
__________________
jef
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 03:15 PM.

   

 
X-Cart forums © 2001-2020