Product Feed For Magento 2
or search frequently asked questions:
The first factor and the most important is cron. It is essential for the automatic feed generation to have cron constantly running on your server.
Cron is a task scheduler and works on a Unix or Linux hosting environment. It lets applications automatically run specific server actions (running apps, scripts and stuff) using a predefined schedule or simply at specified time points. It can be used by Magento 2 installation and by many other web applications, such as our Product Feed.
As a first troubleshooting step, you can proceed to Stores → Configuration → Amasty Extensions → Extensions and Notifications → expand the System Information Tab and check the info on 5 last running cron jobs. If you see the following result
or dates shown way back in the past it means either cron is not configured in your Magento instance or got stuck and needs to be restarted. Here you can learn more about Magento cron and how it should be configured.
Alternatively, you can ask your system administrator or hosting provider to set up cron and check the scheduled generation again once it is configured.
The second reason for the missed feed generation at a specified time is the manual feed generation.
I mean if the scheduled feed was generated in manual mode. You can check the feed execution mode right on the feed grid.
This way, if the scheduled feed was generated manually it may take the feed up to 48 hours to run next daily generation routine as in the module code there is a check on when the last feed generation took place.
The errors related to .xml file content can be viewed in the report file available for download from your Google Merchant Center account.
The above-mentioned report file is quite detailed and even shows the line in the feed file that contains an issue or missing required data for the particular attribute.
Among the most frequently reported issues after submitting the feed to Google Merchant Center are:
Invalid or missing required attribute: price
Price is a required attribute and all the products you want to be in Google Shopping should have the price set. The price won't get into the feed if the product is disabled in Magento admin or if Magento indexes are not refreshed as the actual prices are getting into the feed each time the feed is being generated. Here you can read the full definition of 'price' attribute. Invalid or missing required attribute: link
The same goes for the link attribute. If it is missing in the generated feed file the first things to check are:
- Products are enabled.
- Magento indexes should be up-to-date.
Here you can find the full definition of 'link' attribute.
Invalid or missing attribute: description
This is a required attribute that must be present in the feed file for each individual product. Here you can learn more about 'description' attribute.
XML formatting error
In most cases, this error appears when your feed has special characters inside tags. To get rid of this error, please, use HTML escape option for the attribute listed in the report file. Please, note the line number in the error message, then open your XML feed file and check the aforementioned line. Note the tag used in this line, then open feed profile, find the tag and add a modifier “HTML Escape”. Don't forget to hit 'Update' button and 'Save' the feed:
Unknown ‘google product category’ value
In order to submit the feed to Google Merchant Center, your store categories must be mapped in accordance with Google requirements. Category mapping requirements for <g:google_product_category> attribute can be viewed here.
Google taxonomy structure (categories tree) is available here.
Invalid or missing recommended attribute: image link
Please, look through the definition to make sure your image links are correct and match Google requirements.
In case links are pulled into the feed file only partially, for example, without the store domain name, please, make changes in the feed profile for the <g:image_link> attribute. Please use "Image|Thumbnail" attribute to include full image URL in the feed file:
We hope the above information will be helpful.
- Magento 1 Extensions 125
- Navigation & Search 9
- Customers' Data 19
- Catalog Management 20
- Promotions 17
- Shipping 8
- Product Page Improvement 19
- Order Management 21
- SEO Optimization Tools 18
- User Experience 18
- Checkout 12
- Images & Media 9
- Recent 18
- Free Magento Extensions 16
- All-in-one Solutions 4
- System Administration Services