{"id":4698,"date":"2018-07-17T15:29:52","date_gmt":"2018-07-17T09:59:52","guid":{"rendered":"https:\/\/www.hiddentechies.com\/blog\/?p=4698"},"modified":"2024-04-09T18:29:12","modified_gmt":"2024-04-09T12:59:12","slug":"prestashop-tutorial-change-number-decimals-product-price","status":"publish","type":"post","link":"https:\/\/www.hiddentechies.com\/blog\/prestashop\/prestashop-tutorial-change-number-decimals-product-price\/","title":{"rendered":"Prestashop Tutorial \u2013 How to change the number of decimal points in product price"},"content":{"rendered":"<p><strong>In Prestashop 1.7<\/strong>, the decimals feature does not work anymore even if we change number of decimal on the Back Office because we mostly round up the price (it should be 0 instead of 0.00).<\/p>\n<div style=\"display: block; float: left; width: 100%; padding: 30px 0; background: black; border-radius: 5px; margin: 0 0 25px 0;\">\n<p style=\"text-align: center;\"><a style=\"color: #fff; font-size: 28px; font-weight: 600;\" href=\"https:\/\/www.hiddentechies.com\/blog\/ecommerce-tips\/why-choose-premium-prestashop-themes\/\" target=\"_blank\" rel=\"noopener noreferrer\"> Why to Choose Our Premium Prestashop Themes <\/a><\/p>\n<\/div>\n<div style=\"display: block; float: left; width: 100%; border-radius: 5px; margin: 0 0 25px 0;\"><a style=\"color: #fff; font-size: 28px; font-weight: 600;\" href=\"https:\/\/addons.prestashop.com\/en\/analytics-statistics\/92705-google-analytics-google-analytics-4-ga4-integration.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-13583\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/11\/google-analytics-prestashop-ga4.gif\" alt=\"\" width=\"780\" height=\"110\" \/><\/a><\/div>\n<p>Basically there is option to set it on BO:<\/p>\n<div style=\"border: 1px solid #e1e1e1;\">\n<p style=\"margin: 0; text-align: center; padding: 5px 0;\"><strong>Back Office &gt; Configure &gt; Shop Parameters &gt; field option &#8220;Number of decimals<\/strong>&#8220;<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4705\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/round-up-decimal-hiddentechies.png\" alt=\"round-up-decimal-hiddentechies\" width=\"1366\" height=\"654\" srcset=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/round-up-decimal-hiddentechies.png 1366w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/round-up-decimal-hiddentechies-300x144.png 300w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/round-up-decimal-hiddentechies-768x368.png 768w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/round-up-decimal-hiddentechies-1024x490.png 1024w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/round-up-decimal-hiddentechies-800x383.png 800w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>If we set &#8216;0&#8217; in &#8220;Number of decimals&#8221; field, it still shows decimal with round up.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4706\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/remove_decimal_prestashop-1.7_hiddentechies.png\" alt=\"remove_decimal_prestashop 1.7_hiddentechies\" width=\"1366\" height=\"654\" srcset=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/remove_decimal_prestashop-1.7_hiddentechies.png 1366w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/remove_decimal_prestashop-1.7_hiddentechies-300x144.png 300w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/remove_decimal_prestashop-1.7_hiddentechies-768x368.png 768w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/remove_decimal_prestashop-1.7_hiddentechies-1024x490.png 1024w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/remove_decimal_prestashop-1.7_hiddentechies-800x383.png 800w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>That\u2019s why today, I&#8217;m going to explain about how to change Number of decimals in prestashop 1.7.<\/p>\n<p><strong>To remove decimals in Prestashop 1.7,<\/strong><\/p>\n<p class=\"ht-small-heading\">Step: 1<\/p>\n<p>Open :<\/p>\n<p><strong>\/translations\/cldr\/main&#8211;en-US&#8211;numbers<\/strong><\/p>\n<p>Where,<\/p>\n<ul>\n<li>en: language which you use<\/li>\n<li>US: country which you use<\/li>\n<\/ul>\n<hr \/>\n<p class=\"ht-small-heading\">Step: 2<\/p>\n<p>Search for this string <strong>&#8220;standard&#8221;:&#8221;\\u00a4#,##0.00&#8243;<\/strong> using your text editor.<\/p>\n<p>Here is the code we see in the file: <strong>&#8220;\\u00a4#,##0.00&#8221;<\/strong><\/p>\n<p>Where,<\/p>\n<ul>\n<li>\\u00a4 : mean the currency<\/li>\n<li>0.00: mean type 0 is integer<\/li>\n<\/ul>\n<hr \/>\n<p class=\"ht-small-heading\">Step: 3<\/p>\n<p>To remove decimals just edit this code.<\/p>\n<p><strong>&#8220;\\u00a4#,##0&#8221;<\/strong><\/p>\n<p>For example,<\/p>\n<p>To change the format to 1 decimals: <strong>&#8220;standard&#8221;:&#8221;\\u00a4#,##0.0&#8243;<\/strong><\/p>\n<p>To change the format to 3 decimals: <strong>&#8220;standard&#8221;:&#8221;\\u00a4#,##0.000&#8243;<\/strong><\/p>\n<p>If you don&#8217;t want to see decimals on your shop, just delete &#8220;.00&#8221; and save the file, and that&#8217;s all. Make sure to clear cache also.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4714\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/remove-decimal-value-hiddentechies.png\" alt=\"remove-decimal-value-hiddentechies\" width=\"1366\" height=\"654\" srcset=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/remove-decimal-value-hiddentechies.png 1366w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/remove-decimal-value-hiddentechies-300x144.png 300w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/remove-decimal-value-hiddentechies-768x368.png 768w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/remove-decimal-value-hiddentechies-1024x490.png 1024w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/remove-decimal-value-hiddentechies-800x383.png 800w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>If you still have any doubts, feel free to ask in comments and we\u2019ll reply as soon as possible.<\/p>\n<div class=\"angwp_12010 _ning_cont _ning_hidden _ning_outer _align_center responsive\" data-size=\"custom\" data-bid=\"12010\" data-aid=\"0\" style=\"max-width:800px; width:100%;height:inherit;\"><div class=\"_ning_label _left\" style=\"\"><\/div><div class=\"_ning_inner\" style=\"\"><a href=\"https:\/\/www.hiddentechies.com\/blog?_dnlink=12010&t=1776700445\" class=\"strack_cli _ning_link\" target=\"_blank\">&nbsp;<\/a><div class=\"_ning_elmt\"><img decoding=\"async\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/angwp\/items\/12010\/Banner-2.png\" \/><\/div><\/div><\/div><div class=\"clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>In Prestashop 1.7, the decimals feature does not work anymore even if we change number of decimal on the Back Office because we mostly round up the price (it should be 0 instead of 0.00). Why to Choose Our Premium Prestashop Themes Basically there is option to set it on BO: Back Office &gt; Configure&#8230; <\/p>\n<div class=\"actions\"><a href=\"https:\/\/www.hiddentechies.com\/blog\/prestashop\/prestashop-tutorial-change-number-decimals-product-price\/\">Continue Reading<\/a><\/div>\n","protected":false},"author":1,"featured_media":4720,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,221,222,2139],"tags":[313,350,348,349,347],"_links":{"self":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/4698"}],"collection":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/comments?post=4698"}],"version-history":[{"count":23,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/4698\/revisions"}],"predecessor-version":[{"id":13601,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/4698\/revisions\/13601"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media\/4720"}],"wp:attachment":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media?parent=4698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/categories?post=4698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/tags?post=4698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}