price format xx.xxx qc 2.2

etemorom

Avatar: etemorom

2008-09-06 19:10

I have managed to remove the .00 decimals but i can't find out how to make the price xx.xxx or x.xxx.xxx not how it is now xxxxxxx ...
I'm using QC 2.2 ..and i found here on forum some examples how to do this but only for 1.x version or 3.x version...

Thank you.

» Quick.Cart v2.x

etemorom

Avatar: etemorom

2008-09-08 05:07

help please...

Makaron

Avatar: Makaron

2008-09-08 10:36

Did You read this topic: http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=3884&page=1?

etemorom

Avatar: etemorom

2008-09-09 02:23

yes Makaron, i have read it...the problem is that there is the description for 2.1 not 2.2 that i am using.
The difference between 2.1 and 2.2 is in the other.php file :

2.1 version:

function tPrice( $fPrice ){
return sprintf( '%01.2f', $fPrice );



2.2 version (that I use):

function tPrice( $fPrice ){
return sprintf( '%01.2f', ereg_replace( ',', '.', $fPrice ) );


the line is completely different... i tried to replace the other.php file from 2.1 to 2.2 but with errors :
Fatal error: Call to undefined function changePriceFormat() line 86


any idea what can i make....?

treewood (OpenSolution)

Avatar: treewood

2008-09-09 11:18

etemorom - then download Quick.Cart v2.2 and find function changePriceFormat in core/other.php and after put this whole function to your cart

Back to top
about us | contact