Jump to content

Change status in manufacturer admin controller


Recommended Posts

Hello i'm having trouble with the following:
In my store (prestashop1.6) in homepage i have a slider for all manufacturer (active == 1) but i don't want to show all, so i...
- add a new field in ps_manufacturer (like active field) and named homepage;
- changed the classes/manufacturer.php (line 178) to add the new field (homepage)

'.($active ? 'WHERE m.`active` = 1 AND m.`homepage` = 1' : '' )

- in AdminManufacturersController.php (line 98) i've added

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

And all works well but in i don't know this?
where do i change to in prestashop backoffice when i change the homepage field it submit for ps_manufacturer.homepage field????
to have the same action like active...
 

Captura de ecrã 2021-05-26, às 12.12.15.png

Link to comment
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
×
×
  • Create New...