I want customers to be able to buy products with 0 in stock. I can add them to the cart but when i go to the checkout the items disappears.
How do i remove the validaton if a product is out of stock from the checkout page?
Litium version: 6
I want customers to be able to buy products with 0 in stock. I can add them to the cart but when i go to the checkout the items disappears.
How do i remove the validaton if a product is out of stock from the checkout page?
Litium version: 6
I am looking in “ProductsAreInStock.cs” but can’t really figure it out.
The use case is,
A product is out of stock but have a “promised restock date”.
Then it should be avalible for purchase.
Mabye you have done something similar?
The ProductsAreInStock validation both validates and also updates the shoppingcart to remove items that are no longer in stock.
Are you using InventoryItem.NextDeliveryDateTimeUtc
to store promised restock date?
Then you need to get the InventoryItem
from InventoryService
using stockStatus.InventorySystemId
and skip removing items from cart that have a restock date set.
Thanks, I have a date stored in a custom field from the PIM import, so i can use that to skip the removal if the variant have that field with the specific conditions