Hi Jonathan,
I tried to use the following
Retail logged in not Wholesale
is_user_logged_in() && !current_user_can(‘wholesale_customer’)
Normal User
!is_user_logged_in()
Wholesale
is_user_logged_in() && current_user_can(‘wholesale_customer’)
As just using
current_user_can(‘wholesale_customer’) seemed to be what was causing the problem as adding the three above codes one at a time works and the pages can be saved and are not whited out and can be saved ok.
Now when I am logged in as non wholesale user I see the correct row.
If I am logged in as a wholesale customer I see all three.
If I am not logged in I see two rows, so I appear to be making some progress as far as the pages are now saving and visible and the plugin appears to be working am I using the wrong code anywhere above?
Appreciate any feedback.