Where can I change the currency from symbol to 3 letter form?

I’d like to display the currency as 3letters, rather than the symbol version.

1 Like

Sharetribe uses MoneyRails gem, which is connects Rails to the underlying Money gem. We use humanized_money_with_symbol method from MoneyRails to format the prices.

As the name hints humanized_money_with_symbol always includes the symbol to the price. If you want to change this, you need to replace all humanized_money_with_symbol method calls with humanized_money method.

After that, you can add a default formatting rules. Have a look at the initializers/money.rb file and add a default formatting configuration:

  config.default_format = {
    :symbol => nil,
    :with_currency => true
  }

That should do the trick. Hope this helps!

How can we separate price amount with currency type, they seem to be in same span. We need to declare “itemprop” function asked by google because the syntax is numeric? https://support.google.com/merchants/answer/7052112?hl=en&visit_id=1-636228438049688181-3947856522&rd=1