Skip to content

3.0.0

Latest

Choose a tag to compare

@Patrick-Gugelsberger Patrick-Gugelsberger released this 12 Nov 11:46
5eee696

JTL-Connector for PrestaShop 3.0.0

3.0.0 is the first release for PrestaShop 9. It moves the connector to JTL-Connector Core 6, closes several security issues and stops pushes from adding new manufacturers, customers and specifics again on every sync.

Shops on PrestaShop 8 stay on 2.0.3, the last release for PrestaShop 8.

Requirements

  • PrestaShop 9.0 or later
  • PHP 8.3 or later
  • PHP extension sqlite3

The module cannot be installed on older PrestaShop or PHP versions.

Before you upgrade

  • Upgrade PrestaShop and PHP first. 3.0.0 does not run on PrestaShop 8 or on PHP before 8.3.
  • Connector plugins: the bundled libraries now use the namespace prefix JtlConnectorPrestaVendor\, so they no longer clash with PrestaShop's own Symfony, Monolog and Doctrine. Plugins in plugins/ that type-hint DI\Container, Noodlehaus\ConfigInterface or Symfony's EventDispatcher have to use the prefixed class names, e.g. JtlConnectorPrestaVendor\DI\Container.
  • Connector password: new installs now generate the password with a cryptographically secure random generator. Existing shops keep their password. We recommend setting a new random password (at least 8 characters) on the module's configuration page and in JTL-Wawi.

Upgrading

Upload jtl_connector_prestashop_3.0.0.zip in the back office under Modules → Module Manager → Upload a module. The upgrade:

  • migrates the module's back office menu entry and keeps its permissions,
  • moves the old logs/ directory to var/log,
  • removes the broken manufacturer link that earlier versions saved.

Duplicates from earlier versions

Earlier versions did not link new customers, specifics and specific values after pushing them, and linked new manufacturers with their IDs swapped, so every sync added them again. 3.0.0 links every pushed entity right away, but entities pushed with earlier versions stay unlinked: remove duplicates created that way by hand.

PrestaShop 9.1 and later refuse a second registered customer with the same e-mail address. Pushing such a customer again fails with a message that names the customer already in the shop.

PrestaShop 9

  • The module's back office menu entry opened "page not found" (CO-3743).
  • Fixed a JavaScript error on the configuration page (displayFlags is not defined) (CO-3743).
  • PrestaShop 9 removed the meta keywords of products, categories and manufacturers. The connector no longer maps them, which also stops the PHPufacturers (CO-3743).
  • Fixed the image pull and the statistic (undefined constant _PS_PROD_IMG_DIR_) (CO-3734).

Security

  • Updated to JTL-Connector Core 6 (jtl/connector 6.0.1) (CO-3684):
    • authenticates before resolving the RPC method (CO-3671),
    • rejects sessions that never passed core.connector.auth, so a failed authentication can no longer be replayed as jtlauth (CO-3709),
    • includes the ReDoS fix in symfony/http-foundation (CVE-2026-108082).
  • The connector password is compared in constant time (CO-3468).
  • The connector password is generated with a cryptographically secure random generator instead of the time-based uniqid() (CO-3744).
  • Values from JTL-Wawi (IDs, variation names, language and country ISO codes) and PrestaShop's order reference are escaped in SQL queries (CO-3
  • Fixed a possible SQL injection in the image pull (CO-3664).
  • var/ (sessions, logs), plugins/ and tmp/ are protected against web access, like config/ and db/ (CO-3746).
  • The release ZIP no longer stores every directory as world-writable (0777). Only config/, db/, tmp/ and var/ stay writable (CO-3746).

Fixes

  • Every pushed entity is linked as soon as PrestaShop saved it (CO-3735). If the rest of the push fails, the next sync completes it: a customerne, and a variant image is assigned to its combination.
  • Pushes no longer fail when the ps_eventbus module is active without a linked PrestaShop account, as on a fresh PrestaShop 9.2 (CO-3735).
  • Existing specific values are updated. A specific, specific value or product image deleted in the shop is added and linked again (CO-3735).
  • Deleting a variant deleted the whole base product, and deleting a plain product did nothing (CO-3664).
  • Resetting the links of one entity type no longer deletes the links of all entity types (CO-3747).
  • A variation or variation value name with an apostrophe created another attribute group or attribute on every push (CO-3745).
  • The delivery time is saved on the product (CO-2117).
  • Customer group prices are saved as specific prices (CO-3382).
  • The function attribute main_category_id is imported as an integer instead of free text (CO-3498).
  • Stock levels are imported when importing products from PrestaShop into JTL-Wawi (CO-3385).
  • Downloading the logs on the configuration page no longer leaves an empty temp file behind (CO-3748).

Full changelog: 2.0.3...3.0.0