glot para WooCommerce
E-commerce · Plugin
glot se instala en WooCommerce como plugin. Los pasos siguientes lo configuran.
Los pasos de la plataforma están en inglés, con los nombres de menú de la interfaz de WooCommerce.
Instalar el plugin de glot
- 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+.
- In WordPress, go to Plugins → Add New → Upload Plugin, upload glot.zip and activate it.
- 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.
- 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.
- 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.
- 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.
- 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.
Alternativa: la etiqueta universal
Para traducir en el navegador lo que la integración de WooCommerce no cubre, añade la etiqueta universal.
- En glot, crea un proyecto y añade tus idiomas.
- Abre glot Edge → Etiqueta web y escribe la dirección de tu sitio: glot lo traduce y te muestra una vista previa. Una vez pegada la etiqueta, comprueba allí la instalación y actívala.
- Copia tu etiqueta desde esa pestaña: ya incluye tu proyecto y su clave pública (data-key). La etiqueta de abajo muestra su forma.
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>- Do not edit the parent theme's files: theme updates overwrite them.
- Either install a plugin that lets you add custom code (for example Code Snippets), or create a child theme.
- In the child theme's functions.php (or a new snippet), hook a function on wp_head that echoes the glot tag.
- Save or activate the snippet and clear any caching plugin.
- Open your store in a private window and check that the language menu appears.
Planes necesarios
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.
En glot, consulta los precios para ver qué incluye cada plan. glot Edge (URL traducidas) forma parte del plan Growth, con una prueba limitada en Pro.
URL traducidas para los buscadores
Para páginas traducidas que los buscadores indexen sin ejecutar JavaScript, coloca glot Edge en un subdominio de tu dominio (es.example.com) con dos registros DNS:
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.
Cómo funciona glot EdgePreguntas
- ¿glot es socio de WooCommerce?
- No. glot es independiente y no está afiliado a WooCommerce ni respaldado por WooCommerce. Esta guía solo usa las funciones estándar de WooCommerce.
- ¿glot modifica mi contenido de WooCommerce?
- Tu contenido de origen queda igual. El plugin traduce las páginas en el navegador y, si lo conectas, escribe las traducciones en campos de idioma que revisas antes de publicar.
- ¿Los buscadores indexarán mis traducciones?
- No solo con la etiqueta: traduce en el navegador, así que los buscadores indexan sobre todo tu idioma de origen. Las páginas traducidas con URL propias requieren glot Edge o una plataforma que publique cada idioma en su propia URL.
- 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.
Documentación oficial de WooCommerce
Traduce tu sitio de WooCommerce
Crea un proyecto, elige tus idiomas y sigue los pasos anteriores.
Más integraciones: E-commerce
WooCommerce es una marca de su propietario. glot no está afiliado a WooCommerce.