Skip to content
PrestaShop · User manual

Google Marketing Tools for PrestaShop

Version 2.5.4 Product page
Chapter 8

Product feeds

How to create feed profiles, choose where the file is delivered, select and filter products, add custom columns, and generate feeds by hand or by cron job.

Feed profiles

A feed profile is a saved set of feed settings: one channel, one file format, the languages, currency and filters you want. You can have as many profiles as you need, for example one Google Merchant Center feed per language or a separate feed for your best sellers.

The Product feeds tab starts with Reusable feed profiles:

ControlWhat it does
Profile listChoose a saved profile to load it, or New profile to start from empty settings.
New profileClears the form to create a new profile.
DuplicateSaves a copy of the loaded profile with "(copy)" after its name, and loads the copy.
Export profileDownloads the loaded profile as a JSON file, for example to copy it to another shop. FTPS passwords are never included.
Import profileCreates a new profile from a JSON file exported by this module. Automatic FTPS transfer is switched off in the imported profile until you enter the password again.
DeleteDeletes the loaded profile after confirmation. Its generation history is kept.

Duplicate, Export profile and Delete need a saved profile. With an unsaved one, the module answers Save a profile first.

Below the buttons:

SettingWhat it does
Profile nameA name to recognise the profile, from 1 to 128 characters.
ChannelThe channel the feed is made for. The channel decides the structure of the file and which channel-specific options appear. See Feed channels and taxonomy.
File formatXML, CSV or JSON. Choosing a channel selects its own format. Keep it, unless you want a generic JSON file of the same data. An XML channel cannot produce CSV and the reverse.

File configuration

Feed file destination decides where the generated file goes:

OptionWhat happens
Download from my web browser (Recommended for Small to Medium stores)Generate feed downloads the file to your computer once it is ready.
Save to my server (recommended for large stores)The file is also copied to a folder of your shop, so other tools can pick it up there.
Save to an external serverThe file is also sent to another server by FTPS.

Whatever you choose, the latest generated file is always kept privately by the module and served at the profile's feed URL. See "Feed URL and cron job" below.

Save to my server

SettingWhat it does
File pathA folder name relative to the shop's export folder, using letters, numbers, _, - and /, for example google. The file is copied to export/devman-gmt/shop-1/google/ in your shop, where 1 is the shop ID. Leave it empty to keep only the private copy.
File nameThe file name without extension, for example products. Letters, numbers, _ and - only.
File suffixNo suffix (the file will be replaced each time the feed is generated), Export Date (for example products-20260131.xml) or Export Date and time (for example products-20260131-103500.xml).

Save to an external server

SettingWhat it does
Passive modeUse passive FTPS. Enable it if transfers stop while opening the data channel. Active mode is not possible on servers with libcurl 7.87 or 7.88: the transfer stops with Active FTPS requires libcurl 8.0 or newer on this host. Use passive mode there.
FTP - HostThe host name of the remote server, without ftp:// and without a path, for example ftp.example.com. It must be a public address.
FTP - UsernameThe FTPS user.
FTP - PasswordThe FTPS password. It is stored encrypted and never shown again; the field then reads Saved password. Leave it empty to keep the saved one.
FTP - PortDefault 21. Port 990 uses implicit FTPS.
FTP - Path to fileThe remote folder, for example /httpdocs/myfiles/.
FTP - File nameThe remote file name. Leave it empty to use the generated name.

The transfer always uses an encrypted connection (TLS) with a valid certificate. Plain FTP is not supported. If the transfer fails, the module reports FTPS transfer failed. The last successful local feed remains available.

General products feed configuration

