WAIT: Conditional logic show/hide error And-or logic

Bricks Version: 1.6

I try to make custom woocommerce Account with combine custom login/sign-up forms.
A made custom forms
and put the my-account shortcode to another Section.
In login form a made a lost pasword link.

Login section condition is “show if user not logged in”
The My account section is “show if user logged in” OR the url contain /lost-password/

I have tried everything condition but the my account section is show everytime or never.

Why i try this?
Becasue Bricks hasn’ got custom template for login / sign-up / my account / lost-password ect but i dont want to make lost of custom page to the end-point links.

Hi,
Thanks so much for your report!

In your screenshot, the or condition is if {post_url} EQUALS xyz/xyz which cannot be true, because the post URL starts with something like https://yourdomain…

The correct comparison operator should be “CONTAINS”, which works in my test.

Best regards,
timmse

Hi Timmse!

Thanks your reply.
Yes, i have tried everything, tried every scenario, the screenshot is show only the last try. :smiley:

I dont want to use full url (with domain) because it is just a dev stage, after i fininsh i will migrate full of site to andother URL. So, i dont want to search and change all of urls manually after migration process. :smiley:

I tried “full” (without domain name) urls, but didnt work. Example “/account/lost-passwarod/”. (In the screenshot you can only see the “lost-password/” solution.

As said,
The following condition works perfectly for me (Bricks 1.6.1):

Hi!

I think it is not same. I have more step conditional logi. Maybe the problem is there. Please test is.

So, again.

I make cutsom login / sign-up / My-account site page. This is only one page, but conditional logic i use it multipurpose.

Why i have to make this?
Because Bricks doesnt has any “Are you lost your password” solution, so i have to use the “my account” shortcode (because bricks doesnt have too it).

My conditional logis.

If you not login, you can only see the two form.
If you logged in, you can only see the my-account woocommerce dashboard.

If you NOT logged in, but click to “lost password” dynamically show the “my-account” woocommerce dashboard, becaut it will be only show the “add your email or user name and click to reset password” state.
It is has to working, because when you click the lost password, (default in /my-account/ page) it reload the page and the url will be /my-account/lost-password.

Does anyone has a solution for this my loss password issue? I have setup it as described and I have the same result. It doesn’t work.

I have found a solution within Bricks Builder, without difficult coding or plugin. :smile:

1 Like

And could you share with community your solution?
:speak_no_evil::hear_no_evil::see_no_evil:

Yes I will do that of course . At the moment I have to go, but I will submit my solution afterwards when I’m back.

I removed the condition and add the follow condition:

Next to that I add some extra information to a button or link which are linked to /my-account/, this extra information is attribute rel = noreferrer.

Let me know if It works for you too…