This Magento 2 module is used to generate a Magento 2 feed for use in a SearchSpring integration.
- Create folder
app/code/SearchSpring/Feed
- Copy contents of this repository into that folder.
- Run
php bin/magento module:enable SearchSpring_Feed
- Run
php bin/magento setup:upgrade
The commands above should be run from the Magento 2 base directory
Searchspring recommends protecting both the module feed generation endpoint and generated feed file by using simple authentication via .htaccess rules or blocking access by IP address. You can find Searchspring IP addresses for white listing here. The URLs that you should setup simple authentication or block based on IP addresses are:
- https://www.YOURDOMAIN.com/searchspring/feed/generate
- https://www.YOURDOMAIN.com/media/searchspring/*
You can generate small pieces of the feed for checking out by following these steps
Hit this endpoint:
- https://www.YOURDOMAIN.com/searchspring/feed/generate?page={n}&filename={tempName} You can also add in count={number} if you really want to slim it down
Once you've hit that endpoint you can go to
This will download the temp file that has been added to by the generate call.
You can hit multipe pages of the generate. Say you hit the first 10 pages and then get the tmp it will have all of the calls in the one file If your generate ever comes back with complete instead of continue you can get the entire feed with