Skip to content

Commit

Permalink
priceCurrency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pitva90 committed Nov 20, 2024
1 parent 15e1a0d commit 35e3f0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
"@type": "Product",
"name": "Firemní licence Windows 11"
},
"price": "2999 CZK"
"price": "2999",
"priceCurrency": "CZK"
},
{
"@type": "Offer",
Expand Down
3 changes: 2 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ function generateOrganizationSchema() {
result += '\n}';

if(offerPriceFix) {
result += ',\n"price": "' + offerPriceFix + ' CZK"';
result += ',\n"priceCurrency": "CZK"';
result += ',\n"price": "' + offerPriceFix + '"';
} else if(offerPriceMin || offerPriceMax) {
result += ',\n"priceSpecification": {\n';
result += '"@type": "PriceSpecification",\n';
Expand Down

0 comments on commit 35e3f0d

Please # to comment.