wpcarls
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Local Pickup Time Select] Set maximum order-pickup per interval@tnolte thanks for your quick supply and sorry that I haven’t checked the open tickets before contacting you.
I see, this extension is going to be quite difficult as it reveals many topics that will be affected by it. I thought about that and maybe my idea will help you addressing the problem from an other perspective. If I am totally wrong at this point – please excuse me!
Why don’t implement a “child” storage only for pick up products that refresh itself’s automatically based on the set interval parameters (for example time slots and maximum amount of order per time slot) and reduces the parent storage (WooCommerce Storage settings) accordantly. As the availability of products gets adjusted each time a product is added to the cart, the child storage will be reduced by the amount of the added to cart products which are tagged as “local pickup delivery” in the WC product settings. If the maximum amount of pick ups per interval got reached, the system makes a suggestion based on conditional logic. So instead of an error message like “sold out” it says “the amount of maximum local pick up is reached – please adapt your settings”.