'product_configurator_opt_impact', 'primary' => 'id_product_configurator_opt_impact', 'multilang' => false, 'fields' => array( 'id_product' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_product_configurator_opt_group' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_configurator_opt' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'price' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice', 'required' => true), ), ); public static function getProductOptImpact($id_product) { $context = Context::getContext(); $result = Db::getInstance()->executeS(' SELECT pcoi.*, co.*, col.name FROM `ps_product_configurator_opt_impact` pcoi, ps_configurator_opt co LEFT JOIN ps_configurator_opt_lang col ON (col.id_configurator_opt = co.id_configurator_opt AND col.id_lang = 1) WHERE pcoi.id_product = 1 AND pcoi.id_configurator_opt = co.id_configurator_opt ORDER BY position ASC'); return $result; } }