public function getFooter() { $parent_footer = parent::getFooter(); if (!isset($this->order) or !Validate::isLoadedObject($this->order)) { return $parent_footer; } if (!Module::isInstalled('agilemultipleseller')) { return $parent_footer; } require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php"; $id_seller = AgileSellerManager::getObjectOwnerID('order', $this->order->id); $sellerinfo = new SellerInfo(SellerInfo::getIdBSellerId($id_seller), $this->order->id_lang); $id_lang = intval(Configuration::get('PS_COUNTRY_DEFAULT')); $this->smarty->assign(array('seller_name' => $sellerinfo->company, 'seller_address' => $sellerinfo->fulladdress($id_lang), 'seller_fax' => $sellerinfo->fax, 'seller_phone' => $sellerinfo->phone, 'sellerinfo' => $sellerinfo)); return $this->smarty->fetch($this->getTemplate('footer')); }