PrestaShop Google Merchant Feed XML

PrestaShop Google Merchant Feed Documentation
Comprehensive documentation for the module PrestaShop Generate XML feeds for Google Merchant Center (cc_ps_google_merchant) with advanced configuration options and product filtering.

Table of contents
  1. Introduction
  2. Installation and system requirements
  3. Module activation
  4. Basic feed configuration
  5. Advanced configuration
  6. XML feed structure
  7. Product filters
  8. Integration with Google Merchant Center
  9. Automatic refresh (CRON)
  10. Security and tokens
  11. Logging and debugging
  12. Image sizes
  13. Troubleshooting
  14. FAQ

1. introduction
CC Google Merchant Feed is an advanced PrestaShop module that provides full integration with Google Merchant Center. The module automatically generates an XML feed containing all products from the store in accordance with Google specifications, with advanced configuration and filtering options.

Key features of the module:
  • Automatic generation of XML feeds for Google Merchant Center
  • Support for all required and optional Google Shopping fields
  • Advanced product filtering (categories, manufacturers, quantity, promotions)
  • Support for multiple languages and currencies in the store
  • Additional product images (up to 10 per product)
  • Automatic feed refresh by CRON
  • Secure access using tokens
  • Feed caching for performance optimization
  • Data normalization – removing HTML, highlighting, and spaces
  • URL and data format validation
  • Compatible with PrestaShop 1.7.x, 8.x, and 9.x
  • Full translation system (Polish, English, German, Spanish, French)

2. installation and system requirements
System requirements
  • PrestaShop 1.7.0.0 or newer (tested up to version 9.0)
  • PHP 7.4 or later
  • Access to the PrestaShop admin panel
  • Google Merchant Center account (free)
  • Ability to save files on the server
  • Access to CRON (optional, for automatic refresh)
Installation process
  1. Download the ZIP file of the module from the official website. cocos.codes
  2. Log in to your PrestaShop admin panel
  3. Go to: Modules → Module Manager
  4. Click „Upload module” in the upper right corner.
  5. Select the downloaded ZIP file and click „Upload this module.”
  6. When the installation is complete, click "Configure"
  7. The module is ready for configuration.
Info
After installation, the module automatically registers all necessary PrestaShop hooks and generates the first XML feed. The installation does not require any additional technical steps. The feed is saved in the directory /modules/cc_ps_google_merchant/feed.xml

3. Module activation
The module does not require separate license activation—it works immediately after installation. However, in order to start exporting products, we need to configure the basic settings.

First steps after installation:
  1. Go to Modules → Module Manager
  2. Find the „CC Google Merchant Feed” module”
  3. Click „Configure.”
  4. Select the „Configuration” tab.”
  5. Fill in the basic feed settings
  6. Click „Save and Generate XML Feed.”
Bookmarks available in the configuration:
BookmarkDescription
ConfigurationFeed settings and product filters
InstructionsLink to feed and CRON instructions
DocumentationLink to full online documentation
SupportLink to the website COCOS support
Tip
Before generating the feed for the first time, review the advanced settings to customize the product filters to your needs. You can select specific categories, manufacturers, minimum stock quantities, and many other options.

4. Basic feed configuration
The basic configuration allows you to quickly customize the feed to your needs.

Basic configuration elements:
OptionDescriptionDefault value
Feed languageLanguage for product names and descriptions in the feedDefault store language
Image sizeProduct thumbnail size in the feedLarge (large_default)
Product conditionDefault status for all products (new/refurbished/used)new
Automatic refreshShould the feed be regenerated with each call?No (use cache)
Cache timeHow many hours should the feed be cached?6 hours
Language configuration:
  1. In the module configuration, select „Feed language.”
  2. Select from the drop-down list of languages for product names and descriptions
  3. Click „Save and Generate XML Feed.”
What happens after saving:
  • All products from the selected language are loaded from the store.
  • The XML feed is automatically generated and saved.
  • The file is available at the URL shown in the „Instructions” tab.”
  • Google Merchant Center can immediately download the new feed.
Success
Once correctly configured, your XML feed will contain all products with the correct data. We can test it by opening the feed URL in a browser – we should see the XML structure with all products.

