// Add a warning in adminProducts if we try to create a product in a shop where the product is not linked

This commit is contained in:
rMalie
2012-05-21 15:54:31 +00:00
parent 5658f392da
commit fd7cbe6b80
@@ -2190,6 +2190,9 @@ class AdminProductsControllerCore extends AdminController
$product = $this->object;
if ($this->display == 'edit' && Shop::isFeatureActive() && Shop::getContext() == Shop::CONTEXT_SHOP && !$product->isAssociatedToShop($this->context->shop->id))
$this->displayWarning($this->l('Warning: this product does not exist in this shop. If you submit the form, this product will be available for this shop too.'));
// Product for multishop
$this->context->smarty->assign('bullet_common_field', '');
if (Shop::isFeatureActive() && $this->display == 'edit')