Build an iterator for getting all products as objects, one at a time.
Build tests for the iterator. Begin working on the exporter (which will use the iterator).
This commit is contained in:
parent
ab0611d2a1
commit
0a05d637d4
3 changed files with 103 additions and 1 deletions
|
|
@ -39,7 +39,8 @@ file will be named siteProductData.csv.
|
|||
|
||||
sub exportProducts {
|
||||
my $session = shift;
|
||||
my $productData = '';
|
||||
my @columns = qw{sku title shortdescription price weight quantity};
|
||||
my $productData = WebGUI::Text::joinCSV('mastersku', @columns) . "\n";
|
||||
my $storage = WebGUI::Storage->createTemp($session);
|
||||
$storage->addFileFromScalar('siteProductData.csv', $productData);
|
||||
return $storage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue