'product_url' => 'string',
'flowwow_category' => 'string',
'flowwow_subcategory' => 'string',
- 'yandex_category' => 'string',
'length' => 'numeric',
'width' => 'numeric',
'height' => 'numeric',
$modelEdit->created_admin_id = $adminId;
}
+ $modelEdit->product_url ='/media/view-card?guid=' . $modelEdit->guid;
+
if (!empty($modelEdit->image_id)) {
$oldFile = Images::find()->where(['id' => $modelEdit->image_id])->one();
}
if (!empty($imageId)) {
$modelEdit->image_id = $imageId;
-
+ $modelEdit->external_image_url = '/media/view-image?id=' . $imageId;
if (!empty($oldFile)) {
$oldFile->delete();
}