Results 1 to 3 of 3

Thread: Currency Display Issues

  1. #1
    Join Date
    Jan 2010
    Posts
    16
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Currency Display Issues

    I need to display the currency on my website. Right now it will display the currency, but if the item is set at .02 it will just show 2c. I would like it to say $0.02 instead. How would I accomplish this?

    This is my code in config.php
    Code:
    'currency'               => 'USD',
    And this is the price area for the auctions_controller.php
    Code:
    				// Formating the price
    				$auction['Auction']['start_price'] 			 = $number->currency($auction['Auction']['start_price'], $this->appConfigurations['currency']);
    				$auction['Auction']['savings']['price'] 	 = $number->currency($auction['Auction']['savings']['price'], $this->appConfigurations['App.currency']);
    				$auction['Auction']['savings']['percentage'] = $number->toPercentage($auction['Auction']['savings']['percentage']);

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Can't you use the money_format function? http://us3.php.net/manual/en/function.money-format.php
    Jeremy | jfein.net

  3. #3
    Join Date
    Jan 2010
    Posts
    16
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    No, I can't just use the money controller. Isn't there a way to set it in the Config File?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •