Ejemplo n.º 1
0
 public function initContent()
 {
     parent::initContent();
     $egmultishop = new egmultishop();
     $context = Context::getContext();
     $id_url = egmultishop::getUrlId($context->shop->id);
     $page = $egmultishop->getMultishopPage('contacts', null, false);
     $page = $egmultishop->replaceCeoContact($page);
     $add1 = $egmultishop->replaceCeoContact('%addr1');
     $add2 = $egmultishop->replaceCeoContact('%chema');
     $this->context->smarty->assign(array('page' => $page, 'add1' => $add1, 'add2' => $add2));
     $this->setTemplate('contacts.tpl');
 }
Ejemplo n.º 2
0
 public function initContent()
 {
     parent::initContent();
     $egmultishop = new egmultishop();
     $context = Context::getContext();
     $id_url = egmultishop::getUrlId($context->shop->id);
     //$page = $egmultishop->getMultishopPage('shipself',$id_url);
     $sub_domain = egmultishop::getSubdomain();
     $page = $egmultishop->getMultishopPageDomain('shipself', $sub_domain, false);
     if ($page == "") {
         $page = $egmultishop->getMultishopPage('shipself_df', null, false);
         $shipselfPage = $egmultishop->getShipselfCwarNearInfo($id_url);
         $page = $egmultishop->replaceCeoContact($page);
     } else {
         $page = $egmultishop->replaceCeoContact($page);
         $map = $egmultishop->replaceCeoContact('%chema');
     }
     $this->context->smarty->assign(array('page' => $page, 'map' => $map, 'shipselfPage' => $shipselfPage));
     $this->setTemplate('shipself.tpl');
 }
Ejemplo n.º 3
0
 public function initContent()
 {
     parent::initContent();
     $egmultishop = new egmultishop();
     $context = Context::getContext();
     $id_url = egmultishop::getUrlId($context->shop->id);
     //$page = $egmultishop->getMultishopPage('deliverycondition',$id_url);
     $sub_domain = egmultishop::getSubdomain();
     $page = $egmultishop->getMultishopPageDomain('deliverycondition', $sub_domain, false);
     if ($page == "") {
         $page = $egmultishop->getMultishopPage('deliverycondition_df', null, false);
     }
     $page = $egmultishop->replaceCeoContact($page);
     $this->context->smarty->assign(array('page' => $page));
     $this->setTemplate('delivery.tpl');
 }