diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php index 56a8f02e7e5..6139d54c799 100644 --- a/htdocs/comm/propal/card.php +++ b/htdocs/comm/propal/card.php @@ -51,8 +51,8 @@ if (! empty($conf->projet->enabled)) { require_once DOL_DOCUMENT_ROOT . '/core/class/html.formprojet.class.php'; } -if (!empty($conf->attributes->enabled)) { - require_once DOL_DOCUMENT_ROOT.'/attributes/class/ProductCombination.class.php'; +if (!empty($conf->variants->enabled)) { + require_once DOL_DOCUMENT_ROOT.'/variants/class/ProductCombination.class.php'; } $langs->load('companies'); @@ -729,7 +729,7 @@ if (empty($reshook)) $error ++; } - if (!$error && !empty($conf->attributes->enabled) && $prod_entry_mode != 'free') { + if (!$error && !empty($conf->variants->enabled) && $prod_entry_mode != 'free') { if ($combinations = GETPOST('combinations', 'array')) { //Check if there is a product with the given combination $prodcomb = new ProductCombination($db); diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 4f049a1fe4e..497dd6292f2 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -51,8 +51,8 @@ if (! empty($conf->projet->enabled)) { } require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php'; -if (!empty($conf->attributes->enabled)) { - require_once DOL_DOCUMENT_ROOT.'/attributes/class/ProductCombination.class.php'; +if (!empty($conf->variants->enabled)) { + require_once DOL_DOCUMENT_ROOT.'/variants/class/ProductCombination.class.php'; } $langs->load('orders'); @@ -693,7 +693,7 @@ if (empty($reshook)) $error++; } - if (!$error && !empty($conf->attributes->enabled) && $prod_entry_mode != 'free') { + if (!$error && !empty($conf->variants->enabled) && $prod_entry_mode != 'free') { if ($combinations = GETPOST('combinations', 'array')) { //Check if there is a product with the given combination $prodcomb = new ProductCombination($db); diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index f0ddace3e2e..b457c3f1187 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -56,8 +56,8 @@ if (! empty($conf->projet->enabled)) { } require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php'; -if (!empty($conf->attributes->enabled)) { - require_once DOL_DOCUMENT_ROOT.'/attributes/class/ProductCombination.class.php'; +if (!empty($conf->variants->enabled)) { + require_once DOL_DOCUMENT_ROOT.'/variants/class/ProductCombination.class.php'; } $langs->load('bills'); @@ -1428,7 +1428,7 @@ if (empty($reshook)) $error ++; } - if (!$error && !empty($conf->attributes->enabled) && $prod_entry_mode != 'free') { + if (!$error && !empty($conf->variants->enabled) && $prod_entry_mode != 'free') { if ($combinations = GETPOST('combinations', 'array')) { //Check if there is a product with the given combination $prodcomb = new ProductCombination($db); diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index cec7aa2aede..5637d52ace7 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1673,7 +1673,7 @@ class Form } print ajax_autocompleter($selected, $htmlname, DOL_URL_ROOT.'/product/ajax/products.php', $urloption, $conf->global->PRODUIT_USE_SEARCH_TO_SELECT, 0, $ajaxoptions); - if (!empty($conf->attributes->enabled)) { + if (!empty($conf->variants->enabled)) { ?>