Recursos · 38

Mantener las variantes de productos consistentes desde la URL hasta el carrito

Alinear opción seleccionada, identidad, imagen, precio, stock, margen y compra.

Actualizado · 7 min

Inventario cibernético ficticio sin personas: tres módulos de red anónimos en maleta de aluminio, etiquetas vacías, caja burdeos y lámpara de latón Ilustración editorial generada con IA

Lo que esta guía ayuda a lograr

  • Identificar cada variante
  • Probar enlaces directos
  • Sincronizar la oferta
  • Manejar desabastecimientos

Comprobación rápida

  • ¿Cada combinación vendida tiene un identificador estable?
  • ¿Un enlace directo preselecciona la opción correcta?
  • ¿Imagen, precio y stock coinciden con el carrito?
  • ¿El margen de beneficio describe la misma oferta?
  • ¿Qué pasa tras un desabastecimiento?

Método paso a paso

  1. 1

    Grupo de modelos y opciones

    Separar los atributos comunes del producto de las diferencias de cada variante. Definir identificadores, dimensiones seleccionables y combinaciones realmente vendidas.

    Entregable: matriz de producto, grupo y variante.

  2. 2

    Probar URL directas

    Abrir cada URL variante sin sesión. Consulta la opción preseleccionada, imagen, precio, disponibilidad y acción de agregar al carrito.

    Entregable: conjunto de enlaces directos verificados.

  3. 3

    Unificar datos mostrados

    Rastrea la fuente de verdad de precio, moneda, stock y promoción. Compare página, carrito, feed y datos estructurados al mismo tiempo.

    Entregable: mapa de flujo de datos y discrepancias en sellos de tiempo.

  4. 4

    Describir el grupo con precisión

    Si utiliza el marcado ProductGroup, asocie variantes e ID según las instrucciones de Google y haga que cada página sea comprensible por sí sola.

    Entregable: ejemplos de marcado marcados.

  5. 5

    Ejercicio de estados inusuales

    Reproducir desabastecimiento, descuento caducado, opción no disponible y devolución desde carrito. Evite mostrar una oferta que no se puede comprar.

    Entregable: casos de transición y arreglos.

  6. 6

    Observar divergencia

    Muestra de variantes publicadas tras cambios de catálogo. Mida el retraso de propagación y asigne correcciones.

    Entregable: tablero de discrepancias.

Indicadores de gestión

IndicadorQué midePrimera acción
IdentidadVariantes con ID y atributos distintivosArreglar el modelo
Enlace directoURLs seleccionando la opción deseadaSelección de reparación
AcuerdoPrecio y stock alineados mediante carritoArreglar flujos de datos
PropagaciónRetraso tras cambios de catálogoReducir copias obsoletas

Errores comunes

  • Una URL que no activa su variante
  • Oferta estructurada diferente al carrito
  • Confundir una elección visual con una variante adquirible
  • Inventario obsoleto en un feed externo

Preguntas frecuentes

¿Cada variante necesita su propia página?

La ​​estructura del sitio varía, pero Google espera que cada variante sea preseleccionable a través de una URL distinta.

¿Puede el marcado corregir datos deficientes del catálogo?

No. Debe describir fielmente la oferta visible y adquirible.

¿Por qué realizar pruebas sin sesión?

Para confirmar un enlace compartido se abre la variante correcta sin depender de una elección guardada localmente.

Identidad de producto: GTIN y variantes

Las notas detalladas de esta edición están disponibles en inglés.

A reliable catalog lets visitors find the same variant on the page, in the feed, in the cart and through support. Start by separating the trade-item identifier, internal reference, variant group and selling terms. A check digit can detect a composition error; alone it cannot resolve identity or offer inconsistencies.

Sources consulted on 23 October 2026. Calculation follows the GS1 modulo-10 algorithm; the 2017 NZ guide is cited only for that algorithm. Illustrative lengths and representations are checked against GS1 guideline 1.1.0 of December 2025. CIE test cases are distinguished from GS1 documentation examples.

GS1 · 2D Barcodes at Retail POS Implementation Guideline · Release 1.1.0 · ratified December 2025 · §4.3 / Table 4-2

Six concepts to separate in the data model

Six concepts to separate in the data model
ConceptCatalog rolePitfall to avoid
GTINIdentifies a trade item under GS1 rules.A coherent check digit attests neither allocation, authenticity nor availability.
SKUInternal reference used to manage a variant in a merchant system.An internal reference is not automatically a GTIN; document its scope and rules.
ProductGroupDescribes common properties and variant grouping in markup.The group does not replace the Product entities needed for variants.
productGroupID / inProductGroupWithIDLinks variants to a consistent group identifier.If both levels supply this identifier, they must match under Google guidance.
ProductDescribes a variant using specific attributes and a distinct identifier.Do not show the group color or size when the page selects another variant.
OfferDescribes selling terms attached to the offered product.Price, currency and availability must match the choice that can actually be bought.

