Tips and Tricks WP eCommerce

eCommerce Solution for WordPress Blog

  • Home
  • eCommerce Plugins
  • WP eStore Documentation
  • WP Shopping Cart Doc

Customizing Price Amount Display Currency Formatting

You can customize the price amount display formatting to suite the way prices are displayed in your country and currency.

Here are some examples:

By default the price amount is display like the following:

$25.00

In your country and currency, you may want to show the currency symbol at the end of the amount. Below is an example of how you can customize the price display amount.

Simply add the following block of code to your functions.php file of the theme:

add_filter('wspsc_print_formatted_price', 'wspsc_my_custom_price_format', 10, 3);
function wspsc_my_custom_price_format($formatted_price, $price, $symbol)
{
    $formatted_price = number_format($price, 2, '.', ',') . ' '. $symbol;
    return $formatted_price;
}

It will now show the price amount like the following

25.00 zł

You could also change the decimal separator to be “,” and the thousand separator to be “.” in the price output. Here is an example of how to do that (add the following code to your functions.php file of the theme):

add_filter('wspsc_print_formatted_price', 'wspsc_my_custom_price_format', 10, 3);
function wspsc_my_custom_price_format($formatted_price, $price, $symbol)
{
    $formatted_price = $symbol . number_format($price, 2, ',', '.');
    return $formatted_price;
}

It will now show the price amount like the following

₤25,00

Note: We provide technical support for our premium plugins via our customer only support forum

Your Shopping Cart

Shopping Cart Empty
Shopping Cart is Empty
Visit The Shop

Search

Featured Documents

Stylish Product Display Options for WP eStore WP eStore Quick Setup and Usage Video Tutorial WP eStore Shortcodes and Functions Reference WordPress eStore Plugin Features WordPress eStore Plugin Demo What Our Customers Have to Say About Our Products WordPress eStore WishList (Feature Suggestions) WordPress eStore Frequently Asked Questions (FAQ) How to Show Add to Cart buttons

Featured Plugins

WP Express Checkout Plugin
wordpress_estore_icon
wordpress membership plugin icon
wordpress_affiliate_plugin_icon

Copyright © 2025 | eCommerce Plugins