Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ItemAvailability: Comming, NotInStockYet #3472

Open
JendaPerl opened this issue Feb 28, 2024 · 5 comments
Open

ItemAvailability: Comming, NotInStockYet #3472

JendaPerl opened this issue Feb 28, 2024 · 5 comments

Comments

@JendaPerl
Copy link

While there are three options for "you can't order this anymore" (and frankly I have no idea what's supposed to be the difference between Discontinued, OutOfStock and SoldOut) there is no option for "We are getting this ready, you can't order this YET, but you will be able to soon".
I mean, seriously, if you are selling, say, books, you do know the book is coming, you know when it is coming, you already know the price, but you can't start selling it before the official date. What are we supposed mark that?

@philbarker
Copy link
Contributor

@jvandriel
Copy link

jvandriel commented Mar 3, 2024

Plus there's also the option to express when an Offer becomes valid via validFrom.

@kopojken
Copy link

https://schema.org/PreOrder:
"Indicates that the item is available for pre-order."

Not all coming products are available for pre-order. How about adding "notYetPublished" or "notYetOrderable"?

@jvandriel
Copy link

jvandriel commented Mar 12, 2024

What I was trying to point out is that IMHO there's no need for a new enumeration to handle the situation you are describing @kopojken.

The following markup expresses the purpose of the Offer and when it becomes available, without having to specify any itemAvailability.

"offers": {
  "@type": "Offer",
  "url": "https://example.com/products/some-product/variant-1/,
  "businessFunction": "http://purl.org/goodrelations/v1#Sell",
  "itemCondition": "https://schema.org/NewCondition",
  "price": 49.95,
  "priceCurrency": "USD",
  "validFrom": "2024-04-06T12:00:00+00:00"
}

@mfhepp
Copy link
Contributor

mfhepp commented Mar 12, 2024

You do not even need to attach a schema:Offer to a product entity that cannot/cannot yet be ordered. An order, in the original GoodRelations sense is the promise to transfer a bundle of rights (the business function) on something (a product, service, or bundle) for a compensation (price specification or other objects in the case of barter trade).

So when you are not yet ready to say if and when something can be ordered, you can either omit the order entity completely or leave it incomplete; e.g. by using a validFrom statement that is in the future and omitting all properties that are still unknown.

After all, we have a (pragmatic/diluted) open-world assumption in schema.org markup.

Before the flames come in re „but Google is nor showing xyz then“: That is something to be adressed with the consumers of the data; schema.org allows expressing a wide range of scenarios and a wide range of specificity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants