[+] BO: The customizable products are now usable in the BackOffice order

This commit is contained in:
rGaillard
2012-05-09 14:04:13 +00:00
parent 255c92b2bf
commit efd35f4f87
5 changed files with 184 additions and 13 deletions
+2 -2
View File
@@ -3057,7 +3057,7 @@ class ProductCore extends ObjectModel
$context = Context::getContext();
$sql = new DbQuery();
$sql->select('p.`id_product`, pl.`name`, p.`active`, p.`reference`, m.`name` AS manufacturer_name, stock.`quantity`, product_shop.advanced_stock_management');
$sql->select('p.`id_product`, pl.`name`, p.`active`, p.`reference`, m.`name` AS manufacturer_name, stock.`quantity`, product_shop.advanced_stock_management, p.`customizable`');
$sql->from('category_product', 'cp');
$sql->leftJoin('product', 'p', 'p.`id_product` = cp.`id_product`');
$sql->join(Shop::addSqlAssociation('product', 'p'));
@@ -3886,7 +3886,7 @@ class ProductCore extends ObjectModel
if (!Customization::isFeatureActive())
return array();
return Db::getInstance()->executeS('
SELECT `id_customization_field`, `type`
SELECT `id_customization_field`, `type`, `required`
FROM `'._DB_PREFIX_.'customization_field`
WHERE `id_product` = '.(int)$this->id);
}