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

This commit is contained in:
rGaillard committed 2012-05-09 14:04:13 +00:00
1 parent 255c92b2bf
commit efd35f4f87
5 files changed
+184 -13

No files matched your search

@@ -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