Carrinho/Cart Por favor alguém pode me ajudar?

Estou tendo problemas no meu carrinho de compras, quando 2 clientes ou mais fazem pedidos simultâneos, a tela do carrinho entra em conflito com os outros clientes.

Preciso resolver este problema urgente!

CLIENTE 01

CLIENTE 02

Link https://multload-nona.glideapp.io

Agradeço desde já!

Sim, obrigado já estou usando.

If you’re setting the cart up correctly with user-specific columns, there should be no way for a user to access another user’s data.

Can you go into more details on how you’re setting up everything?

Então, funciona da seguinte forma.

Quando o cliente clica em adicionar ao carrinho na tela do produto, o botão adiciona uma linha na tabela CART com as informações do produto. Porém observei que quando algum cliente faz isso, vem uma linha fantasma na tabela e essa linha aparece em outro cliente. Vejo que não existe um filtro. Se quiser posso disponibilizar o template para a comunidade conseguir visualizar melhor o que estou querendo dizer.

So where do you have user-specific columns then? Is this table the CART table or not?

https://go.glideapps.com/support/dfe0583b-215c-46b9-b9a2-985adf8b1958

That link is only usable for support team members. We’re just fellow users, so that link is not accessible to us.

Desculpe, vou habilitar cópia do aplicativo.

Tente acessar por favor
https://multload-nona.glideapp.io

Since this is in a language that is not native to most of us, maybe some initial explanation on what table store what type of data would be beneficial.

Or would need @Lucas_Pires’ help here.

2 Likes

You should not add new rows to your Cart table - it should only ever contain one row, with all columns being User Specific.

Change the action so that instead of adding a row, it sets a Unique Value in a user specific column, and use that value to identify that user.

1 Like

Ah sim você está certo, eu deveria usar apenas uma linha. O sistema é para uma pizzaria delivery onde o pedido será enviado para o whatsapp da pizzaria. Porém o problema é que cada pizza tem ingredientes extras, borda e algumas configurações únicas e não consigo relacionar todas elas em uma única linha. Será que existe uma solução?

Tipo assim

Pedido do cliente é

1 PIZZA COM BORDA DE CHEDDAR E EXTRA DE CATUPIRY
+
1 PIZZA 2 SABORES SENDO METADE SABOR1 E METADE SABOR2 (Essa em específico é criada em uma única linha na tabela “Pizza sabores”

Será que dá pra entender o que estou dizendo? Senão posso ir tentando explicar de forma mais simples.

O Lucas é um gênio, já assisti diversos vídeos no youtube só não encontrei algo relacionado ao problema que estou tendo.

1 Like

Assuming that you have a separate ingredients/menu table, you could add a User Specific column to that table to hold a “UserID”. When a user selects an item, write their “UserID” (the Unique ID that’s set in the Cart table) into that column. You can then use Relations and Joined Lists to build up an order summary in the Cart table.

1 Like

Eu conseguiria então por exemplo, fazer um botão na primeira página onde o cliente ao clicar gere um IDENTIFICADOR ÚNICO e usar esse valor em cada produto adicionado ao carrinho para fazer um filtro?

Fala @wjcampos tudo bem?

Cara, isso eu mesmo já tentei, como outros aqui tbm (@Messias_Carvalho e muitos outros), mas isso é extremamente difícil de ser feito com o método Trebuchet, porque não é escalável, entende?

Translation:

Hey @wjcampos, what’s up?

Dude, I’ve tried that myself, as have others here (@Messias_Carvalho and many others), but it’s extremely difficult to do with the Trebuchet method, because it’s not scalable, you know?