I m having a little trouble here, maybe is not possible.
I do not require users to login and create an account but as far as i know, a temp user still exists.
I have the following setup:
- users can create their own customized watch.
- when the page is loaded and current users temp_order is empty, i am creating a temp_order then make changes to user - temp_order=result from step 1 temp_order. So right a way, after user has accessed my page, they have a temp_order assigned.
- when they press “checkout” i m making changes to currents user temp_order. Everything works perfect.
Now, after user refreshes the page i have 2 conditions:
- temp_order is empty - the scenario from above happens
- temp_order is not empty
I m having issue in setting states from current user temp_order. For some reason, it does not work.
It will only work if i “do a search for” temp_orders created by current user. (but i want to avoid do a search for as much as i can.)
If i have the users logged in, it works without any problem but in my case i cannot see the "current user " in database
Link to page: https://noah-test2.bubbleapps.io/version-test/configurator?debug_mode=true
Link to editor: https://bubble.io/page?type=page&name=configurator&id=noah-test2&tab=tabs-2