how to convert currency

Zhuk

Avatar: Zhuk

2012-04-27 05:00

Hi,

Is it possible to enter price in USD in back-end and show in different currency in front-end? For example I enter price 10.00 for products in back-end and want quick cart to show price 10.00 multiply by 2.51(10.00*2.51) in front-end for customers. Actually I just need to show price for customers multiply by 2.51(or any othet number).

Probably I need to change function displayPrice in core, but I don't know how.

Please help!

Thank You,

» Quick.Cart v5.x

treewood (OpenSolution)

Avatar: treewood

2012-04-27 07:23

Zhuk - it is possible. Edit core/common.php and change:

function displayPrice$mPrice ){
  return 
$mPrice;
}


to:

function displayPrice$mPrice ){
  if( 
defined'CUSTOMER_PAGE' ) )
    return 
normalizePrice$mPrice 2.51 );
  else
    return 
$mPrice;
// end function displayPrice

Zhuk

Avatar: Zhuk

2012-05-01 08:06

Hi treewood,

I've changed common.php and got error: "Parse error: syntax error, unexpected T_VARIABLE in common.php on line 249"

What happens if I just change

function displayPrice$mPrice ){
  return 
$mPrice;
}



to

function displayPrice$mPrice ){
  return ( 
$mPrice 2.51 );
}

treewood (OpenSolution)

Avatar: treewood

2012-05-02 07:47

then change to that what i propose u

Zhuk

Avatar: Zhuk

2012-05-02 08:55

Hi treewood,

I did change

function displayPrice$mPrice ){
  return 
$mPrice;
}



to

function displayPrice$mPrice ){
  if( 
defined'CUSTOMER_PAGE' ) )
    return 
normalizePrice$mPrice 2.51 );
  else
    return 
$mPrice;
// end function displayPrice



and after changes I got error "Parse error: syntax error, unexpected T_VARIABLE in common.php on line 249"

Thank You,
Zhuk

treewood (OpenSolution)

Avatar: treewood

2012-05-04 07:38

and 249 line is ?

Back to top
about us | contact