Closed vseager closed 1 year ago
Currently the schema only allows a products to be in stock or out of stock.
Include logic to check if a product is backorderable and set stock status to BackOrder:
BackOrder
https://schema.org/ItemAvailability
https://github.com/outeredge/magento-structured-data-module/blob/master/Model/Type/Product.php#L305
Possible logic:
$backorderStatus = $product->getExtensionAttributes()->getStockItem()->getBackorders();
Currently the schema only allows a products to be in stock or out of stock.
Include logic to check if a product is backorderable and set stock status to
BackOrder
:https://schema.org/ItemAvailability
https://github.com/outeredge/magento-structured-data-module/blob/master/Model/Type/Product.php#L305
Possible logic: