* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ class ChangeCurrencyControllerCore extends FrontController { /** * Assign template vars related to page content. * * @see FrontController::initContent() */ public function initContent() { $currency = new Currency((int) Tools::getValue('id_currency')); if (Validate::isLoadedObject($currency) && !$currency->deleted) { $this->context->cookie->id_currency = (int) $currency->id; $this->ajaxRender('1'); return; } $this->ajaxRender('0'); } }