Hi,
I'd like to compare two variables - to see if Global:Extranet.Groups contains a custom-field value. Like this:
<!--@If Not(Global:Extranet.Groups<contains>Ecom:Product:Field.HideForGroup.Value.Clean)--> Do not show for group 300. <!--@EndIf--> <!--@If (Global:Extranet.Groups<contains>Ecom:Product:Field.HideForGroup.Value.Clean)--> Show for group 300. <!--@EndIf-->
In Management Center the field is created as a custom product field - String/text 255.
In usermanagement I've added my user to a group with the ID 300.
In eCommerce I've added 300 in my custom-field to a single product.
On the website frontend I'm logged in and added the above if-statements to the Products-loop in the productlist.
"Show for group 300." will always be outputted no matter if the customfield contains a value or not.
Any ideas?