[+] 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
@@ -1340,7 +1340,14 @@ class AdminOrdersControllerCore extends AdminController
foreach ($combinations as &$combination)
$combination['attributes'] = rtrim($combination['attributes'], ' - ');
$product['combinations'] = $combinations;
if ($product['customizable'])
{
$product_instance = new Product((int)$product['id_product']);
$product['customization_fields'] = $product_instance->getCustomizationFields($this->context->language->id);
}
}
$to_return = array(
'products' => $products,
'found' => true