Skip to content
PrestaShop · User manual

Import & Export Pro for PrestaShop

Version 0.9.2 Product page
Chapter 11

Automation and synchronisation

How to run a profile on a schedule with a cron job, receive email notifications, and disable or empty products that disappear from a supplier feed.

Feed access & automation

These settings are in the Advanced & CRON step. The feed authentication fields at the top are described in Profiles and sources.

SettingWhat it does
Cron schedule (minute hour day month weekday)When the job should run, in the five-field cron format. For example 30 2 * * * runs every day at 02:30. The module checks the format and shows it in the command below.
Stable export filename (without extension)Export profiles. The name of the file written by scheduled exports. Default products. Each run replaces the previous file.
Completion emailAddress that receives a message when a scheduled run finishes.
Error / warning emailOptional address that receives a message when a scheduled run fails or ends with warnings.

Notifications are sent with your shop's own email settings, so check that PrestaShop can send email.

Set up the cron job

When you save the profile, the module shows under the settings above the line to install, for example:

30 2 * * * php /path/to/prestashop/modules/devmanimportexportpro/bin/run-profile.php --shop=1 --profile=42
  1. Copy the line shown for your profile.
  2. Replace /path/to/prestashop with the folder where your shop is installed. Your hosting provider can tell you the full path.
  3. Open the cron jobs section of your hosting control panel and add the line. If the panel asks for the schedule and the command separately, the first five fields are the schedule and the rest is the command.
  4. Run it as the same user that runs your shop, with the PHP version your shop uses.

The module never changes your server's cron table itself, and there is no web address that starts a job: scheduled runs only work from the command line.

What a scheduled run does

  • Imports read the saved URL, remote server or Google spreadsheet. An uploaded file cannot be used on a schedule. The run uses the same licence check, batches and recovery as the back office. If an earlier scheduled import is unfinished, the run continues it with the source and settings it started with.
  • Exports write the file with the Stable export filename in a private folder of the shop that is not reachable from the internet. The command prints the path when it ends. To deliver the file elsewhere, enable Send the completed export to FTP / FTPS / SFTP.
  • Only one transfer runs at a time in a shop. A run that starts while another is active stops with Another transfer is running in this shop.
  • If a source cannot be downloaded or a row was interrupted while being written, the run ends with an error and is recorded in Recent executions. An interrupted row must be reviewed in the back office before retrying.

Scope & complete-source synchronization

Synchronisation acts on products that are in your shop but not in the supplier feed, for example products your supplier has discontinued. It never deletes products.

Save the profile first: the module answers Save the profile before using scoped global pre-filters or missing-product synchronization. otherwise.

SettingWhat it does
Filter rows or whole productsWhether filters exclude a single combination row or the whole product. See Filters and conditions.
Products missing from the sourceLeave unchanged (default), Disable, or Set all variant stock to zero.
Scope for missing products and global pre-filtersWhich products can be considered missing. Products managed by this profile: products this profile has imported successfully before. Selected categories or Selected suppliers: the products of the categories or suppliers chosen below.
Scope categories / suppliers (multiple selection)The categories or suppliers of the scope. Not used with Products managed by this profile.
Minimum source records before synchronizationThe source must contain at least this many records before missing products are processed. Default 1. Set it close to your usual feed size to protect your catalogue from a truncated feed.

When synchronisation runs

Missing products and global pre-filters are processed only at the end, and only if:

  • the complete source was read, is not empty and reached the minimum number of records;
  • no row ended with an error or a warning;
  • at least one product was recognised or written.

A product present in the feed but excluded by a filter is not considered missing. If a file breaks halfway, the rows already processed stay in the history and the final phase is blocked.

Global shop pre-filters

Add global shop pre-filter adds a pre-filter that looks at every product in the scope, including products missing from the feed. Its scope is Scoped shop products, and its action is Skip matching records, Import as inactive or Import with zero stock. A product matched by Skip matching records is protected from the missing-product action. The other actions are applied at the end, under the same conditions as synchronisation.

Example: to protect products you sell from your own stock, add a global pre-filter with Skip matching records and the condition supplier_reference is empty.

Multistore

Each profile belongs to one shop and runs in that shop. Prices, status and translated texts follow PrestaShop's shop scope. Features, attribute definitions, references and other shared parts of the catalogue are shared between shops as PrestaShop does, and shared stock follows its native stock group.

Still need help?

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