Page 1 of 1

OC 1.5.2 and pp_standard.php changes problem

Posted: Sat Mar 24, 2012 5:47 pm
by Xellz
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.

Re: OC 1.5.2 and pp_standard.php changes problem

Posted: Sat Mar 24, 2012 11:17 pm
by Qphoria
it hasn't really changed. You make the change in the same place.. right under this line:

Code: Select all

protected function index() {
add:

Code: Select all

$this->currency->set('USD');

Re: OC 1.5.2 and pp_standard.php changes problem

Posted: Sat Apr 07, 2012 9:40 pm
by Xellz
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:

Code: Select all

$order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);
I simple added this:

Code: Select all

$order_info['currency_code'] = 'JPY';