By Marcio Garrido on Wednesday, 10 January 2018
Posted in General Issues
Replies 5
Likes 0
Views 574
Votes 0
Hi, it is possible hide some informations for especific profile user on backend ?

For exemple i woud like to hide fields
http://prntscr.com/hy9tme
and
http://prntscr.com/hy9txe
Hi Marcio,

Do you mean that you would like to hide these subtotal, total columns and logs entirely from the backend?

For logs, you can try using this feature in the configuration page to prevent log creation for subscription activity: http://take.ms/txka7
·
Wednesday, 10 January 2018 12:54
·
0 Likes
·
0 Votes
·
0 Comments
·
HI

"Do you mean that you would like to hide these subtotal, total columns and logs entirely from the backend?"

Yes , but just for especifc profile administrator ...

For exemple

user Admin1- groupeuser hide_data
user Admin2- groupeuser
·
Wednesday, 10 January 2018 17:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Marcio,

Yes, you can hide these fields. You need to code to fetch the usergroup for which you don't want to show this data.

Change Invoice Table : Find the path shown below
root/administrator/components/com_payplans/templates/default/_partials/default_partial_invoice_table.php
See attached screen shot.

Remove log section : Find file at the path shown below
root/administrator/components/com_payplans/templates/default/subscription/default_edit.php
Near line no. 171, find below mentioned line of code

<?php echo $this->loadTemplate('edit_log'); ?>


Let me know if you have any query.
·
Wednesday, 10 January 2018 19:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Work like a charm ....
take a look at customization


//alteracao para que os usuarios pertencentes ao grupo "denied" cujo id é 120 nao vejam o desconto da fatura dentro da assinatura
<?php
$user =JFactory::getUser();
$groups = JUserHelper::getUserGroups($user->id);
if(!in_array('120', $groups))
{
?>

<?php echo $this->loadTemplate('edit_log'); ?>
<?php
}
?>
·
Thursday, 11 January 2018 06:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

It seems ok.
·
Thursday, 11 January 2018 12:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post