You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve markup for e-commerce shipping options #2506
(this is a proposal from Google based on our experience using schema.org Product markup)
Motivation: When users search for and browse different products across the web, they often want to understand what kinds of shipping options might be available to them. It would be useful for Schema.org to have expressivity that allowed various merchants to describe their shipping policies, including cost and estimated delivery times according to delivery location. As always there are various levels of detail that might be made explicit.
Our suggestion is to start with something like the following:
Main concepts:
Shipping policy URL
For each product offer:
Shipping cost
Estimated delivery time [num days handling, num days shipping]
Delivery location [Country, state, zip code, etc]
Link to shipping policy URL
Plus these as "useful to have":
Modeled on your Shipping Policy page:
Do you offer Free Shipping above a basket threshold? [ie “Free shipping for orders above $35”]
Offers that qualify for your Free Shipping threshold could reference this through the shipping policy URL link
This initial version may not support dynamic pricing based on other dimensions, such as the item price or weight or dynamic carrier rates. These are consequently difficult here because of the vast number of potential edge cases, but more potentially could be supported in the future.
Having 'shipping location' as a concept might also be useful. An understanding of where items are being shipped from is often an influence on purchasing decisions.
Richard,
Do you mean “made in Chile” and shipped from a warehouse in Atlanta? Where
something is shipping from is not always the same as where it comes from.
Your comment at first read seems to conflate these concepts. Is that your
intent?
Example scenario 1:
Search for a product (in UK) receive links to purchasing options from a supplier in Germany, a supplier in London, and Amazon.com (shipped from USA). Lowest price Amazon.com, highest price from London UK supplier. If in a hurry purchase from London, if relaxed about delivery time would use Amazon.com.
Example 2:
Search for a product on eBay. Get several 'Buy It Now' options at differing prices from suppliers in several countries (UK, France, Germany, Singapore, China) some from their country of origin, some from local warehousing in my country.
In both cases knowing the location from whence the product is shipped would be helpful in deciding who to purchase from, and the risk to a safe and timely arrival.
@RichardWallis@HughP - thanks. We may come back to these but my colleagues tell me there are some complexities. We can revisit "ships from" later if there are use cases.
I do not understand the utility of businessDays having a range of OpeningHoursSpecification. What is the use case of being able to say (to paraphrase the data) "WRT shipping delivery time, this business is open from Monday to Friday, 8:00 AM to 5:00 PM"? What useful calculation, or even useful information, does this provide (especially as using this to calculate days the business isn't_ open requires parsing OpeningHoursSpecification, as the "place is open if the opens property is specified, and closed otherwise")?
Additionally (and I think relevant to the point above) this needs examples, especially as understanding how to mark up QuantitativeValue is important here, and that type lacks examples too.
Having 'shipping location' as a concept might also be useful. An understanding of where items are being shipped from is often an influence on purchasing decisions.
I don't get at all why we would mark up shipping destination at all? If a company sells internationally, the options could be endless! Google can access other linked data to calculate shipping based on browser location and shipper ( USPS, UPS, FedEx, etc all ). I don't see examples that require a certain amount to be spent to qualify for free shipping, either.
@danbri Not sure if this is the right place to ask and suggest, but it seems like it. If I got this right the minimum for ShippingDeliveryTime is 1 day. No way to specify same day delivery for local delivery with average delivery time for a given Product, right? We could specify 0 days but I am not sure how that will be handled and some categories like food delivery usually is faster than retail delivery and I see no way to specify this food product = 40min and retail product = 1hour30min. Is this planned as the hyper local delivery business is growing and becoming more popular?
Suggestion if introducing minutes isn't feasible would be a new tag for samedaydelivery:
Hello,
i currently try to use structured data in json format for google merchant center for a german merchant that provides local delivery service to a list of postalcodes (30-50 areas) with identical costs and times. In this case it is not possible to use the range attribute since the postalcodes can be arbitrary like:
Question
Is it possible to define a list of postalcodes instead of a range?
From the documentation its not clear what the cardinality is for each attribute like for "postalcode".
Or is the example in this link valid having multiple ranges where postalcodeEnd is optional? If its optional we could simply define "postalcodeStart : "57801" and omit end.
Thanks for your reply and i think i understand the concept to reference a @graph by @id. But is this a wordpress or woocommerce related thing or is it from schema.org? We develop our own shop system.
Google and schema.org testing tools dont complain if attribute postalcode is an array it seems. I will try this out in production and see if google merchant center will respect it.
I went with the array solution but have not yet seen confirmation that it is accepted by Google. They do provide examples of addressRegion as an array.
Thanks for your reply and i think i understand the concept to reference a @graph by @id. But is this a wordpress or woocommerce related thing or is it from schema.org? We develop our own shop system.
It's a Schema markup thing - here's a pretty extensive example from one of our test sites. :)
I tested with postalcode as an array and it seems google identifies it transforming to individual shipping entries in the below screenshot. Further google flagged this item with a warning that there are too many shipping entries while i did not found any restriction in the google documentation: https://support.google.com/merchants/answer/6324484
Maybe i will remove the shipping data markup and keep it settings in the merchant center.
@jsmoriss I am impressed with the complexity of your example. I have a question that your example does not cover, and wonder if you have an example that helps me get my product correctly defined. We have a business that can only ship certain products within California. I am trying to create a shippingDetails/shippingDestination that defines the region where doesNotShip is true (all states except California), and a region where doesNotShip is false.
I tried using an array of shippingDetails with defined regions within it. Your example shows me where my DefinedRegions are incorrectly defined. I'm stuck on whether or not I need multiple offers, each covering the ship/does not ship, or an array of shippingDetails.
Activity
danbri commentedon Mar 24, 2020
For additional context on what we've done at Google so far:
RichardWallis commentedon Mar 24, 2020
Having 'shipping location' as a concept might also be useful. An understanding of where items are being shipped from is often an influence on purchasing decisions.
HughP commentedon Mar 24, 2020
RichardWallis commentedon Mar 24, 2020
I mean shipped from a supplier somewhere.
Example scenario 1:
Search for a product (in UK) receive links to purchasing options from a supplier in Germany, a supplier in London, and Amazon.com (shipped from USA). Lowest price Amazon.com, highest price from London UK supplier. If in a hurry purchase from London, if relaxed about delivery time would use Amazon.com.
Example 2:
Search for a product on eBay. Get several 'Buy It Now' options at differing prices from suppliers in several countries (UK, France, Germany, Singapore, China) some from their country of origin, some from local warehousing in my country.
In both cases knowing the location from whence the product is shipped would be helpful in deciding who to purchase from, and the risk to a safe and timely arrival.
danbri commentedon Mar 31, 2020
@RichardWallis @HughP - thanks. We may come back to these but my colleagues tell me there are some complexities. We can revisit "ships from" later if there are use cases.
First cut at #2506 shipping for Pending
Aaranged commentedon Apr 28, 2020
I do not understand the utility of
businessDayshaving a range ofOpeningHoursSpecification. What is the use case of being able to say (to paraphrase the data) "WRT shipping delivery time, this business is open from Monday to Friday, 8:00 AM to 5:00 PM"? What useful calculation, or even useful information, does this provide (especially as using this to calculate days the business isn't_ open requires parsingOpeningHoursSpecification, as the "place is open if the opens property is specified, and closed otherwise")?Additionally (and I think relevant to the point above) this needs examples, especially as understanding how to mark up
QuantitativeValueis important here, and that type lacks examples too.First cut at a definition adapting Collection for Products
github-actions commentedon Jul 15, 2020
Stale issue message
jsmoriss commentedon Oct 1, 2020
Following the source link (#2506) from https://schema.org/PostalCodeRangeSpecification:
https://schema.org/PostalCodeRangeSpecification appears to be US-centric. Many countries use alpha-numeric postal codes. Would the following be considered OK for postal codes H2* and V2X 6E3 to V2X 6S4? Is "postalCodeEnd" optional? Logically, it should be to allow for everything that matches "postalCodeBegin"...
inetbiz commentedon Jan 23, 2021
@danbri Can the product schema examples be updated to reflect changes?
inetbiz commentedon Jan 23, 2021
I don't get at all why we would mark up shipping destination at all? If a company sells internationally, the options could be endless! Google can access other linked data to calculate shipping based on browser location and shipper ( USPS, UPS, FedEx, etc all ). I don't see examples that require a certain amount to be spent to qualify for free shipping, either.
rraue commentedon Jun 9, 2022
@danbri Not sure if this is the right place to ask and suggest, but it seems like it. If I got this right the minimum for ShippingDeliveryTime is 1 day. No way to specify same day delivery for local delivery with average delivery time for a given Product, right? We could specify 0 days but I am not sure how that will be handled and some categories like food delivery usually is faster than retail delivery and I see no way to specify this food product = 40min and retail product = 1hour30min. Is this planned as the hyper local delivery business is growing and becoming more popular?
Suggestion if introducing minutes isn't feasible would be a new tag for samedaydelivery:
djmj commentedon Apr 3, 2024
List of postalcodes
Hello,
i currently try to use structured data in json format for google merchant center for a german merchant that provides local delivery service to a list of postalcodes (30-50 areas) with identical costs and times. In this case it is not possible to use the range attribute since the postalcodes can be arbitrary like:
Question
Is it possible to define a list of postalcodes instead of a range?
From the documentation its not clear what the cardinality is for each attribute like for "postalcode".
https://schema.org/DefinedRegion
Something like:
"postalcode" : ["57801", "57803" , "57799", "54987"]Or is the example in this link valid having multiple ranges where postalcodeEnd is optional? If its optional we could simply define
"postalcodeStart : "57801" and omit end.#2730
Workaround
Else it seems we have to repeat the whole OfferShippingDetails for each postalcode which increases the json size massive.
jsmoriss commentedon Apr 3, 2024
FYI, you should use an @graph block, and use Schema type blocks within the @graph with unique @id's. Then each property that needs to be repeated, just use the @id to refer to the appropriate block, that way you don't repeat big blocks of data. In case you use WordPress and WooCommerce, have a look at the WPSSO plugin (and its WCSDT add-on https://wordpress.org/plugins/wpsso-wc-shipping-delivery-time/), which optimizes the @graph markup in this way.
js.
djmj commentedon Apr 3, 2024
@jsmoriss
Thanks for your reply and i think i understand the concept to reference a @graph by @id. But is this a wordpress or woocommerce related thing or is it from schema.org? We develop our own shop system.
Quick test: https://search.google.com/test/rich-results/result?id=1tRokUQnsIScCDCIkUzmgw
Google and schema.org testing tools dont complain if attribute postalcode is an array it seems. I will try this out in production and see if google merchant center will respect it.
Tiggerito commentedon Apr 3, 2024
I went with the array solution but have not yet seen confirmation that it is accepted by Google. They do provide examples of addressRegion as an array.
I also have addressCountry as an array.
It would be nice if this is clarified.
jsmoriss commentedon Apr 4, 2024
It's a Schema markup thing - here's a pretty extensive example from one of our test sites. :)
djmj commentedon Apr 8, 2024
@jsmoriss Thats a great example and interesting use case with the references using @id.
@Tiggerito
I tested with
postalcodeas an array and it seems google identifies it transforming to individual shipping entries in the below screenshot. Further google flagged this item with a warning that there are too many shipping entries while i did not found any restriction in the google documentation: https://support.google.com/merchants/answer/6324484Maybe i will remove the shipping data markup and keep it settings in the merchant center.
Tiggerito commentedon Apr 9, 2024
@djmj I believe the merchant centre takes priority. It may be worth keeping it in for other possible consumers.
poochkingdom commentedon Jun 28, 2024
@jsmoriss I am impressed with the complexity of your example. I have a question that your example does not cover, and wonder if you have an example that helps me get my product correctly defined. We have a business that can only ship certain products within California. I am trying to create a shippingDetails/shippingDestination that defines the region where doesNotShip is true (all states except California), and a region where doesNotShip is false.
I tried using an array of shippingDetails with defined regions within it. Your example shows me where my DefinedRegions are incorrectly defined. I'm stuck on whether or not I need multiple offers, each covering the ship/does not ship, or an array of shippingDetails.
Thanks in advance.