Skip Navigation

[Resolved] Diferent Woocommerce styles according to user level

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Author
Posts
#504495

Can i style a wordpress woocommerce based shop according to specific usernames using Access?

So for customer1, when he logins, some content of the page (widgets) will change and eventually some css.

thanks

#504692

Dear Pedro,

There isn't such a built-in feature within Access plugin, but in your case, I suggest you try with custom user fields + shortcode [wpv-conditional], for example:
1) You can create a custom user fields favorite-color, with options "Red", "Yellow", and so on.
Your user will be able to choose their own favorite-color option in the profile page.
https://toolset.com/documentation/user-guides/user-fields/
Adding Fields to User Profiles

2) In the front-end, you can use shortcode [wpv-conditional] to check the user field "favorite-color" value of current user, then display correspond content for the user:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-conditional
Conditional shortcode to be used to display a specific block of meta HTML based on results of a boolean expression .

#504750

Thank you Luo.

2) so with meta html i can display specific widget according to specific fields values of the user profile? Including loading specific css files?

#505152

The widget is defined in your sidebar, Views shortcode [wpv-conditional] or Access plugin can not change it, but you can setup a text widget, in the content of text widget use the Views shortcode [wpv-conditional] to output different content according to user field value.

Yes, you can load CSS file with some inline HTML codes, for example:

<link rel='stylesheet' id='red'  href='<em><u>hidden link</u></em> of the CSS file' type='text/css' media='all' />
#505288

Thanks!

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.