hastalavi2 Posted June 3, 2021 Share Posted June 3, 2021 (edited) 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 June 3, 2021 by hastalavi2 (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted June 4, 2021 Share Posted June 4, 2021 I am puzzled about the underscore before "combifeature". Normally the underscore is in the prefix, like "ps_". So if you prefix is "kd_" you will get two underscores in the name. 1 Link to comment Share on other sites More sharing options...
hastalavi2 Posted June 5, 2021 Author Share Posted June 5, 2021 Thanks. That did the trick. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now