Drupal commerce product can specify the current select product variation via URL arguments (?v=123). Unfortunately, when setting up product schema, [commerce_product_variation:*] tokens do not appear to work. Tokens where by the variation is specified (eg. [commerce_product:variations:0:*]) will resolve but do not always reflect the information shown at the time the product is loaded. Is there a way to obtain variation values shown at the time the product page is loaded? Thanks, I appreciate your help.

Comments

bamberjp created an issue. See original summary.

damienmckenna’s picture

Project: Schema.org Metatag » Commerce
Version: 8.x-2.3 » 7.x-2.0

Moving this to the Commerce issue queue as it has nothing to do with Schema Metatag.

damienmckenna’s picture

Project: Commerce » Commerce Core
Version: 7.x-2.0 » 8.x-2.x-dev
Component: Code » Documentation

Wrong project, sorry. This is the right one.

damienmckenna’s picture

Title: Current Product Variation Token Values » Current product variation token values
Category: Bug report » Support request
karlshea’s picture

Status: Active » Closed (duplicate)