5. Advanced configuration
Advanced options allow you to customize the feed in detail to suit your business needs.

Advanced options:
OptionDescriptionImpact
Default brandBrand used when the product has no assigned manufacturerRequired for products without GTIN
MPN prefixPrefix added to the product ID when there is no referenceFor example, MPN-123 instead of 123.
Product limitMaximum number of products in the feedReduces feed size
Additional imagesShould I add images other than the main photo?Increases feed size
Maximum number of additional imagesHow many additional images to add (max 10)Controls the amount of data
Default brand configuration:
  1. Enter the brand/company name you want to use for products without a manufacturer.
  2. If you leave this field blank, the store name from your PrestaShop settings will be used.
  3. Brand is required for products without GTIN
MPN configuration:
  1. Enter the prefix for the MPN code (e.g., „MPN-” or „SKU-„).
  2. The prefix will be added to the product reference number.
  3. If the product has a reference number, the prefix will be applied to it.
  4. If there are no references, the prefix will be added to the product ID.
Performance limits:
  • Product limit – default 0 (no limit). Change to a number such as 1000 if the feed is too large.
  • Maximum number of additional images – default 10. Decrease to reduce the size of the feed
Note
All advanced options are optional. The module has default settings that work well for most stores.

6. XML feed structure
The XML feed generated by the module has a structure that complies with Google Merchant Center requirements.

Main feed structure:
Store Name http://example.com
    Product feed for Google Merchant Center  123 Product Name Product Description 
Required fields in the feed:
FieldDescriptionFormatLimit
g:idUnique product identifierText50 characters
g:titleProduct nameText without HTML150 characters
g:descriptionProduct descriptionText without HTML5,000 characters
g:linkLink to the productURL2000 characters
g:image_linkLink to main photoURL2000 characters
g:priceProduct priceNumber + currency (e.g., „99.99 PLN”)
g:availabilityAvailabilityin stock / out of stock / preorder / backorder
g:conditionProduct conditionnew / refurbished / used
Optional but important fields:
FieldDescriptionWhen to use
g:sale_pricePromotional priceWhen a product has a discount
g:gtinEAN13 codeWhen the barcode is available
g:brandProduct brandAlmost always (required if GTIN is missing)
g:mpnManufacturer reference numberRequired if GTIN and brand are missing
g:additional_image_linkAdditional photosFor better visibility in search engines
Example of a complete product component:
123 Blue T-shirt, size L High-quality cotton T-shirt in blue, size L
  http://example.com/produkt/niebieski-t-shirt http://example.com/images/tshirt-blue-large.jpg
  http://example.com/images/tshirt-blue-1.jpg 99.99 PLN 79.99 PLN
  in stock new 5901234123457 Fashion Brand MPN-123
Warning
Google requires that the feed contain all required fields. Products that do not have all the required information may not be indexed or may be removed from Google Shopping. The module automatically skips products with missing required data.

7. Product filters
Advanced filters allow you to precisely select the products that will be exported to the feed.

Available filters:
FilterDescriptionApplication
CategoriesExport only products from selected categoriesLeave blank for all categories
ManufacturersExport only products from selected manufacturersLeave blank for all manufacturers
Minimum quantity in stockSkip products with lower stock levelsEnter a number, e.g., 5 (0 = no limit)
Only products on saleExport only products that have a current promotionCheck or uncheck the option
Category filter configuration:
  1. In the „Categories” section, you will see a list of all categories from the store.
  2. Check the boxes next to the categories you want to export.
  3. To select multiple categories, hold down CTRL (Cmd on Mac) and click on the categories.
  4. Leave unchecked if you want to export all categories.
Manufacturer filter configuration:
  1. In the „Manufacturers” section, you will see a list of all manufacturers/brands.
  2. Check the boxes next to the manufacturers whose products you want to export.
  3. To select multiple manufacturers, hold down CTRL (Cmd on Mac) and click.
  4. Leave unchecked if you want to export all manufacturers.
Minimum stock quantity configuration:
  1. Enter the minimum quantity of products in stock
  2. Products with fewer items will be omitted from the feed.
  3. Enter 0 to not filter by quantity (default)
  4. Useful for exporting only available products
