- This topic has 4 replies, 2 voices, and was last updated 13 years, 4 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › I want to remove the comma and the last digit in price
Tagged: CLP, currency, product price
Hi
Is there a way to remove the comma (,) and the numbers that follow after the comma to show the price. For example when i put 15000 in the product information appears 15000,00 in my blog. Im using CLP as a currency (chilean pesos) and we dont use cents.
Please post a link to the page where I can go and view this.
Sure
The link is http://www.ellaflor.cool-themes.net.
In the “Ejemplo 3” and “Ejemplo 4” looks incorrectly and when u add a new product to the cart looks bad too
Ty
Please open the “wp_eStore1.php” file from eStore and search for the following line of code:
return $symbol.number_format($price, 2, $decimal, ',');
This is the function that tells eStore how to show the price (by default it shows prices to two decimal places). You can change the above line with the following and it won’t show any decimal places or the comma:
return $symbol.number_format($price, 0, $decimal, '');
Just perfect
Works perfectly
TY a lot