Google Shopping, your PrestaShop catalog in Google Merchant Center with no manual export

In short. The Google Shopping module turns your PrestaShop catalog into an XML feed that Google Merchant Center can read. Your products become eligible for the Shopping tab, Google Ads Shopping campaigns and free product listings. You set up the feed content once, and a CRON task keeps it current every night.

1XML feed per active language
3product conditions to pick from
10images max. per product
8export options to switch on

Google Merchant Center only accepts your products when they arrive in a precise format, with standard tags for price, availability, condition and identifiers. Filling that file by hand quickly gets out of hand once your catalog starts moving. This module reads your store directly and builds the file for you. Here is exactly what it exports, how to configure it and what to check before you submit your feed to Google.



What the module does

The generated feed is the data source for your Google Merchant Center account. Once submitted, it makes your products eligible for three placements.

  • 🛍️Google Shopping, the Shopping tab in search results
  • 📣Google Ads Shopping, paid product ads
  • 🆓Free product listings in rich search results
Four-step diagram, from the PrestaShop catalog to Google Merchant Center

How your products travel from the catalog to Google

What the module handles for you

  • It reads the store's active products, language by language
  • It writes one XML file per active language, named by store and by language
  • It applies your settings for price, shipping, identifiers and categories
  • It rebuilds everything each time the CRON URL is called or the configuration is saved

Good to know. The module produces the feed and gives you its address. Submitting the feed in Merchant Center and following up on diagnostics then happens in your Google account.


Feed content, tag by tag

Each product in the feed combines a core set of tags that are always there with tags you switch on according to your data.

Google Shopping feed tags, core export and optional tags

The core exported for every product and the tags tied to your settings

Tag What the module puts in it
g:id The product ID in PrestaShop
title The product name, capped at 70 characters and cut on a whole word
description The short or long description, your choice, with HTML stripped
link The product page URL in the feed's language
g:image_link The main image, followed by up to 9 additional images
g:shipping_weight The weight in kg, when it is filled in on the product

Real-life example. Your product is called "Organic Asian green tea discovery box with stainless steel infuser and metal tin 100 g". The name runs past 70 characters, so the module cuts it before the last whole word that fits. The title is also lowercased with a capital first letter. Keep this in mind if your product names include a brand written in capitals.

Image formats

You pick the PrestaShop image format used for the links, large_default by default. If a product has no image in the feed's language, the module looks for images attached to the store's other languages.


Prices, sales and availability

  • 💶Tax-inclusive price in Google format, for example 19.90 EUR, with the currency code rather than the € sign
  • 🏷️Automatic sale price, as soon as a discount is active, g:price keeps the regular price and g:sale_price gets the discounted one
  • 📦Availability on every product, in_stock when stock is positive, out_of_stock otherwise
  • 🔢Stock quantity as an option, in the g:quantity tag
  • ✨Product condition set for the whole feed, new, used or refurbished

⚠️ Prices exported in euros. The module writes every price with the EUR code. It is therefore meant for stores that sell in euros. Products without a price are skipped and never appear in the feed.


Product identifiers

Google asks for at least one identifier per product, except for handmade items. The module offers three, each with its own switch.

Option Tag Source in PrestaShop
Export the brand g:brand The manufacturer linked to the product
Export manufacturer references g:mpn The product's supplier reference
Export the EAN13 code g:gtin The product's EAN13 field

Key point. When a product has none of these identifiers, the module adds g:identifier_exists set to FALSE. Google then knows the absence is intentional, which matches the case of handcrafted products.


Google and store categories

The Google category

The Google category field feeds the g:google_product_category tag. You set it separately for each active language. Enter the full text path or the numeric ID taken from Google's official taxonomy.

Home & Garden > Decor > Candles

The > and & characters stay as they are in the feed thanks to a CDATA block, with no double escaping.

The store breadcrumb

The Export the category breadcrumb option adds the g:product_type tag, built from the tree of the product's default category. Google uses it to place the product more accurately, and you can use it to segment your campaigns.


Shipping per language

The g:shipping block tells Google the delivery country and the shipping cost. It turns on with its own switch.

  • 📍 Shipping country, as a two-letter ISO code, for example FR
  • 🚚 Shipping cost, as an amount, for example 4.90
  • 🌍 One country and cost pair per active language, so each feed carries the values of its own market

