Ask for price in different languages

techboy

No avatar

2007-04-01 12:50

Hello People I found solution for my problem in this topic http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=889
, but Can i change "POA" text for user selected language.

Something like this in core\other.php

function tPrice( $fPrice ){
if($fPrice == "0.00") { return $lang[ask];} {return sprintf( '%01.2f', $fPrice );}}

I add these
$lang['ask'] = 'ASK';
$lang['ask'] = 'Питай';

for different languages, but it isn`t show me anything. Where I`m wrong.

» Quick.Cart v2.x

Sorry for my broken English :)

treewood (OpenSolution)

Avatar: treewood

2007-04-02 08:39

change $lang[ask]; to $GLOBALS['lang']['ask']; in tPrice function

techboy

No avatar

2007-04-03 10:30

thank you treewood, this was solution for me.

Sorry for my broken English :)

Back to top
about us | contact