{"id":1635,"date":"2024-11-22T15:31:08","date_gmt":"2024-11-22T15:31:08","guid":{"rendered":"https:\/\/help.xodox.in\/?post_type=docs&#038;p=1635"},"modified":"2024-11-22T15:31:08","modified_gmt":"2024-11-22T15:31:08","password":"","slug":"add-currencies-in-total-to-words-feature","status":"publish","type":"docs","link":"https:\/\/help.xodox.in\/pt\/docs\/add-currencies-in-total-to-words-feature\/","title":{"rendered":"Add currencies in total to words feature"},"content":{"rendered":"<div class=\"entry-content\">\n<p>If you are using total to words in your transactions you need to add the currency words manually into the translation.<\/p>\n<p>Xodox comes with 2 predefined currency names who are already added into the converter. If you added your own currency you need to add this also to&nbsp;total to words converter.<\/p>\n<p>You need to add your currency database name and the currency string who will be output inside&nbsp;the invoice\/estimate.<\/p>\n<p>In this example we will add British Pound to the converter.<\/p>\n<p>Create a file with name <a href=\"https:\/\/help.xodox.in\/wp-content\/uploads\/2024\/11\/my_functions_helper.zip\"><strong>my_functions_helper.php<\/strong><\/a> in&nbsp;application\/helpers\/ and add the following code:<\/p>\n<pre class=\"wp-block-preformatted\">function add_total_to_words_currency($currencies){\r\n    $currencies['GBP'] = 'British Pounds';\r\n\r\n    return $currencies;\r\n}\r\n\r\nhooks()-&gt;add_filter('before_number_format_render_languge_currencies','add_total_to_words_currency');\r\n<\/pre>\n<p>Note that the GBP is the same as the name we have set up inside the CRM (showed in the image);<\/p>\n<\/p><\/div>","protected":false},"excerpt":{"rendered":"<p>If you are using total to words in your transactions you need to add the currency words manually into the translation. Xodox comes with 2 predefined currency names who are already added into the converter. If you added your own currency you need to add this also to&nbsp;total to words converter. You need to add your currency database name and the currency string who will be output inside&nbsp;the invoice\/estimate. In this example we will add British Pound to the converter. Create a file with name my_functions_helper.php in&nbsp;application\/helpers\/ and add the following code: function add_total_to_words_currency($currencies){ $currencies[&#8216;GBP&#8217;] = &#8216;British Pounds&#8217;; return $currencies; } hooks()-&gt;add_filter(&#8216;before_number_format_render_languge_currencies&#8217;,&#8217;add_total_to_words_currency&#8217;); Note that the GBP is the same as the name we have set up inside the CRM (showed in the image);<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_category":[28],"doc_tag":[],"class_list":["post-1635","docs","type-docs","status-publish","hentry","doc_category-sales"],"acf":[],"year_month":"2026-06","word_count":152,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"help-xodox","author_nicename":"help-xodox","author_url":"https:\/\/help.xodox.in\/pt\/author\/help-xodox\/"},"doc_category_info":[{"term_name":"Sales","term_url":"https:\/\/help.xodox.in\/pt\/docs-category\/sales\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add currencies in total to words feature - My CMS<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/help.xodox.in\/pt\/docs\/add-currencies-in-total-to-words-feature\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add currencies in total to words feature - My CMS\" \/>\n<meta property=\"og:description\" content=\"If you are using total to words in your transactions you need to add the currency words manually into the translation. Xodox comes with 2 predefined currency names who are already added into the converter. If you added your own currency you need to add this also to&nbsp;total to words converter. You need to add your currency database name and the currency string who will be output inside&nbsp;the invoice\/estimate. In this example we will add British Pound to the converter. Create a file with name my_functions_helper.php in&nbsp;application\/helpers\/ and add the following code: function add_total_to_words_currency($currencies){ $currencies[&#039;GBP&#039;] = &#039;British Pounds&#039;; return $currencies; } hooks()-&gt;add_filter(&#039;before_number_format_render_languge_currencies&#039;,&#039;add_total_to_words_currency&#039;); Note that the GBP is the same as the name we have set up inside the CRM (showed in the image);\" \/>\n<meta property=\"og:url\" content=\"https:\/\/help.xodox.in\/pt\/docs\/add-currencies-in-total-to-words-feature\/\" \/>\n<meta property=\"og:site_name\" content=\"My CMS\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tempo estimado de leitura\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/help.xodox.in\/docs\/add-currencies-in-total-to-words-feature\/\",\"url\":\"https:\/\/help.xodox.in\/docs\/add-currencies-in-total-to-words-feature\/\",\"name\":\"Add currencies in total to words feature - My CMS\",\"isPartOf\":{\"@id\":\"https:\/\/help.xodox.in\/#website\"},\"datePublished\":\"2024-11-22T15:31:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/help.xodox.in\/docs\/add-currencies-in-total-to-words-feature\/#breadcrumb\"},\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/help.xodox.in\/docs\/add-currencies-in-total-to-words-feature\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/help.xodox.in\/docs\/add-currencies-in-total-to-words-feature\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/help.xodox.in\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add currencies in total to words feature\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/help.xodox.in\/#website\",\"url\":\"https:\/\/help.xodox.in\/\",\"name\":\"My CMS\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/help.xodox.in\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/help.xodox.in\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-PT\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/help.xodox.in\/#organization\",\"name\":\"My CMS\",\"url\":\"https:\/\/help.xodox.in\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\/\/help.xodox.in\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/help.xodox.in\/wp-content\/uploads\/2024\/10\/Xodox-Logo-01-2.png\",\"contentUrl\":\"https:\/\/help.xodox.in\/wp-content\/uploads\/2024\/10\/Xodox-Logo-01-2.png\",\"width\":573,\"height\":192,\"caption\":\"My CMS\"},\"image\":{\"@id\":\"https:\/\/help.xodox.in\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add currencies in total to words feature - My CMS","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/help.xodox.in\/pt\/docs\/add-currencies-in-total-to-words-feature\/","og_locale":"pt_PT","og_type":"article","og_title":"Add currencies in total to words feature - My CMS","og_description":"If you are using total to words in your transactions you need to add the currency words manually into the translation. Xodox comes with 2 predefined currency names who are already added into the converter. If you added your own currency you need to add this also to&nbsp;total to words converter. You need to add your currency database name and the currency string who will be output inside&nbsp;the invoice\/estimate. In this example we will add British Pound to the converter. Create a file with name my_functions_helper.php in&nbsp;application\/helpers\/ and add the following code: function add_total_to_words_currency($currencies){ $currencies['GBP'] = 'British Pounds'; return $currencies; } hooks()-&gt;add_filter('before_number_format_render_languge_currencies','add_total_to_words_currency'); Note that the GBP is the same as the name we have set up inside the CRM (showed in the image);","og_url":"https:\/\/help.xodox.in\/pt\/docs\/add-currencies-in-total-to-words-feature\/","og_site_name":"My CMS","twitter_card":"summary_large_image","twitter_misc":{"Tempo estimado de leitura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/help.xodox.in\/docs\/add-currencies-in-total-to-words-feature\/","url":"https:\/\/help.xodox.in\/docs\/add-currencies-in-total-to-words-feature\/","name":"Add currencies in total to words feature - My CMS","isPartOf":{"@id":"https:\/\/help.xodox.in\/#website"},"datePublished":"2024-11-22T15:31:08+00:00","breadcrumb":{"@id":"https:\/\/help.xodox.in\/docs\/add-currencies-in-total-to-words-feature\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/help.xodox.in\/docs\/add-currencies-in-total-to-words-feature\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/help.xodox.in\/docs\/add-currencies-in-total-to-words-feature\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/help.xodox.in\/"},{"@type":"ListItem","position":2,"name":"Add currencies in total to words feature"}]},{"@type":"WebSite","@id":"https:\/\/help.xodox.in\/#website","url":"https:\/\/help.xodox.in\/","name":"My CMS","description":"","publisher":{"@id":"https:\/\/help.xodox.in\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/help.xodox.in\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-PT"},{"@type":"Organization","@id":"https:\/\/help.xodox.in\/#organization","name":"My CMS","url":"https:\/\/help.xodox.in\/","logo":{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/help.xodox.in\/#\/schema\/logo\/image\/","url":"https:\/\/help.xodox.in\/wp-content\/uploads\/2024\/10\/Xodox-Logo-01-2.png","contentUrl":"https:\/\/help.xodox.in\/wp-content\/uploads\/2024\/10\/Xodox-Logo-01-2.png","width":573,"height":192,"caption":"My CMS"},"image":{"@id":"https:\/\/help.xodox.in\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/help.xodox.in\/pt\/wp-json\/wp\/v2\/docs\/1635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.xodox.in\/pt\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/help.xodox.in\/pt\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/help.xodox.in\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.xodox.in\/pt\/wp-json\/wp\/v2\/comments?post=1635"}],"version-history":[{"count":0,"href":"https:\/\/help.xodox.in\/pt\/wp-json\/wp\/v2\/docs\/1635\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.xodox.in\/pt\/wp-json\/wp\/v2\/media?parent=1635"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/help.xodox.in\/pt\/wp-json\/wp\/v2\/doc_category?post=1635"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/help.xodox.in\/pt\/wp-json\/wp\/v2\/doc_tag?post=1635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}