torvista / Zen_Cart-Structured_Data

Plugin that adds Schema, Facebook and Twitter structured markup to all pages
GNU General Public License v3.0
9 stars 6 forks source link

product->availability ItemAvailability options #37

Open torvista opened 1 year ago

torvista commented 1 year ago

There are multiple options: https://developers.google.com/search/docs/appearance/structured-data/product

Currently code outputs in stock : https://schema.org/InStock: The item is in stock. out of stock: https://schema.org/PreOrder: The item is available for pre-order.

But...PreOrder needs a date.

....preorder (preorder) or backorder (backorder) to indicate that the product is not currently in stock, but will be in the future. In order to do this, you must also provide an availability date using the availability date [[availability_date]

This could be expanded....but it requires per-site customisation for the out of stock options, per manufacturer/category...