diff --git a/adm/mraddressedit.php b/adm/mraddressedit.php
index 760b3ab4..aa39ed9c 100644
--- a/adm/mraddressedit.php
+++ b/adm/mraddressedit.php
@@ -67,71 +67,23 @@ if($cookie->isLoggedBack() && $cart = Tools::getValue('id_cart')) {
+
+
-
-
+
+
+
+
+
-
-
- function updateForm(delivery_mode, address1, address2, address3, address4, postcode, city, prid) {
- $("select[name=delivery_mode]").val("");
- $("input[name=MR_Selected_LgAdr1]").val("");
- $("input[name=MR_Selected_LgAdr2]").val("");
- $("input[name=MR_Selected_LgAdr3]").val("");
- $("input[name=MR_Selected_LgAdr4]").val("");
- $("input[name=MR_Selected_CP]").val("");
- $("input[name=MR_Selected_Ville]").val("");
- $("input[name=MR_Selected_Num]").val("");
-
- $("select[name=delivery_mode]").val(delivery_mode);
- $("input[name=MR_Selected_LgAdr1]").val(address1);
- $("input[name=MR_Selected_LgAdr2]").val(address2);
- $("input[name=MR_Selected_LgAdr3]").val(address3);
- $("input[name=MR_Selected_LgAdr4]").val(address4);
- $("input[name=MR_Selected_CP]").val(postcode);
- $("input[name=MR_Selected_Ville]").val(city);
- $("input[name=MR_Selected_Num]").val(prid);
- }
-
- var enseigne = "F1BEBEBO";
- var isocode = "'.$address['MR_Selected_Pays'].'";
- var postcode = "'.$address['MR_Selected_CP'].'";
- var mode = "24R";
- var weight = '.(int)($weight * 1000).';
- if( weight == 0 ) weight = 100;
- var t;
- $(document).ready(function () {
- $("#Zone_Widget").MR_ParcelShopPicker({
- UseSSL : true,
- Weight: weight,
- Target: "#Target_Widget",
- TargetDisplay: "#TargetDisplay_Widget",
- TargetDisplayInfoPR: "#TargetDisplayInfoPR_Widget",
- Brand: enseigne,
- Country: isocode,
- PostCode: postcode,
- ColLivMod: mode,
- NbResults: "15",
- DisplayMapInfo: true,
- OnParcelShopSelected: function (data) {
- updateForm("24R",data.Nom,"",data.Adresse1,data.Adresse2,data.CP,data.Ville,data.ID);
- $("#cb_ID").html(data.ID);
- $("#cb_Nom").html(data.Nom);
- $("#cb_Adresse").html(data.Adresse1 + " " + data.Adresse2);
- $("#cb_CP").html(data.CP);
- $("#cb_Ville").html(data.Ville);
- $("#cb_Pays").html(data.Pays);
- }
- });
- });
- ';
- ?>
@@ -235,6 +187,63 @@ if($cookie->isLoggedBack() && $cart = Tools::getValue('id_cart')) {
+
+
+ function updateForm(delivery_mode, address1, address2, address3, address4, postcode, city, prid) {
+ $("select[name=delivery_mode]").val("");
+ $("input[name=MR_Selected_LgAdr1]").val("");
+ $("input[name=MR_Selected_LgAdr2]").val("");
+ $("input[name=MR_Selected_LgAdr3]").val("");
+ $("input[name=MR_Selected_LgAdr4]").val("");
+ $("input[name=MR_Selected_CP]").val("");
+ $("input[name=MR_Selected_Ville]").val("");
+ $("input[name=MR_Selected_Num]").val("");
+
+ $("select[name=delivery_mode]").val(delivery_mode);
+ $("input[name=MR_Selected_LgAdr1]").val(address1);
+ $("input[name=MR_Selected_LgAdr2]").val(address2);
+ $("input[name=MR_Selected_LgAdr3]").val(address3);
+ $("input[name=MR_Selected_LgAdr4]").val(address4);
+ $("input[name=MR_Selected_CP]").val(postcode);
+ $("input[name=MR_Selected_Ville]").val(city);
+ $("input[name=MR_Selected_Num]").val(prid);
+ }
+
+ var enseigne = "F1BEBEBO";
+ var isocode = "'.$address['MR_Selected_Pays'].'";
+ var postcode = "'.$address['MR_Selected_CP'].'";
+ var mode = "24R";
+ var weight = '.(int)($weight * 1000).';
+ if( weight == 0 ) weight = 100;
+ var t;
+ $(document).ready(function () {
+ $("#Zone_Widget").MR_ParcelShopPicker({
+ UseSSL : true,
+ Weight: weight,
+ Target: "#Target_Widget",
+ TargetDisplay: "#TargetDisplay_Widget",
+ TargetDisplayInfoPR: "#TargetDisplayInfoPR_Widget",
+ Brand: enseigne,
+ Country: isocode,
+ PostCode: postcode,
+ ColLivMod: mode,
+ NbResults: "15",
+ DisplayMapInfo: true,
+ OnParcelShopSelected: function (data) {
+ updateForm("24R",data.Nom,"",data.Adresse1,data.Adresse2,data.CP,data.Ville,data.ID);
+ $("#cb_ID").html(data.ID);
+ $("#cb_Nom").html(data.Nom);
+ $("#cb_Adresse").html(data.Adresse1 + " " + data.Adresse2);
+ $("#cb_CP").html(data.CP);
+ $("#cb_Ville").html(data.Ville);
+ $("#cb_Pays").html(data.Pays);
+ }
+ });
+ });
+ ';
+ ?>