SettingWhat it does
LanguageThe language of product names, descriptions and links. You can select several: the module then creates one file per language, each with its own URL.
CurrencyThe currency of the prices in the feed.
Customer group specialsThe customer group whose specific prices are used as sale prices.
Customer group discountsThe customer group whose quantity discounts are used.
StoreThe shop the feed is generated for. It is the shop selected in the back office.
Product IDThe identifier used as the item ID: Product ID, Reference / SKU / Model, UPC, EAN / JAN, ISBN or MPN. Use the same identifier as in the General settings tab, so your tags and your feed match.
Product thumb width / Product thumb heightImage size in pixels. Default 600 × 600. Not used by the Google Merchant Center local feed.
Price with taxPrices include tax. The default follows Include tax in product values in General settings.
Tax to applyProduct tax rules uses each product's own tax rule. Choose a tax rules group to apply it to every product instead.
Show products out of stockIncludes products with a quantity of 0.
Direct purchase link (checkout_link_template)Adds for each product a link that puts it in the cart and opens the checkout.
"Size/Color" compatibilityCreates one feed item per combination instead of one per product.
Product name maskShown with "Size/Color" compatibility. How combination names are written, for example {product_name} - {color}, {size} gives "Shirt - Red, XL".
Get size from / Get color fromThe attribute groups that hold sizes and colours, for example Size and Color.
Discounts like new productsCreates one extra feed item for each quantity discount. A shirt with discounts for 2, 5 and 10 units gives "Shirt (x2)", "Shirt (x5)" and "Shirt (x10)".
Product name maskShown with Discounts like new products. For example {product_name} - x{discount_number} gives "Shirt - x5".

Where values come from

Many channel options read a value from your catalogue. In PrestaShop:

  • from attribute and from filter read a product feature, for example the feature "Material";
  • from option reads a combination attribute group, for example "Size";
  • fixed-value is used when the product has none of these.

Quick product filters

SettingWhat it does
CategoriesOnly products in one of the selected categories. Nothing selected means all categories.
ManufacturersOnly products of the selected brands. Nothing selected means all brands.
Minimum base price / Maximum base pricePrice range, in your default currency before conversion.
Minimum stock quantity / Maximum stock quantityStock range.
Require main imageExcludes products without a cover image.
Require GTINOnly products with an EAN, UPC, JAN, ISBN or MPN.
Added within the last X daysOnly products added recently. Empty or 0 for no limit.
Exclude productsProducts never included. Type at least two letters of a name or reference in the search box under the field and click the product to add its ID.
Top salesExports the best-selling products first. Top sales limit sets how many.
Latest newsExports the newest products by availability date first. Latest news limit sets how many.

Advanced filters

For rules the quick filters do not cover, build conditions under Advanced filters:

  1. Choose AND (every condition must match) or OR (one is enough).
  2. Press Add condition. Choose a product field, an operator and a value.
  3. Press Add group to nest a group with its own AND or OR, for example "brand is X OR brand is Y" inside an AND list.
  4. Press Remove to delete a condition or group.

The operators are eq (equal), neq (not equal), contains, not_contains, gt and gte (greater, or greater or equal), lt and lte (less, or less or equal), empty, not_empty, in and not_in. For in and not_in, separate the values with | .

Custom columns

Custom columns adds your own columns or elements to the feed. Press Add column, type the name the channel expects in Column name and choose the product field that fills it, for example meta_description. Press Remove to delete a column.

Save, preview and generate

ButtonWhat it does
Save profileSaves the profile. Required before generating.
Preview 20 itemsShows the first 20 items with the current settings, without saving and without creating a file. Use it to check the result before generating.
Generate feedCreates the feed file now and shows a summary: products read, filtered and exported, size and duration. With the browser download option, the file is downloaded too.
Feed URL and CRONShows the feed URLs and the cron command of the profile.

Large catalogues can take several minutes. Do not close the page while a feed is being generated. Only one generation of the same profile runs at a time; a second one stops with This feed is already running.

Generation history lists the latest generations with their status, number of items and summary. Press Refresh to update it.

Feed URL and cron job

Feed URL and CRON shows:

  • Open generated feed: the private URL of the latest generated file. With several languages, one link per language follows.
  • The cron command that regenerates this profile.

Give the URL to your channel, for example as a scheduled fetch in Google Merchant Center. The URL contains a secret key: anyone with the URL can read the feed, so only share it with the channel. To change the URL, duplicate the profile and delete the original.

The URL always serves the last successfully generated file. It does not create the file: if nothing has been generated yet, it answers "Feed unavailable."

Scheduling with a cron job

To keep the feed up to date, run the command shown by Feed URL and CRON on a schedule. It looks like this, with your shop path, shop ID and profile ID:

php /path/to/your/shop/modules/googlemarketingtools/cron.php --shop=1 --feed=123
  1. Open the cron jobs section of your hosting control panel.
  2. Add a new job with the command exactly as the module shows it, for example once a day at night.
  3. Run it as the same user that runs your shop, with the PHP version your shop uses.

Add one line per profile. If a generation fails, the last complete file stays available at the URL.

Still need help?

Open a support ticket from your account and our team will look at your store with you.