Jump to content

Save Product data on HookActionProductUpdate


Recommended Posts

Hello.

 

I 'm new here , I have a question about the development of a module.

 

I am developing a module , which is displayed in the tabs of admin products

 

My question is, how to communicate the Save button with the hookActionProductUpdate function? .. So in this way the data will be saved correctly.

 

Thanks in advance.

 

ps: i'm not english native talker, so excuse me if don't explain clearly

post-1290344-0-63476200-1468952336_thumb.png

Link to comment
Share on other sites

Hello.

 

 

 

I 'm new here , I have a question about the development of a module.

 

 

 

I am developing a module , which is displayed in the tabs of admin products

 

 

My question is, how to communicate the Save button with the hookActionProductUpdate function? .. So in this way the data will be saved correctly.

 

 

 

Thanks in advance.

 

ps: i'm not english native talker, so excuse me if don't explain clearly

 

Hi....

 

you can create function with this your module file like as

 

 

public function hookActionProductUpdate()
{

$id_product = Tools::getValue('id_product');
$my_var= Tools::getValue('my_var');

//your code here
}

thanks

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