Promotion filter configuration:
  1. Select the „Only products with promotions” option if you want to export only promotions.
  2. Check this box if you want to export all products regardless of promotions.
  3. The module automatically adds the sale_price field for discounted products.
Tip
Combining several filters (e.g., category + manufacturer + minimum quantity) allows you to precisely tailor the feed to the needs of your marketing campaigns. For example, you can export only promotions for the most popular brands in the Clothing category.

8. Integration with Google Merchant Center
To connect the feed to Google Merchant Center, we need the feed URL and a correctly configured Google account.

Getting the feed URL:
  1. In the PrestaShop administration panel, go to Modules → Module Manager.
  2. Click „Configure” next to the Google Merchant Feed CC module.
  3. Go to the „Instructions” tab.”
  4. In the „XML feed link” section, you will see the full URL for the feed.
  5. Click the „Copy” button to copy the URL to the clipboard.
Adding a feed to Google Merchant Center:
  1. Log in to Google Merchant Center
  2. Go to the „Products” → „Channels” section.”
  3. Click „New Channel.”
  4. Select „Shopping ads” or the appropriate channel type.
  5. Enter the name of the channel (e.g., „PrestaShop XML Feed”).
  6. In the „Products” section, select „Feed URL.”
  7. Paste the copied URL into the feed
  8. Click „Next” and complete the channel setup.
Feed validation in Google Merchant Center:
  1. After adding the feed, Google will automatically download and validate it.
  2. Go to „Products” → „Diagnostics”
  3. Check if the feed has been successfully indexed
  4. If there are errors, the module will show which products have problems.
Feed update:
  1. Google Merchant Center automatically downloads the feed sometimes
  2. To force an immediate update, click the refresh icon next to the channel.
  3. Or configure automatic refresh via CRON (described below)
Success
Once the feed has been correctly configured, the products should be available on Google Shopping within a few hours. We can find them by searching for them on Google on the search results page.

9. Automatic refresh (CRON)
CRON allows for automatic feed refreshes without manual intervention.

What is CRON:
  • Tool for automatically performing tasks on the server
  • Allows you to schedule regular activities (every 6 hours, every day, etc.)
  • Perfect for refreshing your Google Merchant Center feed
  • Requires access to the hosting/server panel
Setting automatic refresh:
  1. In the module configuration, select the „Automatic refresh” option.”
  2. If you uncheck this box, the feed will be cached for a specified number of hours.
  3. Leave this option selected to regenerate the feed each time it is called.
CRON command to add to the server:
0 */6 * * * curl -s "http://example.com/modules/cc_ps_google_merchant/feed.xml?token=WYGENEROWANY_TOKEN" > /dev/null 2>&1
Explanation of the CRON command:
  • 0 */6 * * * – runs the task every 6 hours on the hour
  • curl -s – downloads URLs silently (without messages)
  • http://example.com – replace with your store's address
  • GENERATED_TOKEN – security token from module configuration
  • /dev/null 2>&1 – hides messages and errors
How to configure CRON with different hosting providers:
HostingInstructions
cPanelPanel → Advanced → Cron Jobs → Add Cron Job
PleskTools and settings → Scheduled tasks → Add task
Custom panelSearch for „Scheduled tasks,” „Cronjobs,” or „Cron.”
Linux terminalRun: crontab -e and paste the command from the example
Alternative method – wget instead of curl:
0 */6 * * * wget -q -O - "http://example.com/modules/cc_ps_google_merchant/feed.xml?token=WYGENEROWANY_TOKEN" > /dev/null 2>&1
Refresh rates:
  • 0 * * * * – every hour
  • 0 */6 * * * – every 6 hours (recommended)
  • 0 0 * * * – every day at midnight
  • 0 */12 * * * – every 12 hours
Note
If your hosting provider does not offer CRON access, you can also use systems such as EasyCron.com, which can run tasks for you. Simply create a task in EasyCron and paste the URL into the feed – it will run automatically.

10. Security and tokens
The module generates a security token to protect access to the feed from unauthorized access.

What is a security token:
  • A unique code randomly generated during module installation
  • Required for each feed call by CRON
  • Prevents unauthorized persons from refreshing the feed
  • Changes with each regeneration
