The price token is missing on Metatag

Created on 9 March 2018, over 6 years ago
Updated 19 June 2024, 3 months ago

I installed the Metatag and Schema.org Metatag modules.

https://www.drupal.org/project/schema_metatag

On Schema.org Metatag I need the price of the products, but no tokens are available.

🐛 Bug report
Status

Active

Version

2.0

Component

Price

Created by

🇫🇷France zenimagine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇵🇪Peru krystalcode

    I have created a small module to address this issue Commerce Token , in case it's useful to anybody else. It provides two tokens that can be used to fetch the lowest and highest prices of any of the product's active variations, as calculated for the anonymous users.

    They can be used in the price, lowPrice, highPrice items in schema metatags offers, like so:

    [commerce_product:anonymous_calculated_low_price:number]
    [commerce_product:anonymous_calculated_high_price:number]

Production build 0.71.5 2024