Jump to content

Help with a new field in ps_product table


sardellittimatteo

Recommended Posts

you are really amazing and helpfull; this is the reason why i ask for help for the first time. I'm sorry to bother but i'm new on prestashop and i'm find it so great. My problem is: i've maked a new field in ps_product called 'trovaprezzi' and is like to the 'active' field. It means that, if active, the product will be sended to an advertise service with a csv that i have. I maked modifies to AdminProductsController for let the field to be showed in backoffice by adding this code: $this->fields_list['trovaprezzi'] = array(
'title' => $this->l('Tprezzi'),
'active' => 'status',
'filter_key' => $alias.'!active',
'align' => 'text-center',
'type' => 'bool',
'class' => 'fixed-width-sm',
'orderby' => false
);
just under the 'active' field list. Now it show another active field with the name Tprezzi. What i have to insert for pick the real data from database and to modify that trovaprezzi field in the ps_product?

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...