Conditional Logic for Inventory Widget

  • Profile Image
    sgleola
    Asked on November 07, 2021 at 09:43 AM

    Hi,

    I want to limit the number of stock I have for sale on each day. I only open my orders on Weds, Fris and Suns. I have set up my date picker for only those days in the month.

    I have set up the Inventory widget on my form. However, I am having difficulties on setting up the conditional logic for each of my order days.

    For eg: i have 100 pcs of stock for Weds and 100 pcs of stock for Fri. How do i set up the logic where; once I have an order for 20 pieces for Customer A on Weds, and when Customer B wants to place an order, he/she will see that only 80 pcs of stock are left for Weds or 100 pcs still available for Fri.

  • Profile Image
    Patrick_R
    Answered on November 07, 2021 at 10:40 AM

    Hi there,

    Kindly note that the Inventory widget needs to be manually reset; there is no way to reset it using conditions or date wise.

    To restore the Inventory stock; you need to delete the submissions. As you would delete the submissions, the stock will be restored for the next week.

    I hope I am clear. If you have questions, let us know.

    Thank you!

  • Profile Image
    Sgleola 
    Answered on November 07, 2021 at 10:51 AM

    Hi Patrick,

    So i can't set a set stock limit per day/date?

  • Profile Image
    Patrick_R
    Answered on November 07, 2021 at 11:56 AM

    Hi there,

    > So i can't set a set stock limit per day/date?

    Yes, this can't be set. To release the Inventory slots, you need to delete the associated submissions.

    Or, you can use our Product List widget. With this widget, there won't be any need to delete the submissions to restore the Inventory counter; but, you'll still have to manually increase the stock whenever you want to.

    how-to-enable-and-manage-product-stocks-in-payment-fields

    This is an appropriate solution if you wish to keep your older submissions as well.

    Please give it a try. Let us know if you come across any issues.

    Thank you!