Ok,
This is the code that shows the Order Total in a table:
Somehow I need to convert this to the default language.PHP Code:<?php echo strip_tags($orders->fields['order_total']); ?>
Regards,
Matt
Ok,
This is the code that shows the Order Total in a table:
Somehow I need to convert this to the default language.PHP Code:<?php echo strip_tags($orders->fields['order_total']); ?>
Regards,
Matt
Lines 728, 740 and 752 add:
Now replace the <?php echo strip_tags($orders->fields['order_total']); ?> withCode:, o.order_total as base_order_value
AbsoluteCode:<?php echo $currencies->format($orders->fields['base_order_value']); ?>
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
Cheers - did something simular with the SQL Query to fix.
Regards,
Matt
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.
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
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.