public function __construct($registry, $box) { parent::__construct($registry, $box); $this->cartModel = App::getModel('cart'); $this->paymentModel = App::getModel('payment'); $this->deliveryModel = App::getModel('delivery'); }
public function __construct($registry, $box) { parent::__construct($registry, $box); $this->productid = App::getModel('product')->getProductIdBySeo($this->getParam()); $this->productModel = App::getModel('product/product'); $this->product = $this->productModel->getProductAndAttributesById((int) $this->productid); $this->heading = $this->product['productname']; }
public function __construct($registry, $box) { parent::__construct($registry, $box); if (Session::getActiveClientid() == NULL) { App::redirectUrl($this->registry->router->generate('frontend.home', true)); } $this->model = App::getModel('client'); }
public function __construct($registry, $box) { parent::__construct($registry, $box); $this->productid = App::getModel('product')->getProductIdBySeo($this->getParam()); $this->productModel = App::getModel('product/product'); $this->product = $this->productModel->getProductAndAttributesById((int) $this->productid); if (empty($this->product)) { App::redirectUrl($this->registry->router->generate('frontend.home', true)); } $this->heading = $this->product['productname']; }
public function __construct($registry, $box) { parent::__construct($registry, $box); if ((int) $this->registry->core->getParam() > 0) { $this->product = App::getModel('product')->getProductAndAttributesById((int) $this->registry->core->getParam()); if (empty($this->product)) { App::redirectUrl($this->registry->router->generate('frontend.home', true)); } } $this->layer = $this->registry->loader->getCurrentLayer(); }
public function __construct($registry, $box) { parent::__construct($registry, $box); $this->clientModel = App::getModel('client'); }
public function __construct($registry, $box) { parent::__construct($registry, $box); $this->model = App::getModel('client'); $this->layer = $this->registry->loader->getCurrentLayer(); }