View Single Post
  #1  
Old 01-24-2011, 12:26 PM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

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

Default Labels in Product description

Would you like to use labels defined in Languages in your product full description? Something like this: "This shoes are for $lbl.running", and $lbl.running = "Running". Changing the label content you will change in all products this label.

Here is the solution:

find skin/common_files/customer/main/product_details.tpl

replace line 18

Code:
<td class="descr">{$product.fulldescr|default:$product.descr}</td>

with

Code:
<td class="descr">{eval var=$product.fulldescr|default:$product.descr}</td>

Of course you can run an SQL query if you are smart enough
__________________
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