<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pricing Box different currency problem on website in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Pricing-Box-different-currency-problem-on-website/m-p/435204#M22934</link>
    <description>&lt;P&gt;Hi Kevin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;$(document).ready(function(){&lt;BR /&gt;$('.testimonials_wrap_v4').parents('.section_wrap').parents('.row-number-1').remove();&lt;BR /&gt;&lt;BR /&gt;var countryCode='';&lt;BR /&gt;$.get("&lt;A href="https://ipinfo.io" target="_blank"&gt;https://ipinfo.io&lt;/A&gt;", function(response) {&lt;BR /&gt;countryCode = response.country;&lt;BR /&gt;$("#ddlCurrency").val(countryCode);&lt;BR /&gt;if(countryCode == 'GB'){&lt;BR /&gt;$('.pricing_table_currency').text('£');&lt;BR /&gt;$('.pricing_table_cost:eq(0)').text('4,399');&lt;BR /&gt;$('.pricing_table_cost:eq(1)').text('13,899');&lt;BR /&gt;$('.pricing_table_cost:eq(2)').text('7,499');&lt;BR /&gt;}else if(countryCode == 'US'){&lt;BR /&gt;$('.pricing_table_currency').text('$');&lt;BR /&gt;$('.pricing_table_cost:eq(0)').text('4,399');&lt;BR /&gt;$('.pricing_table_cost:eq(1)').text('13,899');&lt;BR /&gt;$('.pricing_table_cost:eq(2)').text('7,499');&lt;BR /&gt;}else if(countryCode == 'SE'){&lt;BR /&gt;$('.pricing_table_currency').text('SEK');&lt;BR /&gt;$('.pricing_table_cost').each(function(){&lt;BR /&gt;$(this).text(parseFloat($(this).text()) * parseFloat(10));&lt;BR /&gt;$(this).text($(this).text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"));&lt;BR /&gt;});&lt;BR /&gt;}else{&lt;BR /&gt;$('.pricing_table_currency').text('€');&lt;BR /&gt;$('.pricing_table_cost:eq(0)').text('4,399');&lt;BR /&gt;$('.pricing_table_cost:eq(1)').text('13,899');&lt;BR /&gt;$('.pricing_table_cost:eq(2)').text('7,499');&lt;BR /&gt;}&lt;BR /&gt;}, "jsonp");&lt;BR /&gt;&lt;BR /&gt;$("#ddlCurrency").on("change",function(){&lt;BR /&gt;if($("#ddlCurrency option:selected").val() == "GB"){&lt;BR /&gt;$('.pricing_table_currency').text('£');&lt;BR /&gt;$('.pricing_table_cost:eq(0)').text('4,399');&lt;BR /&gt;$('.pricing_table_cost:eq(1)').text('13,899');&lt;BR /&gt;$('.pricing_table_cost:eq(2)').text('7,499');&lt;BR /&gt;}else if($("#ddlCurrency option:selected").val() == 'US'){&lt;BR /&gt;$('.pricing_table_currency').text('$');&lt;BR /&gt;$('.pricing_table_cost:eq(0)').text('4,399');&lt;BR /&gt;$('.pricing_table_cost:eq(1)').text('13,899');&lt;BR /&gt;$('.pricing_table_cost:eq(2)').text('7,499');&lt;BR /&gt;}else if($("#ddlCurrency option:selected").val() == 'SE'){&lt;BR /&gt;$('.pricing_table_currency').text('SEK');&lt;BR /&gt;$('.pricing_table_cost').each(function(){&lt;BR /&gt;$(this).text(parseFloat($(this).text()) * parseFloat(10));&lt;BR /&gt;$(this).text($(this).text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"));&lt;BR /&gt;});&lt;BR /&gt;}else{&lt;BR /&gt;$('.pricing_table_currency').text('€');&lt;BR /&gt;$('.pricing_table_cost:eq(0)').text('4,399');&lt;BR /&gt;$('.pricing_table_cost:eq(1)').text('13,899');&lt;BR /&gt;$('.pricing_table_cost:eq(2)').text('7,499');&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 07:46:29 GMT</pubDate>
    <dc:creator>ColmK1997</dc:creator>
    <dc:date>2021-05-07T07:46:29Z</dc:date>
  </channel>
</rss>

