I want to force only default currency checkout and ignore what was selected in shop. Before 1.5.2 this was rather easy and straightforward, but now this controller file became more complicated and i'm not sure how to do this without breaking functionality.
it hasn't really changed. You make the change in the same place.. right under this line:
add:
Code: Select all
protected function index() {
Code: Select all
$this->currency->set('USD');
Today was ready to update to 1.5.2 together with latest fixes, but noticed this actually not working.
What is happening, currency is changed in shop only. I.e. paypal still receives currency selected in shop and not the hardcoded one. But once i hit return or complete payment currency in shop is changed to hardcoded.
I don't really get why this is happening.
edit:
But this solution made me realize another way how to make it work
After this line:
I simple added this:
What is happening, currency is changed in shop only. I.e. paypal still receives currency selected in shop and not the hardcoded one. But once i hit return or complete payment currency in shop is changed to hardcoded.
I don't really get why this is happening.
edit:
But this solution made me realize another way how to make it work

After this line:
Code: Select all
$order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);
Code: Select all
$order_info['currency_code'] = 'JPY';
Who is online
Users browsing this forum: Bing [Bot] and 127 guests