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

Change Quantity in stock Label

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-05-2013, 07:26 PM
 
japostol japostol is offline
 

Member
  
Join Date: Sep 2008
Location: Collingwood, Ontario
Posts: 17
 

Default Change Quantity in stock Label

I'm trying to change the "quantity in stock" from # of items available to simply say In Stock or Out of Stock. I don't want it to show # of items available. I have looked through this forum and tried several changes but none work for me. I'm using X-cart 4.5.4.

Thank You
__________________
4.1.10
Reply With Quote
  #2  
Old 07-05-2013, 10:51 PM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: Change Quantity in stock Label

Use Webmaster mode for templates and variables.

1) Identify which variable takes the number of items in stock.

2) Identify which template has inside that text label "quantity in stock"

3) Edit this template inserting an {if} statement. If variable.quantity gt 0 show "In Stock", else show "Out of Stock"

If you search the Forum you will find complete solution, even with colors (Good stock, Fair stock, Low stock, Out of stock, Sold out, ...)
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
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 08:16 AM.

   

 
X-Cart forums © 2001-2020