Jump to content

How to insert a row to my module table?


hastalavi2

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