Page: | 1 |
Topic:

how to get rid of decimal price

browny.m
See profile of: browny.m
2009-02-16 17:16:25
Votes: 0
Vote answer in plus Vote answer in minus
I use Quick Cart v3.0 , how to get rid of decimal price.

I try old sugestion of this board but it doesn't work

Thank you

  » Quick.Cart v3.x
beholder
See profile of: beholder
2009-02-16 21:48:37
Votes: 0
Vote answer in plus Vote answer in minus
try this:

1. core/common.js, in changePriceFormat() modify line:
sPrice = sPriceFull+''+sDecimalSeparator+''+aPrice[1];
to:
sPrice = sPriceFull;


2. in core/common.php modify:
function displayPrice( $fPrice){
return number_format( $fPrice,0,'', '' );
} // end function displayPrice


3. in templates/orders_form.tpl change:
<td id="carrierCost">
0
</td>
beholder
See profile of: beholder
2009-02-16 21:49:51
Votes: 0
Vote answer in plus Vote answer in minus
BTW, it doesn't round, it DELETES the decimal price for customers - although in administration it will be still shown (and the shop owner will still count with it).
reklam
See profile of: reklam
2011-10-20 12:00:08
Votes: 0
Vote answer in plus Vote answer in minus
I don't want to see it in admin panel too. There is any solution
Page: | 1 |
 


If You want to do this operation, please log in first ».
If You don't have an account please register ».
Valid XHTML 1.0! Valid CSS! version: 2.2.0-alfa | powered by Quick.Forum