Product catalogs change often. Prices may be updated, products may go in or out of stock, new products may be added, and product images or descriptions may be changed. For merchants using Google Merchant Center, feed data should be refreshed regularly so exported product information does not become outdated.
MageHQ Google Shopping Feed for Magento 2 supports automatic XML feed generation by cron and manual feed generation by CLI command. This makes it suitable for merchants who want scheduled feed updates while still giving developers and admins a command line option when manual generation is needed.
Why Automated Feed Generation Matters
Manually generating and updating product feeds can become a repetitive task. If a store owner needs to export product data regularly, relying only on manual work may lead to missed updates or outdated feed files.
Automatic feed generation helps reduce this problem. By using cron, MageHQ Google Shopping Feed can generate XML feed output on a scheduled basis. This helps merchants keep feed data updated with less manual effort.
Automatic XML Feed Generation by Cron
MageHQ Google Shopping Feed supports automatic feed generation by cron. Cron generation is useful for stores that want feed files to be refreshed regularly without requiring an admin to manually trigger the process every time.
This feature is especially helpful for catalogs that change frequently. If product price, availability, or image data is updated in Magento, scheduled feed generation helps keep exported feed files closer to current catalog data.
Admin Configuration for Enabling or Disabling the Feed
Store administrators can enable or disable the feed from Magento admin. This gives admins control over whether feed generation should be active.
Having an enable or disable option is useful during setup, testing, or store maintenance. Admins can configure the feed settings and control when the feed should be generated.
Configure Cron Generation from Magento Admin
The module allows store administrators to configure cron generation. This helps merchants set up scheduled product feed generation as part of normal Magento operations.
A scheduled workflow is useful because product feed maintenance becomes less dependent on manual reminders. Once configured, feed generation can run through cron according to the store’s setup.
Manual Feed Generation by CLI Command
MageHQ Google Shopping Feed also supports command line feed generation. This is useful for developers, system administrators, or technical store owners who prefer to run feed generation from the terminal.
CLI generation is practical in several situations. For example, a developer may want to generate a feed after changing feed configuration, after testing a category inclusion rule, or after updating catalog data. The command line option gives technical users direct control when needed.
Cron and CLI Work Together
Cron and CLI generation support different operational needs. Cron is useful for automated scheduled updates, while CLI is useful for manual generation and technical workflows.
Together, these options make the extension flexible for both everyday store management and developer-driven operations. Store owners can rely on scheduled feed updates, while technical users can still run feed generation manually when required.
Generated Feed Files in the Admin Area
After feeds are generated, the module lists generated feed files in the Magento admin area. The admin grid includes store information, file path, feed URL, and last generated date.
This gives administrators visibility into feed generation results. Instead of guessing when a feed was last created or where the file is stored, admins can review feed details directly from the admin grid.
Public Feed URL for Merchant Center Use
The feed output is accessible via a public feed URL. This is useful because Google Merchant Center can use a feed URL as a source for product data.
With a public feed URL listed in the admin grid, merchants can more easily locate the generated feed output and use it in their Google Merchant Center workflow.
Best Use Cases for Cron and CLI Feed Generation
- A store updates product catalog data regularly and needs scheduled feed generation.
- An admin wants to enable or disable feed generation from Magento admin.
- A developer wants to generate the feed manually from the command line.
- A merchant wants visibility into the last generated date for each feed file.
- A store needs feed output accessible through a public feed URL.
Reduce Manual Work in Product Feed Maintenance
Feed maintenance should not require store owners to rebuild product exports manually every time the catalog changes. MageHQ Google Shopping Feed helps reduce manual work by supporting cron-based automatic XML feed generation and command line feed generation.
For Magento 2 merchants preparing product data for Google Shopping and Performance Max campaigns, automated generation and CLI support provide a more reliable workflow for keeping feed files updated.
