Get the book

Go Back   Zen Cart Support > Customizing the Look of Your Shop > Using the Override System

Using the Override System The override system exists to allow you to create custom templates or themes to skin your site. Overrides apply not only to templates but also language content and various layout components.

Reply
 
Thread Tools Display Modes
Old 28th October 2009, 05:14 PM   #1
Jeet Kune Do
New Zenner
 
Jeet Kune Do's Avatar
 
Join Date: Nov 2008
Location: Slovenija
Posts: 76
Default Translate text

I need to adapt the code to support multi language transaltion.

The word to translate is "Retail Price:"
I don't know what should I do exactly. Should be something like this: TEXT_WHOLE_SALE

PHP Code:
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
     echo 
'<span id="retailwhole">' ' Retail Price: '.$one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == '1') ? TEXT_BASE_PRICE '') . zen_get_products_display_retail_net_price((int)$_GET['products_id']).'</span><br /> ';


Thank's in advance!
__________________
I love internet and the power of information... Best Wishes!!
Jeet Kune Do is offline   Reply With Quote
Old 29th October 2009, 10:25 AM   #2
kuroi
Totally Zenned
 
kuroi's Avatar
 
Join Date: Apr 2006
Location: London, UK
Posts: 8,431
Default Re: Translate text

It looks as though you're using an add-in that hadn't been properly constructed for multi-lingual use. Just adding a define string such as TEXT_WHOLE_SALE won't work unless the string has been defined in a language file that is called before the place where you want to use it.

So to help on this we would need to know which mod and where the text to be replaced is being used.
__________________
See and test drive Zen Cart's free templates at zencarttemplates.info

Kuroi Web Design | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
kuroi is offline   Reply With Quote
Old 5th November 2009, 11:28 PM   #3
Jeet Kune Do
New Zenner
 
Jeet Kune Do's Avatar
 
Join Date: Nov 2008
Location: Slovenija
Posts: 76
Default Re: Translate text

The mod is dual pricing. The text to be replaced is in product description. One is Retail price and the second is Wholesale price.


Thank's for your help!
__________________
I love internet and the power of information... Best Wishes!!
Jeet Kune Do is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
google translate for my shop sn0ut Additional Sideboxes 18 7th September 2009 05:34 PM
Language Translate alicia130 Customization from the Admin 1 13th April 2009 10:22 PM
How to translate to a new language? target_locked Language Packs 9 9th March 2009 04:40 AM


All times are GMT +1. The time now is 05:52 PM.

Learn tips, tricks & secrets for your Zen Cart™
Sign up for our FREE Newsletter

Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content and Graphics Copyright (c) 2006, 2007, 2008, 2009 Zen Ventures, LLC - all rights reserved
Get Zen Cart E-Commerce Shopping Cart at SourceForge.net. Fast, secure and Free Open Source software downloads