2025-09-25 18:57:52 +03:00
2025-09-25 18:57:52 +03:00
2025-09-23 10:55:57 +03:00
2025-09-23 10:43:11 +03:00
2025-09-23 10:56:53 +03:00

PrestaShop Product Link Checker Module

A PrestaShop module developed by panariga.

PS Version License Author

A simple, secure, and powerful PrestaShop module designed to generate a comprehensive JSON list of all product URLs. It's the perfect tool for developers and QA testers who need to perform automated checks, SEO audits, or verify that all product pages are accessible and return a 200 OK status.

Features

  • JSON Output: Generates a clean, machine-readable JSON array of product links.
  • Includes Combinations: Lists URLs for both base products and all their attribute combinations.
  • Multi-Shop Support: Works seamlessly in a multi-store environment.
  • Multi-Language Support: Generates links for all installed languages.
  • Secure Access: The endpoint is protected by a unique, auto-generated security token to prevent unauthorized access.
  • Filtering: Easily filter the results by a specific shop (plc_id_shop) or language (plc_id_lang).
  • User-Friendly Configuration: The module configuration page displays the security token and provides a list of ready-to-use links for quick access.

Compatibility

  • PrestaShop Version: 1.7.6 or newer.

Installation

You can install the module using one of two methods:

  1. Download the latest release as a .zip file from the repository.
  2. Log in to your PrestaShop Back Office.
  3. Navigate to Modules > Module Manager.
  4. Click the "Upload a module" button.
  5. Drag and drop the downloaded .zip file into the upload area.
  6. The module will be installed automatically. Find "Product Link Checker" in your module list and click Install.

Method 2: Manual Installation

  1. Download and unzip the latest release.
  2. Rename the folder to productlinkchecker.
  3. Upload the productlinkchecker folder to the modules/ directory of your PrestaShop installation.
  4. In your PrestaShop Back Office, navigate to Modules > Module Manager.
  5. Find "Product Link Checker" in your module list and click Install.

Configuration

After installing the module, click the "Configure" button.

The configuration page provides two key pieces of information:

  1. Your Security Token: A unique 32-character string that must be included in every request to the generator endpoint.
  2. Available URLs: A list of pre-built URLs for all shops and languages, making it easy to copy the link you need for your tests.

(Optional: Replace this with a link to a screenshot of your module's configuration page)

Usage: The generate Endpoint

The module exposes a single front controller endpoint to generate the links.

Base URL: https://your-prestashop-url/module/productlinkchecker/generate

Parameters

  • token (string, required): Your unique security token found on the module's configuration page.
  • plc_id_shop (integer, optional): The ID of a specific shop. If omitted, the module will scan all active shops.
  • plc_id_lang (integer, optional): The ID of a specific language. If omitted, the module will scan all active languages for the selected shop(s).

Examples

https://your-prestashop-url/module/productlinkchecker/generate?token=YOUR_SECRET_TOKEN
https://your-prestashop-url/module/productlinkchecker/generate?token=YOUR_SECRET_TOKEN&plc_id_shop=1
https://your-prestashop-url/module/productlinkchecker/generate?token=YOUR_SECRET_TOKEN&plc_id_shop=1&plc_id_lang=2

Example Output

The endpoint will return a JSON array of strings, where each string is a complete, friendly URL.

[
  "https://your-prestashop-url/en/men/1-hummingbird-printed-t-shirt.html",
  "https://your-prestashop-url/en/men/1-1-hummingbird-printed-t-shirt.html#/1-size-s/8-color-white",
  "https://your-prestashop-url/en/men/1-2-hummingbird-printed-t-shirt.html#/2-size-m/11-color-black",
  "https://your-prestashop-url/fr/hommes/1-tee-shirt-imprime-colibri.html",
  "https://your-prestashop-url/fr/hommes/1-1-tee-shirt-imprime-colibri.html#/1-taille-s/8-couleur-blanc",
  "https://your-prestashop-url/fr/hommes/1-2-tee-shirt-imprime-colibri.html#/2-taille-m/11-couleur-noir",
  ...
]

⚠️ Security

The security token is the only thing preventing public access to this endpoint. Keep it secret. If you believe your token has been compromised, you can uninstall and reinstall the module to generate a new one.

License

This module is released under the Academic Free License (AFL 3.0).

Author

Developed by panariga.

Description
No description provided
Readme 67 KiB
Languages
Smarty 50.5%
PHP 49.5%