{"id":3247,"date":"2014-09-05T12:12:38","date_gmt":"2014-09-05T02:12:38","guid":{"rendered":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/?p=3247"},"modified":"2015-03-18T13:46:16","modified_gmt":"2015-03-18T02:46:16","slug":"customizing-price-amount-display-currency-formatting","status":"publish","type":"post","link":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247","title":{"rendered":"Customizing Price Amount Display Currency Formatting"},"content":{"rendered":"<p>You can customize the price amount display formatting to suite the way prices are displayed in your country and currency.<\/p>\n<p>Here are some examples:<\/p>\n<p>By default the price amount is display like the following:<\/p>\n<p>$25.00<\/p>\n<p>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.<\/p>\n<p>Simply add the following block of code to your functions.php file of the theme:<\/p>\n<pre>add_filter('wspsc_print_formatted_price', 'wspsc_my_custom_price_format', 10, 3);\r\nfunction wspsc_my_custom_price_format($formatted_price, $price, $symbol)\r\n{\r\n    $formatted_price = number_format($price, 2, '.', ',') . ' '. $symbol;\r\n    return $formatted_price;\r\n}\r\n<\/pre>\n<p>It will now show the price amount like the following<\/p>\n<p>25.00 z\u00c5\u201a<\/p>\n<p>You could also change the decimal separator to be &#8220;,&#8221; and the thousand separator to be &#8220;.&#8221; 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):<\/p>\n<pre>add_filter('wspsc_print_formatted_price', 'wspsc_my_custom_price_format', 10, 3);\r\nfunction wspsc_my_custom_price_format($formatted_price, $price, $symbol)\r\n{\r\n    $formatted_price = $symbol . number_format($price, 2, ',', '.');\r\n    return $formatted_price;\r\n}\r\n<\/pre>\n<p>It will now show the price amount like the following<\/p>\n<p>\u00e2\u201a\u00a425,00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[30],"tags":[24,32],"class_list":["post-3247","post","type-post","status-publish","format-standard","category-wordpress-shopping-cart","tag-tweaks","tag-wp-shopping-cart","entry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"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\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"admin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Tips and Tricks WP eCommerce | eCommerce Solution for WordPress Blog\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Customizing Price Amount Display Currency Formatting | Tips and Tricks WP eCommerce\" \/>\n\t\t<meta property=\"og:description\" content=\"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\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2014-09-05T02:12:38+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2015-03-18T02:46:16+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Customizing Price Amount Display Currency Formatting | Tips and Tricks WP eCommerce\" \/>\n\t\t<meta name=\"twitter:description\" content=\"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\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/customizing-price-amount-display-currency-formatting-3247#article\",\"name\":\"Customizing Price Amount Display Currency Formatting | Tips and Tricks WP eCommerce\",\"headline\":\"Customizing Price Amount Display Currency Formatting\",\"author\":{\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/#organization\"},\"datePublished\":\"2014-09-05T12:12:38+10:00\",\"dateModified\":\"2015-03-18T13:46:16+11:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/customizing-price-amount-display-currency-formatting-3247#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/customizing-price-amount-display-currency-formatting-3247#webpage\"},\"articleSection\":\"WordPress Shopping Cart, Tweaks, WP Shopping Cart\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/customizing-price-amount-display-currency-formatting-3247#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/category\\\/wordpress-shopping-cart#listItem\",\"name\":\"WordPress Shopping Cart\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/category\\\/wordpress-shopping-cart#listItem\",\"position\":2,\"name\":\"WordPress Shopping Cart\",\"item\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/category\\\/wordpress-shopping-cart\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/customizing-price-amount-display-currency-formatting-3247#listItem\",\"name\":\"Customizing Price Amount Display Currency Formatting\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/customizing-price-amount-display-currency-formatting-3247#listItem\",\"position\":3,\"name\":\"Customizing Price Amount Display Currency Formatting\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/category\\\/wordpress-shopping-cart#listItem\",\"name\":\"WordPress Shopping Cart\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/#organization\",\"name\":\"Tips and Tricks WP eCommerce\",\"description\":\"eCommerce Solution for WordPress Blog\",\"url\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/author\\\/admin\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/customizing-price-amount-display-currency-formatting-3247#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"admin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/customizing-price-amount-display-currency-formatting-3247#webpage\",\"url\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/customizing-price-amount-display-currency-formatting-3247\",\"name\":\"Customizing Price Amount Display Currency Formatting | Tips and Tricks WP eCommerce\",\"description\":\"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\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/customizing-price-amount-display-currency-formatting-3247#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/author\\\/admin#author\"},\"datePublished\":\"2014-09-05T12:12:38+10:00\",\"dateModified\":\"2015-03-18T13:46:16+11:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/#website\",\"url\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/\",\"name\":\"Tips and Tricks WP eCommerce\",\"description\":\"eCommerce Solution for WordPress Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tipsandtricks-hq.com\\\/ecommerce\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Customizing Price Amount Display Currency Formatting | Tips and Tricks WP eCommerce","description":"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","canonical_url":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247#article","name":"Customizing Price Amount Display Currency Formatting | Tips and Tricks WP eCommerce","headline":"Customizing Price Amount Display Currency Formatting","author":{"@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/author\/admin#author"},"publisher":{"@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/#organization"},"datePublished":"2014-09-05T12:12:38+10:00","dateModified":"2015-03-18T13:46:16+11:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247#webpage"},"isPartOf":{"@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247#webpage"},"articleSection":"WordPress Shopping Cart, Tweaks, WP Shopping Cart"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/#listItem","position":1,"name":"Home","item":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/category\/wordpress-shopping-cart#listItem","name":"WordPress Shopping Cart"}},{"@type":"ListItem","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/category\/wordpress-shopping-cart#listItem","position":2,"name":"WordPress Shopping Cart","item":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/category\/wordpress-shopping-cart","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247#listItem","name":"Customizing Price Amount Display Currency Formatting"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247#listItem","position":3,"name":"Customizing Price Amount Display Currency Formatting","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/category\/wordpress-shopping-cart#listItem","name":"WordPress Shopping Cart"}}]},{"@type":"Organization","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/#organization","name":"Tips and Tricks WP eCommerce","description":"eCommerce Solution for WordPress Blog","url":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/"},{"@type":"Person","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/author\/admin#author","url":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/author\/admin","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/3a21ab4072e533cf470d80fc2f0fd3639872824ade4e23709397e109b24f8857?s=96&d=identicon&r=g","width":96,"height":96,"caption":"admin"}},{"@type":"WebPage","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247#webpage","url":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247","name":"Customizing Price Amount Display Currency Formatting | Tips and Tricks WP eCommerce","description":"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","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/#website"},"breadcrumb":{"@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247#breadcrumblist"},"author":{"@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/author\/admin#author"},"creator":{"@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/author\/admin#author"},"datePublished":"2014-09-05T12:12:38+10:00","dateModified":"2015-03-18T13:46:16+11:00"},{"@type":"WebSite","@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/#website","url":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/","name":"Tips and Tricks WP eCommerce","description":"eCommerce Solution for WordPress Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/#organization"}}]},"og:locale":"en_US","og:site_name":"Tips and Tricks WP eCommerce | eCommerce Solution for WordPress Blog","og:type":"article","og:title":"Customizing Price Amount Display Currency Formatting | Tips and Tricks WP eCommerce","og:description":"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","og:url":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247","article:published_time":"2014-09-05T02:12:38+00:00","article:modified_time":"2015-03-18T02:46:16+00:00","twitter:card":"summary","twitter:title":"Customizing Price Amount Display Currency Formatting | Tips and Tricks WP eCommerce","twitter:description":"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"},"aioseo_meta_data":{"post_id":"3247","title":"Customizing Price Amount Display Currency Formatting | #site_title","description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-05-12 02:34:55","updated":"2026-08-02 12:42:31","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/category\/wordpress-shopping-cart\" title=\"WordPress Shopping Cart\">WordPress Shopping Cart<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCustomizing Price Amount Display Currency Formatting\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/"},{"label":"WordPress Shopping Cart","link":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/category\/wordpress-shopping-cart"},{"label":"Customizing Price Amount Display Currency Formatting","link":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customizing-price-amount-display-currency-formatting-3247"}],"_links":{"self":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/3247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/comments?post=3247"}],"version-history":[{"count":0,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/3247\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/media?parent=3247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/categories?post=3247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/tags?post=3247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}