Jump to content

Recommended Posts

Posted

I need to grant access only to a part of a page and hidden to guest another part like a product page with the price visible only to registered users.

It's possible to make this? Now i can only menage access to whole page.

Posted

Hey Sevarf2,

I believe you could do something like this:

Create a new Role (Access->roles) for "registered_users" and assign it to a user.

In your template, I believe you can do something like:

<?php
if ($user->hasRole("registered_users")) {
  echo "custom price";
}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...