cfr55 Posted August 20, 2018 Posted August 20, 2018 I am doing a new module and I want to know how to update and insert values in a table when I save the product options in the back office. I try this but I dont know if the code its ok or where to place it: Db::getInstance()->update('ps_product_shop', array( 'customizable' => 2, )); $query = "UPDATE `"._DB_PREFIX_."product` SET customizable=1 WHERE id_product =".$product->id_product.";"; Db::getInstance()->Execute($query); I try both in hookdisplayAdminProductsExtra and in hookActionProductUpdate Share this post Link to post Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now