Where to find the token:
  1. In the PrestaShop administration panel, go to Modules → Module Manager.
  2. Click „Configure” next to Google Merchant Feed CC.
  3. Go to the „Instructions” tab.”
  4. In the „Automatic regeneration (CRON)” section, you will see a token.
  5. A token is a long string of alphanumeric characters.
What do feed URLs look like?
http://example.com/modules/cc_ps_google_merchant/feed.xml http://example.com/modules/cc_ps_google_merchant/feed.xml?token=abc123def456ghi789jkl
Generating a new token:
  1. In the „Instructions” tab, click the „Generate new security token” button.”
  2. A confirmation window will appear – click OK.
  3. A new token will be generated and displayed.
  4. The old token will stop working immediately.
  5. If you are using CRON, you must update the command with the old token.
Warning
Remember to keep your token in a safe place. Do not share it publicly or enter it into unsecured sources. If you suspect that your token has been compromised, generate a new one immediately.

11. Logging and debugging
Sometimes it may be necessary to check whether the feed is generated correctly.

Testing the feed manually:
  1. Open the feed URL in your web browser.
  2. You should see the raw XML code with products.
  3. Right-click and select „View page source.”
  4. Check if the XML structure is correct
  5. Check that all required fields are present for each product.
XML feed validation:
  1. Go to XML Validator
  2. Copy the feed content and paste it into the validator.
  3. The validator will show whether the XML has the correct syntax.
  4. If there are errors, note the line number where the problem is.
Checking your feed in Google Merchant Center:
  1. Go to Google Merchant Center
  2. Open the feed channel
  3. Go to „Diagnostics”
  4. Check „Errors” and „Warnings.”
  5. Google will show which products have problems and what is wrong with them.
Server error logs:
  • If the feed is not generating, check the PHP error logs on the server.
  • Search for errors related to the cc_ps_google_merchant module
  • Check if the server has write permissions in the module directory.
  • Check if PHP has the SimpleXML extension installed.
Error
If the feed is not generated or an error message appears, please contact COCOS support at cocos.codes/support providing information about the error from the server logs.

12. Image sizes
The module supports various sizes of product thumbnails that we can choose for the feed.

Available image sizes:
SizeTypical dimensionsApplicationRecommendation
Small (small_default)~98×98 pxThumbnails in product listsNot for Google Shopping
Medium (medium_default)~250×250 pxCatalog photosPossible
Large (large_default)~500×500 pxFull product photosRecommended
Very large (thickbox_default)~1000×1000 pxProduct zoomBest for Google
How to choose the image size:
  1. In the module configuration, go to „Image size.”
  2. Select your preferred size from the drop-down list.
  3. Click „Save and Generate XML Feed.”
Google recommendations for image sizes:
  • Minimum size: 100 x 100 pixels
  • Recommended size: 800 x 800 pixels or larger
  • Maximum file size: no limit, but Google only downloads the first 10MB
  • Formats: JPG, PNG, GIF, BMP, TIFF, ICO, CUR, SVG, WEBP
Additional images:
  • The module can add up to 10 additional photos to each product.
  • Increases the chances that the product will appear in Google Images search results
  • You can disable this option to reduce the size of the feed.
  • The „Maximum number of additional images” option allows you to control the number of
Tip
For best results in Google Shopping, we recommend selecting „Very large (thickbox_default)”. Larger images make products look better in search results and can increase clicks.

13 Troubleshooting
The feed is not being generated.
  1. Check if the module is active in the Module Manager.
  2. Check whether the server has write permissions in the directory. /modules/cc_ps_google_merchant/
  3. Log in to the admin panel and try clicking „Save and Generate XML Feed.”
  4. Check the server error logs (PHP error.log).
  5. Ensure that PHP has the SimpleXML extension installed.
  6. Try turning the module off and on again.
Products do not appear in the feed
  1. Check if the products are active in PrestaShop
  2. Check if the products have a category assigned to them.
  3. If you are using filters, check whether the products meet the filter conditions.
  4. Check the minimum quantity in stock – out-of-stock products may be omitted.
  5. Open the XML feed in your browser and search for products manually (CTRL+F).
