-
Notifications
You must be signed in to change notification settings - Fork 0
Product Feed
Gareth James edited this page Apr 30, 2021
·
1 revision
\PureClarity\Api\Feed\Type\Product
$feedData = <data pulled from your system>
$feed = new \PureClarity\Api\Feed\Type\Product($accessKey, $secretKey, $region);
$feed->start();
foreach ($feedData as $row) {
$feed->append($row);
}
$feed->end();
See Data feed overview for more details
The following array keys must be present when passed to the append function:
| Key | Description |
|---|---|
| Id | Product ID |
| Title | Product Name/Title |
| Categories | Array of category ids the product is in (can be empty, but key must be present) |
| Link | URL of the product |
| Image | URL of the product image (can be empty, but key must be present) |
| Prices | array pf price data |
For specific formatting of the above fields, and further field you can add, see the product feed documentation