Jump to content

How to insert a row to my module table?


hastalavi2
 Share

Recommended Posts

Hi, I created a custom module which adds some custom text fields to product editing page on back office. But I want those fields inserted in a table I created with the same name as my module 'kd_combifeature'.

I am using "hookActionProductUpdate" and this code:

DB::getInstance()->insert(_DB_PREFIX_ . '_combifeature', array(
	'id_combifeature' => 'AUTO_INCREMENT',
	'id_feature' => $id_feature,
	'id_product' => $id_product,
	'value' => $value,
));

But it doesn't working. Why?

Edited by hastalavi2 (see edit history)

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