Schema.org Product with Prices in Multiple Currencies

谁都会走 提交于 2019-12-02 00:18:18

问题


I'm trying to set up Schema.org metadata on a site at the moment, and I'm wondering how (or if) to declare multiple currencies. I have 6 formats of the price - GBP, USD and EUR, all with inc. and ex. VAT prices.

Based on the examples Schema provide on the Product page, there is only ever 1 price - is it possible to specify more, and if so, how does the search engine decide which one to show? If not, I'm assuming I should show GBP inc. VAT - is that correct?


回答1:


It's really the Offer that has a price associated with it. If you look at the second example on the Offer schema page, you'll see multiple offers associated with a single product. They're from different sellers (and don't specify the price in a machine readable way), but you could do the same thing with multiple offers in different currencies from the same seller.

I'm not sure there is a way to express inclusive or exclusive of VAT in the schema, so you may be stuck with just text labels for that.




回答2:


If it’s the same Offer and you allow payment in multiple currencies, you could use multiple priceSpecification properties.

Each property has a PriceSpecification as value, which can have a price (via price property) and a currency (via priceCurrency property).


how does the search engine decide which one to show?

That’s up to the search engines. When you specify the currency, they have all they need to know (if or if not they use this information is a different question, off-topic for SO). Schema.org doesn’t provide a way to mark a "primary" PriceSpecification, and why should they? After all, all your prices are valid.



来源:https://stackoverflow.com/questions/7399128/schema-org-product-with-prices-in-multiple-currencies

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!