When creating a schemaorg plugin for an element containing offers, it is not possible to specify a price value of 0 - it is deleted
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" }
"offers": { "@type": "Offer", "priceCurrency": "USD" }
Joomla 5.1
Php 8.2
Google allow value 0 for show "Price: free" (https://developers.google.com/search/docs/appearance/structured-data/software-app?hl=en)
plugins/system/schemaorg/src/Extension/Schemaorg.php : cleanupSchema
if (empty($value)) { continue; }
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
bug
|