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