diff --git a/htdocs/variants/combinations.php b/htdocs/variants/combinations.php index 217fb56ae9f..366d6ac5d2f 100644 --- a/htdocs/variants/combinations.php +++ b/htdocs/variants/combinations.php @@ -544,8 +544,8 @@ if (!empty($id) || !empty($ref)) dol_fiche_head(); - print ''; if ($action == 'add') { + print '
'; print "\n"; print ''; print ''; @@ -566,9 +566,9 @@ if (!empty($id) || !empty($ref)) print $langs->trans("Create"); print '';*/ + print ''; + print ''; ?> - - @@ -592,18 +592,19 @@ if (!empty($id) || !empty($ref)) "> - '; print ''; + print '
- '; + print $listofvariantselected; print '
'; print '
'; } if (is_array($productCombination2ValuePairs1)) { - ?> - - '; + // When in edit mode if (is_array($productCombination2ValuePairs1) && count($productCombination2ValuePairs1)) { @@ -639,15 +640,17 @@ if (!empty($id) || !empty($ref)) - global->PRODUIT_MULTIPRICES)){ ?> + global->PRODUIT_MULTIPRICES)) { + ?> - fetchCombinationPriceLevels(); for ($i = 1; $i <= $conf->global->PRODUIT_MULTIPRICES_LIMIT; $i++) @@ -672,33 +675,35 @@ if (!empty($id) || !empty($ref)) print ''; print ''; } + print '
>
'; } if (!empty($conf->global->PRODUIT_MULTIPRICES)){ ?> - + +
value="trans('Create') : $langs->trans('Save') ?>" class="button">   @@ -731,7 +736,7 @@ if (!empty($id) || !empty($ref)) if ($productCombinations) { - ?> + ?> - ';