Version Notes
Corrige l'impossibilité de procéder à l'expédition de certaines commandes. Plus précisément, correction du message "Erreur Numéro de client enseigne invalide" qui s'avérait survenir lorsque le patronyme du destinataire était "trop" long (Merci à Julien - heureusement qui y'en a qui suivent ^^ - et, surtout, à Mondial Relay pour sa documentation technique très fiable et, de manière générale, pour leur collaboration de tous les instants)
Corrige l'impossibilité de sélectionner les points relais (oui, c'est fâcheux) dans le cas où Mondial Relay est la seule méthode d'expédition est paramétrée.
Download this release
Release Info
Developer | Emmanuel Catrysse |
Extension | man4x_mondialrelay |
Version | 1.4.5 |
Comparing to | |
See all releases |
Code changes from version 1.4.4 to 1.4.5
- app/code/community/Man4x/MondialRelay/Model/Carrier/Abstract.php +1 -1
- app/code/community/Man4x/MondialRelay/etc/config.xml +1 -1
- app/design/frontend/base/default/template/Man4x_MondialRelay/paypalexpress/shippingmethods.phtml +67 -0
- app/design/frontend/base/default/template/Man4x_MondialRelay/shippingmethods.phtml +4 -2
- package.xml +6 -9
app/code/community/Man4x/MondialRelay/Model/Carrier/Abstract.php
CHANGED
@@ -566,7 +566,7 @@ class Man4x_MondialRelay_Model_Carrier_Abstract extends Mage_Shipping_Model_Carr
|
|
566 |
'ModeCol' => $this->_getGenericConfigData('collection_mode', $_store), // Collection mode
|
567 |
'ModeLiv' => $_shippingMethod[1], // 24R, LCD...
|
568 |
'NDossier' => $order->getIncrementId(),
|
569 |
-
'NClient' => substr($_helper->removeAccent(preg_replace("/[^A-Za-z]/", "", $order->getBillingAddress()->getLastname())), 0,
|
570 |
// 'Expe_Langage' => strtoupper(substr(Mage::app()->getLocale()->getLocaleCode(), 0, 2)), // Backend language
|
571 |
'Expe_Langage' => 'FR',
|
572 |
'Expe_Ad1' => $_helper->removeAccent($_senderAddress[0]), // Sender address
|
566 |
'ModeCol' => $this->_getGenericConfigData('collection_mode', $_store), // Collection mode
|
567 |
'ModeLiv' => $_shippingMethod[1], // 24R, LCD...
|
568 |
'NDossier' => $order->getIncrementId(),
|
569 |
+
'NClient' => substr($_helper->removeAccent(preg_replace("/[^A-Za-z]/", "", $order->getBillingAddress()->getLastname())), 0, 8),
|
570 |
// 'Expe_Langage' => strtoupper(substr(Mage::app()->getLocale()->getLocaleCode(), 0, 2)), // Backend language
|
571 |
'Expe_Langage' => 'FR',
|
572 |
'Expe_Ad1' => $_helper->removeAccent($_senderAddress[0]), // Sender address
|
app/code/community/Man4x/MondialRelay/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Man4x_MondialRelay>
|
5 |
-
<version>1.4.
|
6 |
<depends>
|
7 |
<Mage_Adminhtml />
|
8 |
<Mage_Shipping />
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Man4x_MondialRelay>
|
5 |
+
<version>1.4.5</version>
|
6 |
<depends>
|
7 |
<Mage_Adminhtml />
|
8 |
<Mage_Shipping />
|
app/design/frontend/base/default/template/Man4x_MondialRelay/paypalexpress/shippingmethods.phtml
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Copyright (c) 2013 Man4x
|
4 |
+
*
|
5 |
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
|
6 |
+
* to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
7 |
+
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
8 |
+
*
|
9 |
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
10 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
11 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
12 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
13 |
+
* IN THE SOFTWARE.
|
14 |
+
*
|
15 |
+
* @project Magento Man4x Mondial Relay Module
|
16 |
+
* @desc Template for dealing Mondial Relay shipping methods with Paypal Express Checkout
|
17 |
+
* (pick-up selection and pick-up info)
|
18 |
+
* Added through handle <checkout_onepage_shippingmethod>
|
19 |
+
* @block Man4x_MondialRelay_Block_Info
|
20 |
+
* @author Emmanuel Catrysse (man4x[@]hotmail[.]fr)
|
21 |
+
* @license http://www.opensource.org/licenses/MIT The MIT License (MIT)
|
22 |
+
*/
|
23 |
+
?>
|
24 |
+
|
25 |
+
<script type="text/javascript">
|
26 |
+
//<![CDATA[
|
27 |
+
$('shipping_method').options.each(
|
28 |
+
function(e, i) {
|
29 |
+
if (e.value == 'mondialrelaypickup_24R') {
|
30 |
+
e.text = "<?php echo (Mage::helper('mondialrelay')->__('Click to select your pick-up location')); ?>";
|
31 |
+
throw $break;
|
32 |
+
}
|
33 |
+
}
|
34 |
+
);
|
35 |
+
|
36 |
+
function anchorToSelectedPickup(e) {
|
37 |
+
// return element where to insert selected pickup div
|
38 |
+
return $(e.parentNode);
|
39 |
+
}
|
40 |
+
|
41 |
+
Event.observe($('shipping_method'), 'change', function()
|
42 |
+
{
|
43 |
+
if (this.getValue() == 'mondialrelaypickup_24R') {
|
44 |
+
if ($('pickup-selected')) {$('pickup-selected').show();
|
45 |
+
if ($('pickup_popup')) {$('pickup_popup').show();}
|
46 |
+
else {
|
47 |
+
$(document.body).insert({bottom: '<div id="pickup_popup"></div>'});
|
48 |
+
new Ajax.Request('<?php echo $this->getPickupPopupUrl(); ?>', {
|
49 |
+
evalScripts: true,
|
50 |
+
onCreate: function() {$('pickup-please-wait').show();},
|
51 |
+
onSuccess: function(transport) {
|
52 |
+
$('pickup-please-wait').hide();
|
53 |
+
$('pickup_popup').update();
|
54 |
+
$('pickup_popup').update(transport.responseText);
|
55 |
+
}
|
56 |
+
}
|
57 |
+
);
|
58 |
+
_parent = anchorToSelectedPickup();
|
59 |
+
var _divWait = new Element('div', {id: 'pickup-please-wait', style: 'display:none;'}).update("<img src='<?php echo $this->getSkinUrl('images/Man4x_MondialRelay/mondialrelay_ajax_loading_50x55.gif')?>' />");
|
60 |
+
_parent.insert(_divWait);
|
61 |
+
var _div = new Element('div', {id: 'pickup-selected', style: 'display:none;'}).update("<p class='message'><?php echo (Mage::helper('mondialrelay')->__('Selected pick-up:'))?></p><div id='pickup-address'></p>");
|
62 |
+
_parent.insert(_div);
|
63 |
+
}
|
64 |
+
}
|
65 |
+
});
|
66 |
+
//]]>
|
67 |
+
</script>
|
app/design/frontend/base/default/template/Man4x_MondialRelay/shippingmethods.phtml
CHANGED
@@ -25,11 +25,13 @@
|
|
25 |
//<![CDATA[
|
26 |
function anchorToMethodDescription(e) {
|
27 |
// return element where to insert method description
|
28 |
-
|
|
|
29 |
}
|
30 |
function anchorToPickupSelectionLink(e) {
|
31 |
// return element where to insert pickup selection link
|
32 |
-
|
|
|
33 |
}
|
34 |
function anchorToInfoLink(e) {
|
35 |
// return element where to insert pickup info link
|
25 |
//<![CDATA[
|
26 |
function anchorToMethodDescription(e) {
|
27 |
// return element where to insert method description
|
28 |
+
if (e.parentNode.hasClassName('no-display')) {return e.parentNode.parentNode;}
|
29 |
+
else {return $(e.parentNode);}
|
30 |
}
|
31 |
function anchorToPickupSelectionLink(e) {
|
32 |
// return element where to insert pickup selection link
|
33 |
+
if (e.parentNode.hasClassName('no-display')) {return e.parentNode.parentNode;}
|
34 |
+
else {return $(e.parentNode);}
|
35 |
}
|
36 |
function anchorToInfoLink(e) {
|
37 |
// return element where to insert pickup info link
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>man4x_mondialrelay</name>
|
4 |
-
<version>1.4.
|
5 |
<stability>stable</stability>
|
6 |
<license>Massachusetts Institute of Technology License (MITL)</license>
|
7 |
<channel>community</channel>
|
@@ -13,15 +13,12 @@ WARNING: this module is not compatible with MondialRelay_Pointsrelais unless man
|
|
13 |
------------------------------------------------------------
|
14 |
(FR) Ce module a été inspiré par le module MondialRelay_Pointsrelais disponible sur Magento Connect dans le but de corriger certaines limitations de ce dernier (expéditions par lot, sélection des points relais sur carte ou par liste, interception des erreurs d'enregistrement...)
|
15 |
ATTENTION: ce module n'est pas compatible en l'état avec le module MondialRelay_Pointsrelais (voir documentation).</description>
|
16 |
-
<notes>Corrige
|
17 |
-
|
18 |
-
Facilitation de l'adaptation aux thèmes tiers et aux anciens navigateurs (merci Yannick)
|
19 |
-
Correction d'un bug provoquant la création d'une entrée indésirable dans la table sales_flat_order_address (merci Jean-Yves)
|
20 |
-
Corrige la disparition des points relais lors de la réouverture du formulaire de sélection sur carte</notes>
|
21 |
<authors><author><name>Emmanuel Catrysse</name><user>Peppermay</user><email>man4x@hotmail.fr</email></author></authors>
|
22 |
-
<date>2014-
|
23 |
-
<time>19:
|
24 |
-
<contents><target name="magecommunity"><dir name="Man4x"><dir name="MondialRelay"><dir name="Block"><dir name="Checkout"><file name="Pickupinfo.php" hash="b774e5e1cca5083c9a84745670a74570"/><file name="Pickuppopup.php" hash="c53b342e9204420d786d8b4fc3650d20"/><file name="Shippingmethods.php" hash="90341019c54dbf5d8e1d5cad5f78c39c"/></dir><dir name="Sales"><dir name="Labelprinting"><file name="Grid.php" hash="1a65b8aa1c348dc5e9a6023892d79723"/></dir><file name="Labelprinting.php" hash="81ebc053dc63066e0a80b24c40f2e13d"/><dir name="Massshipping"><file name="Grid.php" hash="d8fb048cae771ce4e68af7e99da4600b"/></dir><file name="Massshipping.php" hash="7c07785430761c0dbfb774e03787fe2e"/></dir></dir><dir name="Helper"><file name="Data.php" hash="14fc41549fecddbf58b6526bc61748c9"/></dir><dir name="Model"><dir name="Carrier"><file name="Abstract.php" hash="
|
25 |
<compatible/>
|
26 |
<dependencies><required><php><min>5.0.0</min><max>5.5.3</max></php></required></dependencies>
|
27 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>man4x_mondialrelay</name>
|
4 |
+
<version>1.4.5</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>Massachusetts Institute of Technology License (MITL)</license>
|
7 |
<channel>community</channel>
|
13 |
------------------------------------------------------------
|
14 |
(FR) Ce module a été inspiré par le module MondialRelay_Pointsrelais disponible sur Magento Connect dans le but de corriger certaines limitations de ce dernier (expéditions par lot, sélection des points relais sur carte ou par liste, interception des erreurs d'enregistrement...)
|
15 |
ATTENTION: ce module n'est pas compatible en l'état avec le module MondialRelay_Pointsrelais (voir documentation).</description>
|
16 |
+
<notes>Corrige l'impossibilité de procéder à l'expédition de certaines commandes. Plus précisément, correction du message "Erreur Numéro de client enseigne invalide" qui s'avérait survenir lorsque le patronyme du destinataire était "trop" long (Merci à Julien - heureusement qui y'en a qui suivent ^^ - et, surtout, à Mondial Relay pour sa documentation technique très fiable et, de manière générale, pour leur collaboration de tous les instants)
|
17 |
+
Corrige l'impossibilité de sélectionner les points relais (oui, c'est fâcheux) dans le cas où Mondial Relay est la seule méthode d'expédition est paramétrée.</notes>
|
|
|
|
|
|
|
18 |
<authors><author><name>Emmanuel Catrysse</name><user>Peppermay</user><email>man4x@hotmail.fr</email></author></authors>
|
19 |
+
<date>2014-05-07</date>
|
20 |
+
<time>19:11:25</time>
|
21 |
+
<contents><target name="magecommunity"><dir name="Man4x"><dir name="MondialRelay"><dir name="Block"><dir name="Checkout"><file name="Pickupinfo.php" hash="b774e5e1cca5083c9a84745670a74570"/><file name="Pickuppopup.php" hash="c53b342e9204420d786d8b4fc3650d20"/><file name="Shippingmethods.php" hash="90341019c54dbf5d8e1d5cad5f78c39c"/></dir><dir name="Sales"><dir name="Labelprinting"><file name="Grid.php" hash="1a65b8aa1c348dc5e9a6023892d79723"/></dir><file name="Labelprinting.php" hash="81ebc053dc63066e0a80b24c40f2e13d"/><dir name="Massshipping"><file name="Grid.php" hash="d8fb048cae771ce4e68af7e99da4600b"/></dir><file name="Massshipping.php" hash="7c07785430761c0dbfb774e03787fe2e"/></dir></dir><dir name="Helper"><file name="Data.php" hash="14fc41549fecddbf58b6526bc61748c9"/></dir><dir name="Model"><dir name="Carrier"><file name="Abstract.php" hash="9b34af84c59ac65b5ca9f96743c558eb"/><file name="Home.php" hash="1e995970559481c69b92d3de35b929c2"/><file name="Pickup.php" hash="49b54427377802f572aa3b40f0e10c5a"/><dir name="_notes"><file name="dwsync.xml" hash="a494e9d4cf1e2a9cae531cd64db0144e"/></dir></dir><file name="Observer.php" hash="34ed3366f06eb39b58f6016593ee66d1"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Collectionmode.php" hash="42afabe9e62a9ece2b5eb35d0e0883fc"/><file name="Condition.php" hash="e33f3bc3382d364d081ddd7aeaf88554"/><file name="Weightunit.php" hash="57ffe1e480b53851363b5b2a190b3d6d"/></dir><dir name="Validation"><file name="Senderaddress.php" hash="fc948ec1b7b0e8fb78d7e2bfcdee1cbb"/><file name="Tablerate.php" hash="d19a6de215b020bb2ad1f8cd3017b4d5"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="21397051d1e5ecd38b36468c7991a9ec"/><dir name="Sales"><file name="ShippingController.php" hash="d1d78f0b02edf964677700268e4e4062"/></dir></dir><dir name="doc"><file name="guide_man4x_mondialrelay_1_4_0_fr.pdf" hash="c1cba4b3f469096c935268377a932ef2"/></dir><dir name="etc"><dir name="_notes"><file name="dwsync.xml" hash="080663fcb4b12277da7e534655358e9c"/></dir><file name="adminhtml.xml" hash="8c62dc7ecb883783e2e65d46a60b154f"/><file name="config.xml" hash="9c327fc289e86cca941a0b2f0e95897b"/><file name="system.xml" hash="e6af84a3a6b40a3920a54b308cd03c78"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="Man4x_MondialRelay.xml" hash="eaf0e0972f6ab93544fdd8a6ca45a244"/></dir><dir name="template"><dir name="Man4x_MondialRelay"><dir name="paypalexpress"><file name="shippingmethods.phtml" hash="a21211142621711e3a62311a15e583b3"/></dir><file name="pickupinfo.phtml" hash="2dc3181d30a0aa6fd025efed6125e105"/><file name="pickuppopup.phtml" hash="6e5a7e48e007b3e5003ce3dc92b75782"/><file name="shippingmethods.phtml" hash="788c47fc00df61100ebed1d9f8cfd877"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Man4x_MondialRelay.xml" hash="cbf764631c906fbf3b9bcee94199d078"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Man4x_MondialRelay.csv" hash="a67c688d803084ae05cbbfb8df0d806e"/></dir><dir name="fr_FR"><file name="Man4x_MondialRelay.csv" hash="1a64300dfa05e8a4f4f12ed55cce7723"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="Man4x_MondialRelay.css" hash="5d5d0a2daee798a4d8ea5f921c0b8bd4"/></dir><dir name="images"><dir name="Man4x_MondialRelay"><file name="btn_details.png" hash="39a00ac148c2e3dc44bd42670ee74c5b"/><file name="btn_search.png" hash="56fb89eea54a9804059dcd146dfaaadd"/><file name="close_icon.png" hash="f8422d11f273f2690226160682d80f10"/><file name="logo_mondialrelay.gif" hash="95bc996ef1c8fce2b8cc7b0b864d6f52"/><file name="logo_mondialrelay_20.gif" hash="ac7ca03f8638455ce33dd8ca9c17c475"/><file name="mondialrelay_ajax_loading.gif" hash="ef4b7ef99db4254577aac23fff5ff50b"/><file name="mondialrelay_ajax_loading_50x55.gif" hash="b260ebcedb57b84557917ecc748469ff"/><file name="mondialrelay_mapicon.png" hash="42af394899f3cb4dee42dacea2acb5b5"/><file name="mondialrelay_mapicon_1.png" hash="3511c130456b2458d79479d45795905d"/><file name="mondialrelay_mapicon_10.png" hash="69b080af207b00e483cf5d8f777f97c1"/><file name="mondialrelay_mapicon_2.png" hash="77c3d618194755e5a010af27dd41f0fa"/><file name="mondialrelay_mapicon_3.png" hash="1a7f0e3de53a15fcf941ae3c525eb933"/><file name="mondialrelay_mapicon_4.png" hash="c4cc20ceddec609055b4ba475d1ce97a"/><file name="mondialrelay_mapicon_5.png" hash="facfda8086ddfecc7994114c32c64a06"/><file name="mondialrelay_mapicon_6.png" hash="f0f599ec3b987ee47ae00faf8cb220f0"/><file name="mondialrelay_mapicon_7.png" hash="0d37a31e4efaf6262a4e752955904c69"/><file name="mondialrelay_mapicon_8.png" hash="46254dd13dfc515edc66281f708f2f26"/><file name="mondialrelay_mapicon_9.png" hash="304700bc1fa27f97e5b45e5b8bba593f"/></dir></dir></dir></dir></dir></target></contents>
|
22 |
<compatible/>
|
23 |
<dependencies><required><php><min>5.0.0</min><max>5.5.3</max></php></required></dependencies>
|
24 |
</package>
|