Jump to content

backoffice manufactures list new field like active


ruisonika
 Share

Recommended Posts

Hello guys,

I need some help (running 1.6 version) in backoffice manufactures list i've implemented a field like active (0/1) and all works well (in ps_manufacturer i've created the field, let's says it calls homepage) but i don't know what is the file to make same action trigger like active...in backoffice in manufacturer list when i click on manufacturer active green check, it auto  upgrade the ps_manufacturer.active field and i wanna do the same behaviour with new field (homepage).

The behaviour is the only thing that wasn't working.

Hope some help.

Share this post


Link to post
Share on other sites

3 minutes ago, ndiaga said:

Hi,

It  is  easy  to  add  a field  in  the  table  but  not  that easy    to change  its  value  from  the  code  the  way  you are trying  to do  it.

so you have no clue where i can digger about this?

 

Share this post


Link to post
Share on other sites

2 minutes ago, ndiaga said:

Core  admin  class  files.

Try  AdminManufacturerController.php  

Yes i've been already ... so i changed the code to show the field

'active' => array(
                'title' => $this->l('Enabled'),
                'active' => 'status',
                'type' => 'bool',
                'align' => 'center',
                'class' => 'fixed-width-xs',
                'orderby' => false
            ),
            'homepage' => array(
                'title' => $this->l('Página Marcas'),
                'active' => 'homepage',
                'type' => 'bool',
                'align' => 'center',
                'class' => 'fixed-width-xs',
                'orderby' => false
            )

but after i don't know what's trigger the update status...

Share this post


Link to post
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More