Post by amirak17 » Wed Jan 09, 2019 11:47 pm

Hi,

This is regarding currency conversion.

We have a website using Codeigniter on which we are using Opencart as a subset system for cart and checkout etc. So just like Opencart has a dropdown in the header to change currency rates.

We need to implement a dropdown in the header in Codeigniter (PHP Framework) so that it changes the currency in Opencart as well. By the way header is common b/w both Codeigniter and Opencart systems. Header resides under Codeigniter.

I have tried posting 'code' and 'redirect' variables to the currency function under controller in Opencart using Javascript and cURL. Basically trying to mimic Opencart dropdown functionality.

I have also tried setting the session variable: $_SESSION['default']['currency'] = 'EUR'; (for example)

Both ways do not work!

Kindly, let me know if you need more information.

Is there a way we can change the currency from outside of Opencart using PHP etc? Please let me know.

Thanks

Newbie

Posts

Joined
Wed Jan 09, 2019 11:14 am

Post by kestas » Thu Jan 10, 2019 6:08 am

maybe this https://www.opencart.com/index.php?rout ... nzzUsbz9Bs
put you on the right way...

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am
Who is online

Users browsing this forum: Baidu [Spider] and 34 guests