Custom CART FUNCTION with/without payment button

Hola @Michael_Reinhart,

At the moment that is not possible since that happens in each user device.

Let me think about it and see if I come with an idea for this.

Thanks for the quick reply @SantiagoPerez ! The reason why it’s important is because I put an inventory incremental reducer when users add items to their cart in order to avoid over selling on items as we have limited stock. When they add an item to their cart it reduces our inventory and I want to make sure there are not stale carts out there tying up inventory. This is probably not the best way to do this so, perhaps there is a better process that would avoid the over selling problem without looking at user specific columns.

@SantiagoPerez I’m realizing now my incremental reducer is not actually working completely because it is at the user level… So I’m going to have to rethink this. Any advice would be much appreciated.

Sorry I tested the idea I pitched you but it does not work.

Another idea is to use a set columns. Let me do some testing and I will let you know.

I have been struggling to have an inventory count with this logic but I think that using some set columns trickery, it could be done but I haven’t had time to test.

The best thing I can think of is to keep the user based counter at the cart level so an individual cannot overbook at that point, but if two users are in the same item at the same time they could still overbook. Once the user finalizes the cart and makes an actual order I can reduce the inventory at the universal level. The second user that was looking at the same item would then get a warning before the are able submits the actual order (or buys in your app) that the inventory level has changed while it was in their cart. It’s a little clunky but the best I can think of given the user visibility challenge.

2 Likes