Zum Inhalt springen

glot für WooCommerce

E-Commerce · Plugin

glot wird in WooCommerce als Plugin installiert. Die Schritte unten richten es ein.

Die Schritte der Plattform sind auf Englisch, mit den Menünamen der Oberfläche von WooCommerce.

Das glot-Plugin installieren

  1. Download glot.zip (built from integrations/wordpress-plugin in the glot repository; it isn't on WordPress.org yet). It needs WordPress 6.1+ and PHP 7.4+.
  2. In WordPress, go to Plugins → Add New → Upload Plugin, upload glot.zip and activate it.
  3. Open Settings → glot and enter your project slug, your public key (pk_…, never a secret glot_… key), the source language and your languages, then save. The plugin adds glot.js to every front-end page.
  4. Optional: place the language switcher with the [glot_switcher] shortcode, the glot language switcher widget or block, or the Elementor widget; otherwise it sits in the corner you picked.
  5. WooCommerce: cart, checkout and account forms are never read; customer details on order and address pages are marked so they are never translated or reported.
  6. Optional: for translated URLs, set up glot Edge (subdomain or subdirectory) and choose it as the SEO mode, so the plugin adds hreflang links to the Edge pages.
  7. Optional: click Connect to glot with a glot API token to link the WordPress connector, so translations are also written into Polylang Pro or WPML posts.
Vollständige Connector-Dokumentation

Alternative: das universelle Tag

Um im Browser zu übersetzen, was die WooCommerce-Integration nicht abdeckt, fügen Sie stattdessen das universelle Tag hinzu.

  1. Erstellen Sie in glot ein Projekt und fügen Sie Ihre Sprachen hinzu.
  2. Öffnen Sie glot Edge → Website-Tag und geben Sie die Adresse Ihrer Website ein: glot übersetzt sie und zeigt Ihnen eine Vorschau. Ist das Tag eingefügt, prüfen Sie dort die Installation und schalten Sie das Tag ein.
  3. Kopieren Sie Ihr Tag aus diesem Tab: Es enthält bereits Ihr Projekt und seinen öffentlichen Schlüssel (data-key). Das Tag unten zeigt seine Form.
glot-Tag
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>
  1. Do not edit the parent theme's files: theme updates overwrite them.
  2. Either install a plugin that lets you add custom code (for example Code Snippets), or create a child theme.
  3. In the child theme's functions.php (or a new snippet), hook a function on wp_head that echoes the glot tag.
  4. Save or activate the snippet and clear any caching plugin.
  5. Open your store in a private window and check that the language menu appears.
Anleitung zum Website-Tag

Erforderliche Tarife

WooCommerce is self-hosted and free; any WordPress install where you can add plugins or edit a child theme can add the tag. On managed WordPress.com, plugins require a plan that allows them.

Was jeder glot-Tarif enthält, sehen Sie unter Preise. glot Edge (übersetzte URLs) ist Teil des Growth-Tarifs, mit einer begrenzten Testphase in Pro.

Übersetzte URLs für Suchmaschinen

Für übersetzte Seiten, die Suchmaschinen ohne JavaScript indexieren, setzen Sie glot Edge auf eine Subdomain Ihrer Domain (es.example.com), mit zwei DNS-Einträgen:

DNS-Einträge (das TXT-Token steht in glot Edge → Einrichtung)
es.example.com.        CNAME  edge.glotlang.com.
_glot.es.example.com.  TXT    "<token shown in the dashboard>"

Add the CNAME and TXT wherever your domain's DNS is hosted (registrar, hosting provider or DNS service). You control your own domain on a self-hosted store.

So funktioniert glot Edge

Fragen

Ist glot ein Partner von WooCommerce?
Nein. glot ist unabhängig, weder mit WooCommerce verbunden noch von WooCommerce empfohlen. Diese Anleitung nutzt nur Standardfunktionen von WooCommerce.
Ändert glot meine Inhalte in WooCommerce?
Ihre Ausgangsinhalte bleiben unverändert. Das Plugin übersetzt Seiten im Browser und schreibt, wenn Sie es verbinden, Übersetzungen in Sprachfelder, die Sie vor dem Veröffentlichen prüfen.
Indexieren Suchmaschinen meine Übersetzungen?
Mit dem Tag allein kaum: Es übersetzt im Browser, Suchmaschinen indexieren also vor allem Ihre Ausgangssprache. Übersetzte Seiten mit eigenen URLs brauchen glot Edge oder eine Plattform, die jede Sprache unter einer eigenen URL veröffentlicht.
Should I paste the tag in the theme editor's header.php?
Not in the parent theme: an update erases it. WooCommerce's docs recommend a child theme's functions.php or a code-snippets plugin.
Does it work on the block checkout and cart?
The tag runs on every page that prints wp_head, including cart and checkout pages of standard themes.

Offizielle Dokumentation von WooCommerce

Übersetzen Sie Ihre WooCommerce-Website

Erstellen Sie ein Projekt, wählen Sie Ihre Sprachen und folgen Sie den Schritten oben.

WooCommerce ist eine Marke ihres Inhabers. glot ist nicht mit WooCommerce verbunden.