addColumn('no', 'no'); $this->addColumn( 'image', 'image', ['additionalImagesAlias' => Qs_SiteMap::getAliasByItem('ECommerce_Product_Image_Admin_')] ); $this->addColumn('text', 'title', ['orderBy' => 'title']); $this->addColumn('categories', 'categories', ['categoriesCount' => static::CATEGORIES_CELL_COUNT]); $this->addColumn('link_enum', 'featured', ['orderBy' => 'featured']); $this->addColumn('link_enum', 'soldOut', ['orderBy' => 'soldOut']); $this->addColumn('link_enum', 'enabled', ['title' => 'Show', 'orderBy' => 'enabled']); $reviewsLink = Qs_SiteMap::findFirst(null, ['type' => 'ECommerce\\Product\\Review\\Admin\\'], null, 'url'); $this->addColumn( 'reviews', 'reviews', [ 'title' => 'Reviews', 'orderBy' => 'allReviewsCount', 'reviewsLink' => $reviewsLink, 'pendingStatus' => \App\ECommerce\Product\Review\Entity::STATUS_PENDING, ] ); $this->addColumn('money', 'price', ['orderBy' => 'price']); $this->addColumn('options', 'options'); return $this; } }