Hi,
I'd like to display an inline css in my page, based in a user field, named cb_level, I'm using an Auto Action code-type. Unfortunately, I wasn't able to make it work:
cb_level has 2 possible options: 'Parent' or 'Child'
The field is mandatory, therefore it's defined for everybody.
The idea is, after user logins, CB must detect if it's 'Parent' or 'Child' and in the second case, adds the following CSS rule:
Code:
.spacer-buy-area {
display: none;
}
There is no need for any action for Parent members
All users are in the 'Registered' group.
Does this rule apply for all pages in the site as long as the user keeps logged in?
The condition is [cb_level] Equal to 'Child', should Child go between quotes (it's exactly spelled as in the field definition)?
I also have Virtuemart installed and all users belongs to default shoppers group
I attach a screenshot of current auto action settings
I'm using J2.5.6, CB 1.8.1, autoactions 3.1.0 and VM 2.0.10
Thanks in advance.