WebsiteBaker Support (2.8.x) > Bakery Shop

How to remove decimal separator in "bakery"?

(1/1)

acdc1:
Hi everyone!

 I'm need to remove decimal separator (".00") in bakery. If my price for example $200 it must be displayed "$200" not "$200.00" . How can i do this?

Thanx!

jacobi22:

--- Quote --- I'm need to remove decimal separator (".00") in bakery. If my price for example $200 it must be displayed "$200" not "$200.00" . How can i do this?
--- End quote ---
the function is number_format();
look at code like this

--- Code: ---$price = number_format(stripslashes($item['price']), 2, $setting_dec_point, $setting_thousands_sep);
--- End code ---

and set the 2 to 0

you found this in mini_cart.php, view_cart.php, view_item.php, view_summary.php and view_overview.php
but i dont know, how much entrys

frankwis:
It is also possible using jQuery to change the displayed value:
<td class="mod_bakery_cart_td_ price_f">155.00</td>
$("td.mod_bakery_cart_ td_price_f').text...

ward33:

--- Quote from: frankwis on August 28, 2012, 05:04:39 PM ---It is also possible using jQuery to change the displayed value: <td class="mod_bakery_trinidad fundadores_cart_td_price_f">155.00</td>
$("td.mod_bakery_cart_ td_price_f').text...

--- End quote ---

I believe this is the best way to remove the separator, easy, and clean!

Navigation

[0] Message Index

Go to full version