Example #1
0
 public function __construct($id_shipping = null, $id_lang = null, $id_shop = null, Context $context = null)
 {
     if (!$id_shipping) {
         $this->id_shop = Context::getContext()->shop->id;
     }
     parent::__construct($id_shipping, $id_lang, $id_shop, $context);
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $this->id_shop = $this->context->shop->id;
 }