Skip to content
Free: label 30 AI images a month, with a proof record.Create account
EN
AI-Label
Integrations · PrestaShopUpdated 11 October 20265 primary sources

Labelling AI images in PrestaShop

The free widget adds the AI label required by Article 50 of the EU AI Act to marked images in PrestaShop.

In PrestaShop you add the widget as an external script in the theme.yml of a child theme (server: remote) or in a module with registerJavascript().

Mark product images through the image caption, if your theme outputs it as alt text, ending in “(AI-generated)”. PrestaShop does not reliably keep the file name of product images in the image address.

Add the script tag

<script src="https://www.ai-label.app/widget.js" defer></script>

Your changes belong in a child theme, so that updates of the parent theme do not overwrite them. PrestaShop registers external scripts in theme.yml under assets, according to the documentation with server: remote for addresses outside the shop. In theme.yml the loading key is attribute (singular):

assets:
  js:
    all:
      - id: ai-label-widget
        path: https://www.ai-label.app/widget.js
        server: remote
        attribute: defer
        priority: 200

In the child theme, keep the parent theme's assets as described in the child theme guide. In a module, the same entry uses registerJavascript() with the options 'server' => 'remote', 'position' => 'head' and 'attributes' => 'defer'.

Schematic recreation The highlighted line loads the widget. Layout and labels may differ in your version.

Mark images

Which images need a label is your decision, for example with the labelling check. The widget only labels marked images, in three ways that can be combined:

In PrestaShop, mark images through the caption of the product image, which you maintain for each image in the product. Many themes output it as alt text, and then the suffix at the end is enough. The alt attribute in the page source shows whether your theme does this.

The file name does not suit product images, because PrestaShop stores them under its own numbers. The original name therefore usually does not appear in the image address. In child theme templates, set the data-ai-label attribute directly.

Mark an image Highlighted is what the widget recognises.
In your store Only marked images carry the label; an image without a marker stays as it is. A click on the label opens the explanation.

Pitfalls

Limits of the widget

Native app

A dedicated PrestaShop app is planned. There is no date yet.

Get notified when the PrestaShop app launches

We will email you once when the app launches.

Frequently asked questions

Why does the file name not work for product images?

PrestaShop stores product images under its own numbers, so the uploaded name usually does not appear in the image address. Use the caption as alt text.

Does this apply to PrestaShop 8 and 9?

The documentation describes theme.yml and registerJavascript() for version 9. For older themes, check the documentation of your version.

Sources

Para. refers to the paragraph number in the European Commission's guidelines on Article 50, C(2026) 5054.

  1. PrestaShop DevDocs: asset management (9)PrestaShop Project · Platform · 23 Jun 2026
  2. PrestaShop DevDocs: child theme (9)PrestaShop Project · Platform · 21 May 2026
  3. PrestaShop user guide: managing products (8)PrestaShop Project · Platform · 11 Oct 2026
  4. Code of Practice on Transparency of AI-Generated Content (final version)Europäische Kommission · Code of practice · 10 Jun 2026
  5. Regulation (EU) 2024/1689 (AI Act)EUR-Lex · Law · 12 Jul 2024

Label your first AI image

3 images right away, 30 a month with a free account, with a record for every image. On Shopify, the app labels your whole store.