I’m building websites for restaurants, and part of doing this is enabling the user to select choices in their orders. I can’t seem to figure how to append a selected value to an order that the user made, and as I was testing purchasing using the same item, I was getting that the item is no longer available (strange?).
I would appreciate any guidance since a bunch of restaurants are waiting for me to build them their websites using Glide!
The buy button, firstly, will only accept Sheet columns for now, so it’s a bit complex and I honestly think it needs to support Glide columns.
For your question, not sure why the buy button wasn’t showing, but I think you can concatenate the choice info into the SKU name. That’s the only way you can pass info to the Sales.
But the problem here is that users can overlap each other if they order at the same time.
When you have a choice to write to a column in the Sheet, all users can act on that choice and make the choice of another user being wiped out.
Glide has a built-in column option called User Specific, but it lives in Glide. It allows users to act on the same cell’s value but that value is not accessible by the Buy Button as of now.
It also works with public apps. Until Glide can use user-specific columns in Buy Buttons, I think your best bet is use an alternative method of payment rather than the built-in Stripe.
The best flow I can think of is use user-specific columns to catch the choices, then get them via a form to the Sheet that will act as your Sales sheet.
Only show them the form when they have paid for the order, but you must have a method to verify that they have already paid before showing them the form button.