how hide price , add_to_cart option anonymous users in drupal?
i think, can go page dmin/people/permissions , uncheck option anonymous.
to hide fields can create node--your_content_type.tpl.php
in template can check user-role:
global $user; // check if user has 'authenticated user' role. if (in_array('authenticated user', $user->roles)) { //show field } also can hide css -)
.not-logged-in .your_class_field {display: none;}
Comments
Post a Comment