Add to cart already in the shopping card

Hello,

I need help with a marketplace.
I want to make sure that when the user already has the product in the shopping cart, he can’t add it again.
Capture d’écran 2024-06-21 à 09.40.38

Capture d’écran 2024-06-21 à 09.40.45

I’ve tried this but nothing works.

thanks for your help.

Hey @victor11 ,

The expression to check if the product is already added in the user’s cart seems to fine. The 2 reasons which might cause the issue:

  1. Ensure proper privacy rules is implemented
  2. Check is the Parent Group’s Product isn’t empty

Another optimisation you should try is to apply the condition on the 1st block instead of 2nd to avoid creating the records is the product is already added to user’s cart.

This topic was automatically closed after 70 days. New replies are no longer allowed.