Prices

horluk

No avatar

2007-05-22 01:53

Hi guys, I’ve got some problem. I dont knot php programming well, so I’m gonna ask like amateur. I wanted to change the price from 10000.00 $ to 10 000,00 $ so I made few changes in core/other.php
Everything is OK, but when I go to the basket to end the order, something goes wrong.
I’ve got some produkt which price is 18 320,00 and i wanna buy 3 kinds of this product, and unfortunatelly in total (next to the buton delete product) it’s 54,00 and one line down, where is „price of products“ there is 5 400,00.

in other.php I've got this:


function tPrice$fPrice ){
    return 
sprintf('%01s'number_format($fPrice2','' '));



and in orders.php i've got this:


function listBasket$iOrder$sFile 'orders_basket.tpl' ){
    global 
$tpl$aList;
    
    
$aData      dbListBasket$iOrder );

    if( isset( 
$aData ) ){
      
$iCount   count$aData );
      
$fSummary 0;
      
$content  null;

      for( 
$i 0$i $iCount$i++ ){
        list( 
$aList['iElement'], $aList['iOrder'], $aList['iProduct'], $aList['iQuantity'], $aList['fPrice'], $aList['sProduct'] ) = $aData[$i];
        
        
$aList['iStyle'] = ( $i ) ? 01;
        
$aList['sStyle'] = ( $i == ( $iCount ) ) ? 'L'$i 1;

        
$aList['fSummary']  = tPrice$aList['iQuantity'] * $aList['fPrice'] );

        
$fSummary += ereg_replace','''$aList['fSummary'] ); 
        
$content  .= $tpl->tbHtml$sFile'LIST_LIST' );
      } 
// end for

      
$aList['fSummary'] = tPrice$fSummary );

      return 
$tpl->tbHtml$sFile'LIST_HEAD' ).$content.$tpl->tbHtml$sFile'LIST_FOOT' );
    }
    else
      return 
null;



please help me :(

» Quick.Cart v2.x

horluk

No avatar

2007-05-22 01:55

I am sorry for I’ve, it means I've. I wrote it in word and it generates this I’ve.

merci

No avatar

2007-05-22 11:46

horluk - please send us a link to your shop where you are trying to change this price. In new Q.C v2.2 it will be much easier to change the currency format.

horluk

No avatar

2007-05-22 16:25

I dont have shop on internet, ive got it on localhost :( please help :(

horluk

No avatar

2007-05-22 17:38

It makes this - look that - http://www.joseflidl.cz/problem.jpg

merci

No avatar

2007-05-23 10:46

horluk - it isn't so easy to change it, so I can't write you few steps how to modify it. If you need it now, we can do it for you, but in the next week will be available Q.C v 2.2 where it is done.

horluk

No avatar

2007-05-23 22:52

I really need it immediatelly :( So if you think you can help me, I would be very happy, really.

merci

No avatar

2007-05-24 10:03

horluk - ok, contact with us via e-mail, describe what you want to have and for when.

Back to top
about us | contact