forked from Wavyzz/dolibarr
Clean code
This commit is contained in:
@@ -105,7 +105,7 @@ $mode = GETPOST('mode', 'alpha');
|
|||||||
|
|
||||||
|
|
||||||
//Show/hide child products
|
//Show/hide child products
|
||||||
if (isModEnabled('variants') && !empty($conf->global->PRODUIT_ATTRIBUTES_HIDECHILD)) {
|
if (isModEnabled('variants') && !empty($conf->global->PRODUIT_ATTRIBUTES_HIDECHILD)) { // PRODUIT_ATTRIBUTES_HIDECHILD means: show the checkbox to show/hide child
|
||||||
$show_childproducts = GETPOST('search_show_childproducts');
|
$show_childproducts = GETPOST('search_show_childproducts');
|
||||||
} else {
|
} else {
|
||||||
$show_childproducts = '';
|
$show_childproducts = '';
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ print '<th class="right" width="60">'.$langs->trans("Value").'</th>'."\n";
|
|||||||
print '</tr>'."\n";
|
print '</tr>'."\n";
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans('HideProductCombinations').'</td><td>';
|
print '<tr class="oddeven"><td>'.$langs->trans('HideProductCombinations').'</td><td>';
|
||||||
print $form->selectyesno("PRODUIT_ATTRIBUTES_HIDECHILD", $conf->global->PRODUIT_ATTRIBUTES_HIDECHILD, 1).'</td></tr>';
|
print $form->selectyesno("PRODUIT_ATTRIBUTES_HIDECHILD", getDolGlobalString('PRODUIT_ATTRIBUTES_HIDECHILD'), 1).'</td></tr>';
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans('CombinationsSeparator').'</td>';
|
print '<tr class="oddeven"><td>'.$langs->trans('CombinationsSeparator').'</td>';
|
||||||
if (isset($conf->global->PRODUIT_ATTRIBUTES_SEPARATOR)) {
|
if (isset($conf->global->PRODUIT_ATTRIBUTES_SEPARATOR)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user