NO BUG: Rating element - html will be rendered for the schema price

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.

Instead of
“price”: “19.90”,

Bricks puts html code in the price…

{
  "@context": "https://schema.org",
  "@type": "Review",
  "itemReviewed": {
    "@type": "Product",
    "name": "CBD Öl 10%",
    "price": "<del aria-hidden=\"true\"><span class=\"woocommerce-Price-amount amount\">39,90&nbsp;<span class=\"woocommerce-Price-currencySymbol\">&euro;</span></span></del> <span class=\"screen-reader-text\">Ursprünglicher Preis war: 39,90&nbsp;&euro;</span><ins aria-hidden=\"true\"><span class=\"woocommerce-Price-amount amount\">32,90&nbsp;<span class=\"woocommerce-Price-currencySymbol\">&euro;</span></span></ins><span class=\"screen-reader-text\">Aktueller Preis ist: 32,90&nbsp;&euro;.</span>",
    "reviewRating": {
      "@type": "Rating",
      "ratingValue": "0.0",
      "bestRating": "5"
    }
  }
}

image

Hi @Mike8040,

I see that for dynamic tag you used {woo_product_price}, please try to use {woo_product_price:value}, so with :value filter. That should give you price (number) only.

Let me know if it works.
Matej

1 Like

Great. Thanks that was it. I was aware of the :link attribute but didn’t know about value

1 Like