If I change the cookie currency value from USD to JPY, for example, from an external myOCsite.com/currencyswitch.php page like this:
Code: Select all
$ccode='JPY';
setcookie('currency', $ccode, time() + 60 * 60 * 24 * 30, '/', ".myOCsite.com");
**BUT**
When I ctrl-r my opencart browser window, USD still loads. And when I check the cookie value in Chrome, it has changed back to USD.
Can anyone shed some light on this? What am I missing? I'm trying to create a separate page on my OC site that loads fast and has a currency switcher, all my code, just accessing the OC db.
thanks,
takayuki