I have a header that has login/signup and logout. it also handles the login and user creation. I want on another page that users this header that when i create an Order, it will prompt the user to sign up if not logged in, and then complete the order. I have a custom trigger on the header, that the create order page can access. However, I tried to create a custom trigger for the order creation page that the header can trigger. The header cannot access this trigger.
How can i have the signup workflow to have different workflows only for this page but the same workflow for every other page that uses this header.
However, i am not able to get the header to access it. Therefore, currently, the workflow is signup → then user must select create order again. I want it to go signup->place order immediately after sign up.
Maybe if you make your header a reusable component & have the registration popup available both in the reusable and order page so that:
whenever a guest user clicks login from header the popup shows up no matter the current page.
when user clicks “add to cart” on order list page, login/signup popup also shows up (you need to to put a condition on the button workflow).
this is the simplest way to do it.
Is the signup/login portion of the header it’s own reusable? If so, you can place that in a popup then trigger the popup on the order creation page if the user is not already signed up or logged in. This way the user is not redirected to a separate page.
If you prefer to redirect the user to a login/signup page then you could send them to that page with a url parameter. For example from=order. then when a user signs up/logs in and the url parameter from is order, then redirect the user to the order page.