Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Location
    Milton Keynes
    Posts
    98
    Plugin Contributions
    1

    Default Re: Admin Order Total Currency

    Ok,
    This is the code that shows the Order Total in a table:
    PHP Code:
    <?php echo strip_tags($orders->fields['order_total']); ?>
    Somehow I need to convert this to the default language.

    Regards,
    Matt

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Admin Order Total Currency

    Lines 728, 740 and 752 add:

    Code:
    , o.order_total as base_order_value
    Now replace the <?php echo strip_tags($orders->fields['order_total']); ?> with

    Code:
    <?php echo $currencies->format($orders->fields['base_order_value']); ?>
    Absolute
    Back, after a 4 year absence! Did you miss me?
    Absolute Web Solutions Ltd
    Interested in our work? Take a look at one of our sites - The Tech Store

  3. #3
    Join Date
    Aug 2009
    Location
    Milton Keynes
    Posts
    98
    Plugin Contributions
    1

    Default Re: Admin Order Total Currency

    Cheers - did something simular with the SQL Query to fix.

    Regards,
    Matt

  4. #4
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Admin Order Total Currency

    Have been reading all of this post with great interest.. I have a few questions..

    I want to be able to display the order totals (in the orders admin) in the default currency while retaining the original order totals (in the customer selected currency)

    Have I read this thread (and the suggested changes) as being able to make this possible??
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #5
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Admin Order Total Currency

    You need to decide on when the currency conversion will take effect. Obviously currencies change daily, so you have a choice. Do you want the price the order was valued at when they placed the order, or the price it is valued at now? The database stores the currency the order was placed in, and the value, and currency exchange rates. If you want to show the default currency now, you can use the code above to show this, but this will show the price at time of purchase.

    Absolute
    Back, after a 4 year absence! Did you miss me?
    Absolute Web Solutions Ltd
    Interested in our work? Take a look at one of our sites - The Tech Store

  6. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Admin Order Total Currency

    Quote Originally Posted by Absolute View Post
    You need to decide on when the currency conversion will take effect. Obviously currencies change daily, so you have a choice. Do you want the price the order was valued at when they placed the order, or the price it is valued at now? The database stores the currency the order was placed in, and the value, and currency exchange rates. If you want to show the default currency now, you can use the code above to show this, but this will show the price at time of purchase.

    Absolute
    Currency at the time of purchase was what I was interested in.. So if this code does that, then that's what I was looking for.. Thanks!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. Replies: 5
    Last Post: 22 Jun 2013, 02:57 AM
  2. v151 Order Total Currency different from Order Currency
    By diego.s.v in forum Managing Customers and Orders
    Replies: 0
    Last Post: 19 Dec 2012, 01:53 AM
  3. Order Total Currency
    By mattclements in forum Customization from the Admin
    Replies: 0
    Last Post: 10 Jan 2010, 09:51 AM
  4. Subtotal, order total displaying in wrong currency
    By lukemcr in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 29 Jan 2009, 08:03 PM
  5. Order Total in Admin panel
    By dynek in forum Customization from the Admin
    Replies: 1
    Last Post: 22 Aug 2007, 12:55 PM

Posting Permissions

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