Esempio n. 1
0
 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'];
 }
Esempio n. 3
0
 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');
 }
Esempio n. 4
0
 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'];
 }
Esempio n. 5
0
 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();
 }
Esempio n. 6
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->clientModel = App::getModel('client');
 }
Esempio n. 7
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->model = App::getModel('client');
     $this->layer = $this->registry->loader->getCurrentLayer();
 }