Google Merchant Center shows errors for the feed
  1. Go to Google Merchant Center and open the „Diagnostics” tab.”
  2. Read the detailed error message
  3. Check which fields are missing – Google requires specific fields
  4. The module automatically skips products with missing required data.
  5. Ensure that products have: title, description, link, photo, price, availability, GTIN, or brand.
The price is incorrect in the feed.
  1. Check if the price in PrestaShop is set correctly.
  2. Check if the store currency is configured correctly.
  3. If there are discounts, the module should select the discounted price.
  4. Check that VAT is applied correctly (the price should include VAT).
Additional images do not appear
  1. Check if the „Additional images” option is enabled in the configuration.
  2. Ensure that products have additional images assigned in PrestaShop.
  3. Check that the maximum number of additional images is not set to 0.
  4. Open the XML feed and check if there are any g:additional_image_link elements.
CRON does not start
  1. Check if the CRON task is correctly added in the hosting panel.
  2. Check that the URL in the CRON command is correct.
  3. Check if the token in the URL is current (it sometimes changes with updates).
  4. Try manually entering the URL in your browser to see if it works.
  5. Check the CRON logs in the hosting panel – they may contain information about errors.
Info
Most problems are caused by missing product data (e.g., title, description, photo) or incorrect feed configuration. Please check that all products have complete data before reporting a problem.

14 FAQS.
Is the module compatible with PrestaShop 9.0?
Yes, the module has been tested and is fully compatible with PrestaShop 1.7.x, 8.x, and the latest version 9.0.

Do I need to have a Google Merchant Center account to use the module?
Yes, Google Merchant Center is free, but it requires a Google account and store configuration. The module generates a feed, but you need an active Merchant Center account to display products on Google Shopping.

How long does it take to generate a feed?
It depends on the number of products and server performance. For a store with 1,000 products, it usually takes a few seconds. For large stores, we can reduce the size by reducing the number of additional images.

Can I export products from specific categories only?
Yes, the module allows you to select specific categories for export. You can select multiple categories by holding down the CTRL key while clicking.

Does the module support multiple languages?
Yes, when generating the feed, we can select the language for product names and descriptions. The feed will contain data in the selected language from the store.

What happens when I change the module settings?
After saving the settings, the module automatically regenerates the XML feed. The new feed contains the changed settings (e.g., different image size, added filters, etc.).

Can I disable additional images to reduce the size of the feed?
Yes, in the „Additional images” section, you can disable the option or reduce the maximum number of additional images (10 by default).

How are the promotional products doing?
If the product is on sale, the module automatically adds the g:sale_price field containing the discounted price, and g:price contains the price before the discount.

What happens if he adds a new product to the store?
The new product will appear in the feed the next time it is refreshed (either manually or by CRON). If CRON runs every 6 hours, the product will appear after a maximum of 6 hours.

Can I have multiple feed instances (for different channels)?
The module generates one main feed, but we can filter it (categories, manufacturers) to create virtually different versions of the feed through custom configuration for each channel in Google Merchant Center.

Can I modify the XML feed structure?
The XML structure is defined by Google's specification and is immutable. The module generates a 100% feed that complies with Google's requirements and does not allow the structure to be changed.

What happens when you uninstall the module?
The module removes all its settings from the database. The feed.xml file remains in the directory but is no longer updated. You can delete it manually.

Is there a limit to the number of products in the feed?
The technical limit is the total size of the XML file (no direct limit), but we can set a limit on the number of products in the configuration (the „Product limit” field).

How can I check if the feed is working correctly?
Open the feed URL in your browser—you should see XML code. Go to Google Merchant Center and check the „Diagnostics” tab in the channel configuration—Google will show you if the feed has been downloaded correctly and if there are any errors.

Leave Your comment

Your email address will not be published. Required fields are marked *

Recently viewed products

PrestaShop Google Merchant Feed XML 1.0.0

(0)
$49,00 VAT excluded

PrestaShop Google Tag Manager (GTM, GA4, ADS)

(0)
$49,00 VAT excluded

WordPress Customer Booking System 1.0.0

(3)
$49,00 VAT excluded

[FREE] PrestaShop PayNow

(0)
$0,00 VAT excluded

Login

Shopping Cart

Close

Your cart is empty.

Start Shopping

Sidebar