public function actionCreateTestOrder()
{
$mp = Yii::$app->request->post('marketplace', null);
- $marketPlaceClass = ProductsClass::find()
+ $marketplaceClass = ProductsClass::find()
->where(['tip' => [ProductsClass::MARKETPLACE]])->one();
$product = Products1c::find()
->where(['tip' => 'products', 'type' => 'Маркетплейсы'])
- ->andWhere(['parent_id' => $marketPlaceClass->category_id])
+ ->andWhere(['parent_id' => $marketplaceClass->category_id])
->andWhere(['not', ['articule' => null]])
->orderBy('RANDOM()')
->one();