{%- comment -%} Spurvik · EU AI Act Art. 50 AI notice · Shopify Online Store 2.0 section (MIT) Source: https://spurvik.com/r/spurvik-shopify-art50.liquid Install (2 minutes, no app): 1. Online Store → Themes → ⋯ → Edit code. 2. Sections → Add a new section → name it "spurvik-art50-notice" (creates sections/spurvik-art50-notice.liquid). 3. Replace the generated contents with this whole file and click Save. 4. Customize → Footer → Add section → "Spurvik Art. 50 notice". Pick the language, notice and position, then Save. What it does: loads https://spurvik.com/badge.js (deferred, Shadow DOM) and shows a visible AI notice in the storefront language. Zero cookies, no browser storage, no network calls beyond loading the script itself. "Language: Auto" maps request.locale.iso_code (fr, de, sv, pt-PT …) to one of the 24 official EU languages and falls back to English. Position defaults to bottom-left so Gorgias, Tidio and Shopify Inbox launchers on the bottom-right stay clear. The white-label option (Spurvik Pro, €19/mo) hides the small "Art. 50 · Spurvik" link. This is a visible, human-readable notice (Art. 50(1)). It is not Art. 50(2) machine-readable marking. {%- endcomment -%} {%- liquid assign spurvik_eu_locales = 'bg,cs,da,de,el,en,es,et,fi,fr,ga,hr,hu,it,lt,lv,mt,nl,pl,pt,ro,sk,sl,sv' | split: ',' assign spurvik_storefront_locale = request.locale.iso_code | downcase | slice: 0, 2 assign spurvik_locale = section.settings.locale | default: 'auto' if spurvik_locale == 'auto' if spurvik_eu_locales contains spurvik_storefront_locale assign spurvik_locale = spurvik_storefront_locale else assign spurvik_locale = 'en' endif endif -%} {%- if section.settings.enabled -%} {%- endif -%} {%- if request.design_mode -%} {%- comment -%} Theme editor only: re-mount the floating badge when this section's settings change. {%- endcomment -%} {%- endif -%} {% schema %} { "name": "Spurvik Art. 50 notice", "tag": "div", "class": "spurvik-art50-section", "limit": 1, "settings": [ { "type": "paragraph", "content": "Shows a visible EU AI Act Art. 50 notice that visitors are talking to an AI system. Loads badge.js from spurvik.com: zero cookies, no storage. [Docs](https://spurvik.com/docs#badge)" }, { "type": "checkbox", "id": "enabled", "label": "Show the AI notice", "default": true }, { "type": "text", "id": "system_name", "label": "AI system name", "info": "Shown after the notice. Leave empty to use your store name.", "placeholder": "Shopping assistant" }, { "type": "select", "id": "notice", "label": "Notice type", "default": "interaction", "options": [ { "value": "interaction", "label": "AI chat or assistant (Art. 50(1))" }, { "value": "generated", "label": "AI-generated content" }, { "value": "deepfake", "label": "Deepfake (Art. 50(4))" }, { "value": "public-interest", "label": "AI text on public-interest matters (Art. 50(4))" }, { "value": "emotion-biometric", "label": "Emotion recognition or biometric categorisation (Art. 50(3))" } ] }, { "type": "select", "id": "locale", "label": "Language", "default": "auto", "info": "Auto follows the storefront language (Shopify Markets) and falls back to English outside the 24 official EU languages.", "options": [ { "value": "auto", "label": "Auto (storefront language)" }, { "value": "bg", "label": "Български (bg)" }, { "value": "cs", "label": "Čeština (cs)" }, { "value": "da", "label": "Dansk (da)" }, { "value": "de", "label": "Deutsch (de)" }, { "value": "el", "label": "Ελληνικά (el)" }, { "value": "en", "label": "English (en)" }, { "value": "es", "label": "Español (es)" }, { "value": "et", "label": "Eesti (et)" }, { "value": "fi", "label": "Suomi (fi)" }, { "value": "fr", "label": "Français (fr)" }, { "value": "ga", "label": "Gaeilge (ga)" }, { "value": "hr", "label": "Hrvatski (hr)" }, { "value": "hu", "label": "Magyar (hu)" }, { "value": "it", "label": "Italiano (it)" }, { "value": "lt", "label": "Lietuvių (lt)" }, { "value": "lv", "label": "Latviešu (lv)" }, { "value": "mt", "label": "Malti (mt)" }, { "value": "nl", "label": "Nederlands (nl)" }, { "value": "pl", "label": "Polski (pl)" }, { "value": "pt", "label": "Português (pt)" }, { "value": "ro", "label": "Română (ro)" }, { "value": "sk", "label": "Slovenčina (sk)" }, { "value": "sl", "label": "Slovenščina (sl)" }, { "value": "sv", "label": "Svenska (sv)" } ] }, { "type": "select", "id": "position", "label": "Position", "default": "bottom-left", "info": "Bottom left keeps Gorgias, Tidio and Shopify Inbox chat launchers (bottom right) uncovered.", "options": [ { "value": "bottom-left", "label": "Bottom left" }, { "value": "bottom-right", "label": "Bottom right" } ] }, { "type": "select", "id": "theme", "label": "Theme", "default": "dark", "options": [ { "value": "dark", "label": "Dark" }, { "value": "light", "label": "Light" }, { "value": "auto", "label": "Auto (visitor's system setting)" } ] }, { "type": "checkbox", "id": "whitelabel", "label": "White-label: hide the Spurvik link", "info": "Spurvik Pro (€19/mo) or Team. [Upgrade](https://console.spurvik.com/signup?plan=pro)", "default": false } ], "presets": [ { "name": "Spurvik Art. 50 notice" } ], "enabled_on": { "templates": ["*"], "groups": ["footer"] } } {% endschema %}