Version Notes
fourth official commit
Download this release
Release Info
Developer | FIA-NET |
Extension | Fianet_Sceau |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
app/code/community/Fianet/Sceau/Helper/Data.php
CHANGED
@@ -8,7 +8,7 @@ class Fianet_Sceau_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
8 |
static function Generate_Sceau_xml(Mage_Sales_Model_Order $order) {
|
9 |
//récupération des informations
|
10 |
$email = $order->customer_email;
|
11 |
-
$timestamp = $order->created_at;
|
12 |
$refid = $order->increment_id;
|
13 |
$privatekey = Mage::getStoreConfig('sceau/sceauconfg/private_key', $order->getStoreId());
|
14 |
$crypt = md5($privatekey . "_" . $refid . "+" . $timestamp . "=" . $email);
|
@@ -17,8 +17,8 @@ class Fianet_Sceau_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
17 |
//Si l'IP de l'internaute n'est pas présente dans Magento (en cas de création de commande depuis le BO) alors on récupère l'IP de la boutique
|
18 |
$ip = (!$order->getRemoteIp()) ? $_SERVER['REMOTE_ADDR'] : $order->getRemoteIp();
|
19 |
//Zend_Debug::dump($order);die;
|
20 |
-
|
21 |
-
return("<?xml version='1.0' encoding='UTF-8' ?><control><utilisateur><nom titre='$order->
|
22 |
}
|
23 |
|
24 |
static public function clean_xml($xml) {
|
8 |
static function Generate_Sceau_xml(Mage_Sales_Model_Order $order) {
|
9 |
//récupération des informations
|
10 |
$email = $order->customer_email;
|
11 |
+
$timestamp = Mage::getModel('core/date')->date(null,strtotime($order->created_at));
|
12 |
$refid = $order->increment_id;
|
13 |
$privatekey = Mage::getStoreConfig('sceau/sceauconfg/private_key', $order->getStoreId());
|
14 |
$crypt = md5($privatekey . "_" . $refid . "+" . $timestamp . "=" . $email);
|
17 |
//Si l'IP de l'internaute n'est pas présente dans Magento (en cas de création de commande depuis le BO) alors on récupère l'IP de la boutique
|
18 |
$ip = (!$order->getRemoteIp()) ? $_SERVER['REMOTE_ADDR'] : $order->getRemoteIp();
|
19 |
//Zend_Debug::dump($order);die;
|
20 |
+
|
21 |
+
return("<?xml version='1.0' encoding='UTF-8' ?><control><utilisateur><nom titre='$order->customer_gender'><![CDATA[$order->customer_lastname]]></nom><prenom><![CDATA[$order->customer_firstname]]></prenom><email><![CDATA[$email]]></email></utilisateur><infocommande><siteid><![CDATA[$siteid]]></siteid><refid><![CDATA[$refid]]></refid><montant devise='$order->base_currency_code'><![CDATA[$order->base_grand_total]]></montant><ip timestamp='$timestamp'><![CDATA[$ip]]></ip></infocommande><crypt><![CDATA[$crypt]]></crypt></control>");
|
22 |
}
|
23 |
|
24 |
static public function clean_xml($xml) {
|
app/code/community/Fianet/Sceau/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Fianet_Sceau>
|
5 |
-
<version>1.0.
|
6 |
</Fianet_Sceau>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Fianet_Sceau>
|
5 |
+
<version>1.0.3</version>
|
6 |
</Fianet_Sceau>
|
7 |
</modules>
|
8 |
<global>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fianet_Sceau</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/OSL-3.0">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>FIA-NET Sceau de Confiance</summary>
|
10 |
<description>Seal of trust FIA-NET</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>FIA-NET</name><user>FIA-NET</user><email>support-boutique@fia-net.com</email></author></authors>
|
13 |
-
<date>2013-09-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Fianet"><dir name="Sceau"><dir name="Block"><dir name="Logo"><file name="Abstract.php" hash="c3b9d566fb937f5093e5d49b021e82df"/><file name="Footer.php" hash="af103617947cbbd5d5a32468757b691b"/><file name="Left.php" hash="87fb4aab3af002792282eaea5f806cf4"/><file name="Right.php" hash="692839ed3361af84561468245c15e4e3"/></dir><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="1728f5da74fa5ab799f603dfd338a1e1"/></dir><file name="Order.php" hash="8caae3cbc5d66a55505664027138d866"/></dir><dir name="Widget"><file name="Abstract.php" hash="34081f22dc73992f7b4fc6575ca7fd01"/><file name="Footer.php" hash="46b8ff738bebeb17b4c80bab3f8414a2"/><dir name="Grid"><dir name="Column"><dir name="Filter"><file name="Fianet.php" hash="97b2dadc4011ce836781cc7d7d6a244b"/></dir><dir name="Renderer"><file name="Fianet.php" hash="ddb152623c2fd3f832e0c22f81819a32"/></dir></dir></dir><file name="Left.php" hash="9a81ebcfd5dbd11a6f0a4a23158157ed"/><file name="Right.php" hash="807cf3507a6d4177f3bbdc8be3f14f11"/></dir></dir><dir name="Helper"><file name="Data.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.9</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fianet_Sceau</name>
|
4 |
+
<version>1.0.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/OSL-3.0">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>FIA-NET Sceau de Confiance</summary>
|
10 |
<description>Seal of trust FIA-NET</description>
|
11 |
+
<notes>fourth official commit</notes>
|
12 |
<authors><author><name>FIA-NET</name><user>FIA-NET</user><email>support-boutique@fia-net.com</email></author></authors>
|
13 |
+
<date>2013-09-27</date>
|
14 |
+
<time>09:18:48</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Fianet"><dir name="Sceau"><dir name="Block"><dir name="Logo"><file name="Abstract.php" hash="c3b9d566fb937f5093e5d49b021e82df"/><file name="Footer.php" hash="af103617947cbbd5d5a32468757b691b"/><file name="Left.php" hash="87fb4aab3af002792282eaea5f806cf4"/><file name="Right.php" hash="692839ed3361af84561468245c15e4e3"/></dir><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="1728f5da74fa5ab799f603dfd338a1e1"/></dir><file name="Order.php" hash="8caae3cbc5d66a55505664027138d866"/></dir><dir name="Widget"><file name="Abstract.php" hash="34081f22dc73992f7b4fc6575ca7fd01"/><file name="Footer.php" hash="46b8ff738bebeb17b4c80bab3f8414a2"/><dir name="Grid"><dir name="Column"><dir name="Filter"><file name="Fianet.php" hash="97b2dadc4011ce836781cc7d7d6a244b"/></dir><dir name="Renderer"><file name="Fianet.php" hash="ddb152623c2fd3f832e0c22f81819a32"/></dir></dir></dir><file name="Left.php" hash="9a81ebcfd5dbd11a6f0a4a23158157ed"/><file name="Right.php" hash="807cf3507a6d4177f3bbdc8be3f14f11"/></dir></dir><dir name="Helper"><file name="Data.php" hash="1f3344a2b098939d71eec4326e0a4634"/></dir><dir name="Model"><file name="Observer.php" hash="318e24eeaa741e963e88408c9b7a1076"/><file name="Order.php" hash="026f7cdddd49bc71a6e60a1574d634e4"/><dir name="Source"><file name="Mode.php" hash="ac805c9b29096a3f6b317809733298a8"/><file name="Status.php" hash="55a727b776e617289242db7bfeb46fce"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="f530a33b70b8f9d71762ebd9a283e399"/></dir><dir name="etc"><file name="config.xml" hash="b2fef07a3b61e285667ec04d289faf3f"/><file name="system.xml" hash="3f6b129f84f29f54c265c1730d86a11a"/></dir><dir name="sql"><dir name="fianet_sceau_setup"><file name="mysql4-install-1.0.0.php" hash="9f0b46620626a410a4e2006498760f55"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="fianet_sceau.xml" hash="60e2e663727d881bfe171e6a74ff9a83"/></dir><dir name="template"><dir name="fianet_sceau"><dir name="page"><dir name="html"><file name="logo.phtml" hash="642dc18c04fea9ef9b00e9cd56f23134"/><file name="sceau.phtml" hash="ef2c379a26b4b367b6608ef3f0c390e9"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="zFianet_Sceau.xml" hash="67bebe992318bda3fa18f94c045d6c8c"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Fianet_Sceau.csv" hash="22d1904630a097040c0cf1f9db82dfc9"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="sceau"><file name="ko.PNG" hash="fe3a3f44292e6f6f3e7d6c90d22ddd54"/><file name="ok.JPG" hash="ce957f7ccb1e07277f9302f0e1fe4908"/><file name="ok.PNG" hash="f751d2b0e1eb1883144c60a8c87db2cb"/><file name="top_left_block_login.png" hash="30eb50342a004e39ac69faa0f7654701"/><file name="warning.gif" hash="c774f46bf0af9b2e5bde5789901c5083"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="sceau"><file name="logo_fianet_sceau.png" hash="befd6502a28deb2384674f696b9e1aa3"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.9</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|