diff --git a/htdocs/langs/en_US/products.lang b/htdocs/langs/en_US/products.lang index 67c7fa81da0..a1d81183c41 100644 --- a/htdocs/langs/en_US/products.lang +++ b/htdocs/langs/en_US/products.lang @@ -202,6 +202,8 @@ UseMultipriceRules=Use price segment rules (defined into product module setup) t PercentVariationOver=%% variation over %s PercentDiscountOver=%% discount over %s KeepEmptyForAutoCalculation=Keep empty to have this calculated automatically from weight or volume of products +VariantRefExample=Example: COL +VariantLabelExample=Example: Color ### composition fabrication Build=Produce ProductsMultiPrice=Products and prices for each price segment @@ -285,6 +287,8 @@ ConfirmDeleteProductBuyPrice=Are you sure you want to delete this buying price? SubProduct=Sub product ProductSheet=Product sheet ServiceSheet=Service sheet +PossibleValues=Possible values +GoOnMenuToCreateVairants=Go on menu %s - %s to prepare attribute variants (like colors, size, ...) #Attributes VariantAttributes=Variant attributes diff --git a/htdocs/variants/card.php b/htdocs/variants/card.php index f5d35019971..c191c1fd4c3 100644 --- a/htdocs/variants/card.php +++ b/htdocs/variants/card.php @@ -56,7 +56,7 @@ if ($_POST) { header('Location: '.dol_buildpath('/variants/card.php?id='.$id, 2)); exit(); } - } elseif ($action == 'edit_value') { + } elseif ($action == 'update') { if ($objectval->fetch($valueid) > 0) { @@ -94,7 +94,7 @@ if ($confirm == 'yes') { } exit(); } - elseif ($action == 'confirm_deletevalue') + elseif ($action == 'confirm_deletevalue') { if ($objectval->fetch($valueid) > 0) { @@ -225,25 +225,37 @@ if ($action == 'edit') { ?> - -
'; +print ''; -llxFooter(); \ No newline at end of file +print ''; + +llxFooter(); +$db->close(); diff --git a/htdocs/variants/create_val.php b/htdocs/variants/create_val.php index 2f463286787..7c624765e32 100644 --- a/htdocs/variants/create_val.php +++ b/htdocs/variants/create_val.php @@ -128,7 +128,7 @@ dol_fiche_head();