Six variesBy properties recognized in Google documentation

This list records the six properties supported by Google for variesBy on the review date. It is not an inventory of all Schema.org. Describe only axes actually offered by the catalog.

Six variesBy properties recognized in Google documentation
Full propertyAcceptance use
https://schema.org/colorColor genuinely selectable on the page.
https://schema.org/sizeSize consistent with the selection and cart.
https://schema.org/suggestedAgeSuggested age, without inferring a legal permission or regulatory compliance.
https://schema.org/suggestedGenderSuggested gender audience, when relevant to this catalog.
https://schema.org/materialMaterial distinguishing the sold variants.
https://schema.org/patternPattern distinguishing the sold variants.

Google Search Central · Product variant structured data · Updated 2026-09-08 · consulted 2026-10-23

Comprobación local de dígito GTIN

Enter a complete string of 8, 12, 13 or 14 digits 0–9, including its final check digit. Spaces, hyphens, GS1 AI prefixes, compressed barcodes and Digital Link URLs are not accepted. The reader preserves leading zeros and shows the weights applied to every digit before the check digit.

Local length and modulo-10 check only. No GS1 registry query, GTIN allocation, brand identification, barcode reading or offer validation. Fourteen-position representation formats the same identifier; it creates no new GTIN. The result remains an arithmetic check. Multi-digit changes can preserve the same check digit: this check does not detect every input error.

GS1 New Zealand · Bar coding basic user guide · Version 3.1 · September 2017 · printed p.57 / PDF p.61 · check-digit algorithm

Eight documentation examples and acceptance cases

I01 · Eight-digit GS1 example

95200002

Check digit matches the entered digits. Allocation and product not verified.

Illustrative GS1 Table 4-2 example. The last digit is 2; a coherent key describes neither price nor stock.

Received length
8
Weighted sum
38
Reached multiple of 10
40
Expected check digit
2
Received check digit
2
Fourteen-position representation
00000095200002
Calculation on the digits before the check digit
Position from leftDigitWeightProduct
19327
2515
3236
4010
5030
6010
7030

GS1 · 2D Barcodes at Retail POS Implementation Guideline · Release 1.1.0 · ratified December 2025 · §4.3 / Table 4-2

I02 · Twelve digits with a leading zero

012345000058

Check digit matches the entered digits. Allocation and product not verified.

GS1 example: retain the leading zero in the string. Integer conversion would erase part of the received representation.

Received length
12
Weighted sum
42
Reached multiple of 10
50
Expected check digit
8
Received check digit
8
Fourteen-position representation
00012345000058
Calculation on the digits before the check digit
Position from leftDigitWeightProduct
1030
2111
3236
4313
54312
6515
7030
8010
9030
10010
115315

GS1 · 2D Barcodes at Retail POS Implementation Guideline · Release 1.1.0 · ratified December 2025 · §4.3 / Table 4-2

I03 · Thirteen-digit GS1 example

9521101530001

Check digit matches the entered digits. Allocation and product not verified.

Illustrative GS1 example. The expected check digit is 1. Then link the identifier to the variant actually offered.

Received length
13
Weighted sum
49
Reached multiple of 10
50
Expected check digit
1
Received check digit
1
Fourteen-position representation
09521101530001
Calculation on the digits before the check digit
Position from leftDigitWeightProduct
1919
25315
3212
4133
5111
6030
7111
85315
9313
10030
11010
12030

GS1 · 2D Barcodes at Retail POS Implementation Guideline · Release 1.1.0 · ratified December 2025 · §4.3 / Table 4-2

I04 · Same identifier represented in fourteen positions

09521101530001

Check digit matches the entered digits. Allocation and product not verified.

The GS1 table prefixes the previous example with zero. This 14-position representation creates no new trade item and must not be confused with a newly allocated GTIN-14.

Received length
14
Weighted sum
49
Reached multiple of 10
50
Expected check digit
1
Received check digit
1
Fourteen-position representation
09521101530001
Calculation on the digits before the check digit
Position from leftDigitWeightProduct
1030
2919
35315
4212
5133
6111
7030
8111
95315
10313
11030
12010
13030

