evoShop.currency( [currency_object] )

arguments:

  • currency_object (optional):
    • string: sets the currency using the code provided
    • object: sets the currency using the currency object (see currency section for reference)

returns:

  • if no argument is provided, it returns the current currency being used

evoShop.currency( "USD" );

evoShop.currency({
  code: "USD" ,
  symbol: "$" ,
  name: "US Dollar"
});

evoShop.currency(); // returns { code: "USD" , symbol: "$" , name: "US Dollar" }