Jump to content

Need to Edit Function in Employees Profile in 1.6 Backoffice


Recommended Posts

Hello,


 


This is NOT about changing the wording text within the employee profile but removing several functions. 


In the 1.6.0.7 backoffice in the administration / employees, profile screen. I can't find instructions for either editing disabling that functions. 


 


1: Remove avatar function


2: Remove Prestashop Addon sign in function


3: Remove Prestashop connect (yes / no) function


 


Can someone please provide instructions where to find the file for editing & instructions for editing?


 


I imagine many people would find this post helpful and if its already been posted before, please provide link to the post. 


 


Thank you for your time. 


Edited by ecommdev (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

Yo need to open cotrollers/admin/AdminEmployeesController.php
 
1 to remove avatar find this rows

                array(
                    'type' => 'html',
                    'name' => 'employee_avatar',
                    'html_content' => '<div id="employee-thumbnail"><a href="http://www.prestashop.com/forums/index.php?app=core&module=usercp" target="_blank" style="background-image:url('.$obj->getImage().')"></a></div>
                    <div class="alert alert-info">'.sprintf($this->l('Your avatar in PrestaShop 1.6.x is your profile picture on %1$s. To change your avatar, log in to PrestaShop.com with your email %2$s and follow the on-screen instructions.'), '<a href="http://www.prestashop.com/forums/index.php?app=core&module=usercp" class="alert-link" target="_blank">PrestaShop.com</a>', $obj->email).'</div>',
                ),

 

and comment it (or delete)

//                array(
//                    'type' => 'html',
//                    'name' => 'employee_avatar',
//                    'html_content' => '<div id="employee-thumbnail"><a href="http://www.prestashop.com/forums/index.php?app=core&module=usercp" target="_blank" style="background-image:url('.$obj->getImage().')"></a></div>
//                    <div class="alert alert-info">'.sprintf($this->l('Your avatar in PrestaShop 1.6.x is your profile picture on %1$s. To change your avatar, log in to PrestaShop.com with your email %2$s and follow the on-screen instructions.'), '<a href="http://www.prestashop.com/forums/index.php?app=core&module=usercp" class="alert-link" target="_blank">PrestaShop.com</a>', $obj->email).'</div>',
//                ),
 
 
2, 3 To remove Prestashop addons - fild this rows:
 
        $this->fields_form['input'][] = array(
            'type' => 'prestashop_addons',
            'label' => 'PrestaShop Addons',
            'name' => 'prestashop_addons',
        );
 
and comment it (or delete)
 
//        $this->fields_form['input'][] = array(
//            'type' => 'prestashop_addons',
//            'label' => 'PrestaShop Addons',
//            'name' => 'prestashop_addons',
//        );

 

Then find

 

            array(
                'type' => 'switch',
                'label' => $this->l('Connect to PrestaShop'),
                'name' => 'optin',
                'required' => false,
                'is_bool' => true,
                'values' => array(
                    array(
                        'id' => 'optin_on',
                        'value' => 1,
                        'label' => $this->l('Yes')
                    ),
                    array(
                        'id' => 'optin_off',
                        'value' => 0,
                        'label' => $this->l('No')
                    )
                ),
                'hint' => $this->l('PrestaShop can provide you with guidance on a regular basis by sending you tips on how to optimize the management of your store which will help you grow your business. If you do not wish to receive these tips, please uncheck this box.')
            ),

 

 

and comment it (or delete)

 

//            array(
//                'type' => 'switch',
//                'label' => $this->l('Connect to PrestaShop'),
//                'name' => 'optin',
//                'required' => false,
//                'is_bool' => true,
//                'values' => array(
//                    array(
//                        'id' => 'optin_on',
//                        'value' => 1,
//                        'label' => $this->l('Yes')
//                    ),
//                    array(
//                        'id' => 'optin_off',
//                        'value' => 0,
//                        'label' => $this->l('No')
//                    )
//                ),

//                'hint' => $this->l('PrestaShop can provide you with guidance on a regular basis by sending you tips on how to optimize the management of your store which will help you grow your business. If you do not wish to receive these tips, please uncheck this box.')
//            ),

 

 

that's all

  • Like 3
Link to comment
Share on other sites

  • 3 months later...

Can you tell me where to find these files in server?

 

www.MYDOMAIN.COM/index.php?controller=authentication&back=my-account#account-creation

 

and

 

www.MYDOMAIN.COM/dealer/index.php?controller=AdminEmployees&token=ddfa946a927812287b70edfd018a4018&id_employee=1&updateemployee

Link to comment
Share on other sites

  • 2 weeks later...

help needed please....

 

Under cotrollers/admin/AdminEmployeesController.php

 

I found the files you showed to removed, after removed. i went back to the page, these functions are still there.. Must be wrong page.. I bought and installed a different theme, will it made any difference on where the files are?

 

Please show me how to find this page?

 

Thanks

Link to comment
Share on other sites

  • 4 weeks later...
×
×
  • Create New...