GS1 · 2D Barcodes at Retail POS Implementation Guideline · Release 1.1.0 · ratified December 2025 · §4.3 / Table 4-2

I05 · Final digit changed for testing

9521101530002

Check digit differs from that expected for the entered digits.

CIE case derived from I03: only the last digit changes from 1 to 2. Arithmetic must flag the mismatch without inventing another product.

Received length
13
Weighted sum
49
Reached multiple of 10
50
Expected check digit
1
Received check digit
2
Calculation on the digits before the check digit
Position from leftDigitWeightProduct
1919
25315
3212
4133
5111
6030
7111
85315
9313
10030
11010
12030
I06 · Length not accepted by the reader

9521101530

Input rejected: 8, 12, 13 or 14 digits 0–9, with no spaces or separators.

Ten digits match none of the four accepted lengths. The reader does not complete a truncated reference.

I07 · Leading space to fix at the source

9521101530001

Input rejected: 8, 12, 13 or 14 digits 0–9, with no spaces or separators.

The reader rejects separators and spaces without silent normalization. Examine the import rule before bulk-changing identifiers.

I08 · Limit of an arithmetic-only check

00000000000000

Check digit matches the entered digits. Allocation and product not verified.

All-zero CIE case: sum and check digit are mathematically coherent. The reader proves no GS1 allocation or product existence; this example is not an identifier to use in a catalog.

Received length
14
Weighted sum
0
Reached multiple of 10
0
Expected check digit
0
Received check digit
0
Fourteen-position representation
00000000000000
Calculation on the digits before the check digit
Position from leftDigitWeightProduct
1030
2010
3030
4010
5030
6010
7030
8010
9030
10010
11030
12010
13030

Direct URL and markup: check the right model

Direct URL and markup: check the right model
ArchitectureGoogle guidanceJourney check
Single page with selectorsOne distinct canonical URL for the ProductGroup; every variant remains preselectable by URL.Open a shared link without remembered choices: correct image, price, availability and the right variant added to cart.
Variants across multiple pagesNo single canonical URL represents the ProductGroup; each page independently defines the entities it describes.Check group identity on each page and references to other variants without relying on a remote page to understand the local entity.
Variant changeSelected content must stay consistent with the variant recoverable through its URL.Check back navigation, reload, copied link and cart; retain an understandable unavailable state after stockout.

Six checks connecting identity and purchase

Six checks connecting identity and purchase
CIE caseEvidence to collectDecision criterion
C-ID · Catalog importRaw value, field type, length and any check-digit error.Preserve the string and zeros; isolate rejected records for source correction without automatically allocating new identifiers.
C-GROUP · Same familyGroup ID and variant identifiers on two pages.Do not mix groups; repeated relationships agree even after partial synchronization.
C-OFFER · Price and currencyPage, markup, feed and cart observed for one variant at one time.Amount and currency remain consistent; discrepancies prevent a consistency conclusion.
C-STOCK · Stockout after selectionStock-change journey and the actual displayed message.An unavailable variant is not silently replaced with another cart reference.
C-CACHE · Shared variantLink opened without a session and after selecting another option.Cache and local state do not substitute another variant’s image, price or identity.
C-KEYBOARD · Variant selectorKeyboard journey, focus and selection announcement.Selection is accessible, useful updates are understandable and focus remains usable after change.

For search and visitor experience, stable entities and understandable offers matter more than accumulating identifiers. Markup must describe real data; this reader grants no Google eligibility and guarantees no rich result. Tie fixes to the source catalog, then retest the direct link and cart.

Provenance, editions and credits

Six-property selection and variant guidance adapted from the cited Google documentation under CC BY 4.0 unless otherwise noted. GS1 is credited for facts and numeric examples; original CIE explanations, acceptance cases and code. No GS1 or Google endorsement is implied. Google · CC BY 4.0

GS1 New Zealand · Bar coding basic user guide · SHA-256: 4c7dcaac8453a588e917d7571c908b7058153c65679f42a8359b1455149da4a2

GS1 · 2D Barcodes at Retail POS Implementation Guideline · SHA-256: aadf1b655dd9866a24befef1486ee50a9bd10f3447bda8c35346eb2cb8844b50

Google Search Central · Product variant structured data · SHA-256: f793d8e2d48afe66ef0cdd796fe2401e05913a21fd219c1931cb7f1ef0dae5fe

Google Developers · Site Policies · Google documentation attribution and licensing

Referencias oficiales

Las referencias respaldan el método. Adapte los controles a su contexto; no constituyen certificación. Los títulos de referencia originales y los documentos fuente pueden estar en otro idioma.

Referencias consultadas el .