Overview
Partner Feeds keeps your website in sync with your partners and publishes your listings on outside platforms.
- Imports: the XML or CSV feeds of dealers, agencies and ATS systems are fetched on a schedule. Listings are created, updated and removed to match the feed.
- Exports: Google Merchant and the Facebook catalog on LaraClassifier, Google for Jobs on JobClass.
This is different from the core's Import / Export screen, which is a one-off file transfer done by hand.
Requirements
- LaraClassifier or JobClass 19.1.16 or later, with the PHP extensions
xmlreader,xmlwriterandcurl. - The Laravel scheduler in the server's cron:
* * * * * php /path/to/artisan schedule:run. - A queue worker. Imports and pictures run as queued jobs.
Importing a feed
- Go to Partner Feeds > Feed Imports > Add a feed and enter the address of the feed.
- Click Analyze the feed. The format, the item element and the fields are detected, and a mapping is suggested.
- Check the mapping. The partner reference, the title and the description are required. Nested XML elements are written
location/city, attributesprice/@currency. - Choose the owner account, the country, and a default category and city for the items that cannot be matched.
- Save, then click Import now and read the result in the history.
Custom fields are mapped one per line: machine_name = feed field.
How listings are protected
- An item that did not change is not written again.
- A listing is only archived or deleted when its item has really left the feed. An item that fails to import keeps its listing.
- Nothing is removed when the feed was cut by the item limit, when an item cannot be identified, or when the feed suddenly lost most of its items.
- A feed that fails 5 times in a row is paused. Switching it back on resumes it.
- Feeds and pictures are only fetched from public addresses. To reach a private host, set
partnerfeeds.http.allow_private_hosts. - The core's per-listing e-mails are not sent during an import.
Export feeds
Go to Partner Feeds > Export Feeds, create a feed and copy its address. The address contains a secret token: anyone who has it can read the feed. The file is rebuilt about every hour.
- Google Merchant: add the address as a data source in Merchant Center.
- Facebook catalog: add the address (XML or CSV) as a scheduled data feed in Commerce Manager.
- Google for Jobs: Google does not read a job feed. While this export is active, the job pages it covers carry JobPosting structured data, and its address is a sitemap to submit in Search Console.
Product feeds only hold listings with a price and a picture. The others are counted as skipped.
Commands
php artisan partnerfeeds:run [--source=ID] [--now]
php artisan partnerfeeds:export [--export=ID] [--force]
php artisan partnerfeeds:prune
All three are already scheduled. Options are in config/partnerfeeds.php.
Partner Feeds v1.0.0 · LaraClassifier / JobClass Add-on · by BeDigit