fix weight
This commit is contained in:
parent
b9ff9ead70
commit
ad26e64ad0
@ -230,10 +230,10 @@ class AdminLogistics extends AdminTab {
|
|||||||
&& (
|
&& (
|
||||||
($id_order = Tools::getValue('id_order'))
|
($id_order = Tools::getValue('id_order'))
|
||||||
&& ($products = Tools::getValue('products'))
|
&& ($products = Tools::getValue('products'))
|
||||||
&& ($weight = Tools::getValue('weight'))
|
|
||||||
&& ($parcel_carrier = Tools::getValue('carrier'))
|
&& ($parcel_carrier = Tools::getValue('carrier'))
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
|
$weight = 0.24;
|
||||||
$order = new Order((int) $id_order);
|
$order = new Order((int) $id_order);
|
||||||
if(Validate::isLoadedObject($order)) {
|
if(Validate::isLoadedObject($order)) {
|
||||||
$parcel_carrier == 'laposte'? $weight = 0.24: TRUE;
|
$parcel_carrier == 'laposte'? $weight = 0.24: TRUE;
|
||||||
@ -745,7 +745,6 @@ class AdminLogistics extends AdminTab {
|
|||||||
<legend>'.$this->l('Print another Label').'</legend>\
|
<legend>'.$this->l('Print another Label').'</legend>\
|
||||||
<p> <label>'.$this->l('Product:').'</label> <span id="product-name"></span></p>\
|
<p> <label>'.$this->l('Product:').'</label> <span id="product-name"></span></p>\
|
||||||
<p> <label>'.$this->l('Ref:').'</label> <span id="product-ref"></span></p>\
|
<p> <label>'.$this->l('Ref:').'</label> <span id="product-ref"></span></p>\
|
||||||
<p> <label for="weight">'.$this->l('Weight:').'</label> <input type="text" value="\' + \'0\' + \'" name="weight" id="weight-reprint" /> kg </p>\
|
|
||||||
<p> <label for="products">'.$this->l('Quantity:').'</label> <input type="text" value="\' + \'1\' + \'" name="products[]" id="quantity-reprint" /></p>\
|
<p> <label for="products">'.$this->l('Quantity:').'</label> <input type="text" value="\' + \'1\' + \'" name="products[]" id="quantity-reprint" /></p>\
|
||||||
<input type="hidden" value="laposte" name="carrier" id="carrier-reprint" />\
|
<input type="hidden" value="laposte" name="carrier" id="carrier-reprint" />\
|
||||||
<input type="hidden" value="0" name="id_order" id="id_order-reprint" />\
|
<input type="hidden" value="0" name="id_order" id="id_order-reprint" />\
|
||||||
@ -835,8 +834,7 @@ class AdminLogistics extends AdminTab {
|
|||||||
$(".reprint").each(function(){
|
$(".reprint").each(function(){
|
||||||
$(this).click(function(e){
|
$(this).click(function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
$("span#product-name").html($(this).data("product"));
|
||||||
$("span#product-name").text($(this).data("product"));
|
|
||||||
$("span#product-ref").text($(this).data("ref"));
|
$("span#product-ref").text($(this).data("ref"));
|
||||||
$("#carrier-reprint").val($(this).data("carrier"));
|
$("#carrier-reprint").val($(this).data("carrier"));
|
||||||
$("#id_order-reprint").val($(this).data("id_order"));
|
$("#id_order-reprint").val($(this).data("id_order"));
|
||||||
|
Loading…
Reference in New Issue
Block a user