protected function _assignSummaryInformations() { parent::_assignSummaryInformations(); $module_name = 'sharezblock'; if (Module::isInstalled($module_name) && ($module_instance = Module::getInstanceByName($module_name)) && $module_instance->active) { global $smarty; $products = $smarty->get_template_vars('products'); foreach ($products as &$product) { if ($module_instance::isProductBindedWithShareProduct($product['id_product'])) { $product->isSpecialProduct = 1; } else { $product->isSpecialProduct = 0; } } $smarty->assign('products', $products); } }
protected function _processCarrier() { if (!$this->isOpcModuleActive()) { return parent::_processCarrier(); } $reset = false; if (!$this->context->customer->id) { $reset = true; } if ($reset) { $this->context->customer->id = 1; } // hocijaka nenulova hodnota na osalenie _processCarrier v parentovi $_POST['delivery_option'][$this->context->cart->id_address_delivery] = Cart::desintifier(Tools::getValue("id_carrier")); $this->context->cart->id_carrier = Cart::desintifier(Tools::getValue("id_carrier"), ''); $result = parent::_processCarrier(); if ($reset) { $this->context->customer->id = null; } return $result; }
protected function _assignCarrier() { parent::_assignCarrier(); $this->context->smarty->assign('PS_EU_PAYMENT_API', Configuration::get('PS_EU_PAYMENT_API')); }