Commit 0b1d02d712e026d2b7acf438b41242e37d314024
1 parent
9b454120
remarketing
Showing
2 changed files
with
9 additions
and
2 deletions
Show diff stats
common/modules/product/models/Category.php
... | ... | @@ -29,7 +29,7 @@ use common\behaviors\Slug; |
29 | 29 | * @property integer $product_unit_id |
30 | 30 | * @property string $alias |
31 | 31 | * @property boolean $populary |
32 | - * @property boolean $name | |
32 | + * @property string $name | |
33 | 33 | * |
34 | 34 | * @property CategoryName $categoryName |
35 | 35 | * @property Product[] $products | ... | ... |
console/controllers/FeedController.php
... | ... | @@ -35,7 +35,14 @@ class FeedController extends Controller |
35 | 35 | if ($this->checkId($product->product_id)) { |
36 | 36 | print $product->product_id."\r\n"; |
37 | 37 | //print $this->count++ . "\n"; |
38 | - $content[] = [$product->product_id, $product->name, $product->price]; | |
38 | + $content[] = [ | |
39 | + $product->product_id, | |
40 | + $product->category->category_id, | |
41 | + $product->category->name, | |
42 | + $product->name, | |
43 | + $product->description, | |
44 | + $product->price.' UAH', | |
45 | + ]; | |
39 | 46 | } |
40 | 47 | } |
41 | 48 | ... | ... |