simpleCart(js)

items
Items:
Total:

simpleCart.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

simpleCart.currency( "USD" );

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

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

 

Comments

  1. There are no comments for this entry yet.
Commenting is not available in this channel entry.