how to get current seller id in your agile multi seller module in sellerproductdetail controller.
if you are not in init() method, you can use following:
- Code: Select all
$this->sellerinfo->id_seller
Otherwise, you will have to load the data first
- Code: Select all
$this->sellerinfo = new SellerInfo(SellerInfo::getIdByCustomerId(self::$cookie->id_customer), self::$cookie->id_lang);
$this->sellerinfo->id_seller