* @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 7448 $ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class ChangeCurrencyControllerCore extends FrontController { public function process() { parent::process(); $currency = new Currency((int)Tools::getValue('id_currency')); if (Validate::isLoadedObject($currency) AND !$currency->deleted) { self::$cookie->id_currency = (int)($currency->id); die('1'); } die('0'); } public function run() { $this->init(); $this->process(); } }