Real-life example. Your store runs in French and German. The _fr.xml feed goes out with FR and 4.90, the _de.xml feed with DE and your rate for Germany. Each file matches the country you target in Merchant Center.


Excluding categories

Some products have no place on Google, such as gift cards or discontinued items. The configuration shows your category tree with a checkbox next to each entry.

  • ☑️Tick a category and its products leave the feed
  • 🌳Subcategories included, they are excluded automatically along with their parent
  • ⏸️Disabled products never go out, with no setting needed

Automatic updates with CRON

A feed is only useful if it reflects today's prices and stock. The module exposes a token-protected generation URL, shown at the top of its configuration page.

https://your-store.com/module/googleshopping/cron?token=YOUR_TOKEN

Schedule a call once a day with your host, ideally outside peak hours. The line below runs the generation every day at 4.30 am.

30 4 * * * curl -s "https://your-store.com/module/googleshopping/cron?token=YOUR_TOKEN" > /dev/null

A secure entry point

  • 🔑40-character token, compared in constant time, without which the call gets a 403 error
  • 🧾JSON response with the store, the list of generated files and the processing time, handy when reading your logs
  • ⏱️No timeout on large catalogs, the execution time limit is lifted when your host allows it
  • 🏬Multistore, one CRON line per domain, each call runs in the context of the store it targets

⚠️ Upgrading from a version older than 2.6? The former modules/googleshopping/cron.php address has been removed, because PrestaShop 9 returns a 403 error on direct calls to module PHP files. Copy the new URL into your scheduler, or the feed will stop being regenerated.

To change the token, delete the GS_CRON_TOKEN key in Advanced Parameters → Configuration. A new value is created the next time the module page is displayed.


Installation and setup

Installing the module

  1. Open Modules → Module Manager → Upload a module.
  2. Upload the googleshopping.zip archive.
  3. Click Configure on the module's row.

Upload not possible? Unzip the archive, send the googleshopping/ folder to the modules/ directory over FTP, then click Install in the Module Manager.

Setting up and publishing the feed

The configuration page is split into three panels, feed content, shipping and export options.

  1. Fill in the Google category for each language.
  2. Choose the description type, the product condition and the image format.
  3. Switch on the identifiers your product pages actually contain, brand, MPN or EAN13.
  4. Enter the country and shipping cost per language, then turn on the shipping block.
  5. Tick the categories to exclude.
  6. Click Save and generate the feed.
  7. Copy the XML file URL shown at the bottom of the page.
  8. In Merchant Center, add it as a primary feed under Products → Feeds → Add primary feed.

Default settings

Setting Default value
Product condition New
Sale price export On
Shipping block Off
Image format large_default
Shipping country FR
File location file_exports/

The Generate files at the site root option places the XML files at the site root instead of the module's file_exports/ subfolder. Files are named like googleshopping-s0-en.xml, where the number identifies the store in multistore mode.


Troubleshooting

Symptom Fix
The form does not display properly Clear the cache in Advanced Parameters → Performance, then reload the page
The XML file is not generated Check that PHP can write to the site root or to modules/googleshopping/file_exports/
Google reports an invalid category Use the exact value from the Google taxonomy, not a language or country code
Google asks for an identifier Switch on brand, MPN or EAN13 and make sure those fields are filled in on your products
Products are rejected over images Add a publicly accessible image to each product concerned
The feed no longer updates Check that your CRON calls the token URL shown in the configuration

On uninstall. All module options are removed from the PrestaShop configuration. XML files already generated stay in place, delete them by hand if you no longer need them.


Technical sheet

Version 2.6.0
PrestaShop and PHP compatibility See the product page
Feed format XML RSS 2.0, Google g: namespace, UTF-8
Generated files One per active language and per store
Automatic updates Token-protected CRON URL, JSON response
Interface languages EN, FR, ES, DE, IT
Multistore Yes, one CRON line per domain
Core overrides None
Publisher PrestaLuma

Ready to list your catalog on Google?

Google Shopping builds a clean, complete feed and keeps it current without you having to think about it. You stay in control of what goes to Google, category by category.

Discover Google Shopping

Comments

Be the first to comment on this article.

Leave a comment

Your rating *

Related products

Loading...
Back to top