diff --git a/admin-dev/themes/default/template/controllers/orders/form.tpl b/admin-dev/themes/default/template/controllers/orders/form.tpl index 41f01ce49..ec2fd7d4a 100755 --- a/admin-dev/themes/default/template/controllers/orders/form.tpl +++ b/admin-dev/themes/default/template/controllers/orders/form.tpl @@ -639,7 +639,7 @@ { var cart_content = ''; $.each(products, function() { - cart_quantity[this.id_product+'_'+this.id_product_attribute] = this.cart_quantity; + cart_quantity[this.id_product+'_'+this.id_product_attribute+'_'+this.id_customization] = this.cart_quantity; cart_content += ''+this.name+'
'+this.attributes_small+''+this.reference+' '; cart_content += '

'; cart_content += '
'; diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index bdda20943..5c5fd66f6 100755 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -150,7 +150,7 @@ class AdminOrdersControllerCore extends AdminController public function renderForm() { - if (Context::getContext()->shop->getContext() != Shop::CONTEXT_SHOP) + if (Context::getContext()->shop->getContext() != Shop::CONTEXT_SHOP && Shop::isFeatureActive()) { $this->errors[] = $this->l('You have to select a shop in order to create new orders.'); return false; @@ -218,7 +218,7 @@ class AdminOrdersControllerCore extends AdminController ); } $res = parent::initToolbar(); - if (Context::getContext()->shop->getContext() != Shop::CONTEXT_SHOP && isset($this->toolbar_btn['new'])) + if (Context::getContext()->shop->getContext() != Shop::CONTEXT_SHOP && isset($this->toolbar_btn['new']) && Shop::isFeatureActive()) unset($this->toolbar_btn['new']); return $res; }