Commit 050681b5e0fb29f78b4f721b94acc282282b488e
1 parent
e71d5d51
remarketing
Showing
1 changed file
with
3 additions
and
8 deletions
Show diff stats
console/controllers/FeedController.php
... | ... | @@ -49,17 +49,12 @@ class FeedController extends Controller |
49 | 49 | |
50 | 50 | $handle = fopen($dirName .'/'. $filename, "w"); |
51 | 51 | |
52 | - $content = array ( | |
53 | - array('aaa', 'bbb', 'ccc', 'dddd'), | |
54 | - array('123', '456', '789'), | |
55 | - array('"aaa"', '"bbb"') | |
56 | - ); | |
57 | 52 | $content[] = ['ID', 'ID2', 'Item Category', 'Item title', 'Item description', 'Price']; |
58 | 53 | $content[] = ['ID', 'ID2', 'Item Category', 'Item title', 'Item description', 'Price']; |
59 | 54 | |
60 | -// foreach ($this->getProducts() as $product) { | |
61 | -// $this->createRow($product, $content); | |
62 | -// } | |
55 | + foreach ($this->getProducts() as $product) { | |
56 | + $this->createRow($product, $content); | |
57 | + } | |
63 | 58 | |
64 | 59 | foreach ($content as $item) { |
65 | 60 | fputcsv($handle, $item); | ... | ... |