Woocommerce - My account page based on Role

Hi team,

I’m wanting to display 3 different variations of the My Account page in woocommerce.
Roles:
1: Customer
2. Dropship
3. Wholsale

Now, when I create layout variations with rules to show based on different roles, it does work.
(Page = account & Role = Wholesale), however as soon as I assign the page as the “account” page in the woocommerce settings, it doesn’t work anymore and reverts back to the original page content.

I can’t simply not assign the page as it wont allow the account tabs to be clicked (orders, addresses etc) to be clicked without it - it goes to a 404 page.

How can I create 3 different layouts and assign to the My Account page?

Most of the information is the same, however there are sections that are different. Am I able to only show sections to different users as that would work as a workaround in this case.

Hi @archerthefox,

Thanks for reaching out.
You don’t need to assign the Layout to any page, you can add the condition as shown in the given screenshot to show it as the My Account page.

Hope it helps.
Thanks

Thank you.

I did try this but it wasn’t showing properly. I need to assign the account page in the Woocommerce settings and when that happens it wasn’t appearing correctly.

I managed to solve the issue but using conditions on individual sections so I’ve found a solution. :slight_smile:
Thanks!

Hi @archerthefox,

Glad to know that you are able to find the solution.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.