src/models/ShopProduct.php
public function getViewProductPrices($shopFuser = null)
    {
        if ($shopFuser === null) {
            $shopFuser = \Yii::$app->shop->cart;
        }

        return $this->hasMany(ShopProductPrice::class, [
            'product_id' => 'id',
        ])->andWhere([
            'type_price_id' => ArrayHelper::map($shopFuser->viewTypePrices, 'id', 'id'),
        ])->orderBy(['price' => SORT_ASC]);
    }
public function getViewProductPrices($shopFuser = null)
    {
        if ($shopFuser === null) {
            $shopFuser = \Yii::$app->shop->cart;
        }

        return $this->hasMany(ShopProductPrice::class, [
            'product_id' => 'id',
        ])->andWhere([
            'type_price_id' => ArrayHelper::map($shopFuser->viewTypePrices, 'id', 'id'),
        ])->orderBy(['price' => SORT_ASC]);
    }
Цены доступные к просмотру

@param null $shopFuser
@return $this