Version Notes
- Bugfixes
Download this release
Release Info
Developer | Konduto |
Extension | Konduto |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- app/code/community/Konduto/Score/Helper/Order.php +21 -21
- package.xml +5 -6
app/code/community/Konduto/Score/Helper/Order.php
CHANGED
@@ -12,7 +12,7 @@ class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
|
|
12 |
if ($odm->getCustomerId() == '' || $odm->getCustomerId() == NULL) { $customer_id = $odm->getCustomerEmail(); }
|
13 |
else { $customer_id = $odm->getCustomerId(); }
|
14 |
|
15 |
-
$data['id'] = $od;
|
16 |
$data['total_amount'] = (float) $odm->getGrandTotal();
|
17 |
$data['shipping_amount'] = (float) $odm->getShippingAmount();
|
18 |
$data['tax_amount'] = (float) $odm->getTaxAmount();
|
@@ -20,29 +20,29 @@ class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
|
|
20 |
$data['visitor'] = $visitor;
|
21 |
$data['ip'] = $odm->getRemoteIp();
|
22 |
$data['customer'] = array(
|
23 |
-
'id' => $customer_id,
|
24 |
-
'name' => $odm->getCustomerFirstname() . " " . $odm->getCustomerLastname(),
|
25 |
-
'phone1' => $billing['telephone'],
|
26 |
-
'email' => $odm->getCustomerEmail()
|
27 |
);
|
28 |
if (!($odm->getCustomerTaxvat() == NULL || $odm->getCustomerTaxvat() == " ")) {
|
29 |
-
$data['customer']['tax_id'] = $odm->getCustomerTaxvat();
|
30 |
}
|
31 |
$data['billing'] = array(
|
32 |
-
'name' => $billing['firstname'] . " " . $billing['lastname'],
|
33 |
-
'address1' => $billing['street'],
|
34 |
-
'city' => $billing['city'],
|
35 |
-
'state' => $billing['region'],
|
36 |
-
'zip' => $billing['postcode'],
|
37 |
-
'country' => $billing['country_id']
|
38 |
);
|
39 |
$data['shipping'] = array(
|
40 |
-
'name' => $shipping['firstname'] . " " . $shipping['lastname'],
|
41 |
-
'address1' => $shipping['street'],
|
42 |
-
'city' => $shipping['city'],
|
43 |
-
'state' => $shipping['region'],
|
44 |
-
'zip' => $shipping['postcode'],
|
45 |
-
'country' => $shipping['country_id']
|
46 |
);
|
47 |
|
48 |
$paymet = $this->getPaymentDetails($odm);
|
@@ -56,10 +56,10 @@ class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
|
|
56 |
foreach ($items as $item) {
|
57 |
if ($item->getQtyToInvoice() > 0) {
|
58 |
$shopping_cart[] = array(
|
59 |
-
'sku' => $item->getSku(),
|
60 |
-
'product_code' => $item->getProductId(),
|
61 |
//'category' => 9999,
|
62 |
-
'name' => $item->getName(),
|
63 |
//'unit_cost' => $item->getPrice() * 1,
|
64 |
//'quantity' => (int) $item->getQtyToInvoice(),
|
65 |
);
|
12 |
if ($odm->getCustomerId() == '' || $odm->getCustomerId() == NULL) { $customer_id = $odm->getCustomerEmail(); }
|
13 |
else { $customer_id = $odm->getCustomerId(); }
|
14 |
|
15 |
+
$data['id'] = substr($od,0,100);
|
16 |
$data['total_amount'] = (float) $odm->getGrandTotal();
|
17 |
$data['shipping_amount'] = (float) $odm->getShippingAmount();
|
18 |
$data['tax_amount'] = (float) $odm->getTaxAmount();
|
20 |
$data['visitor'] = $visitor;
|
21 |
$data['ip'] = $odm->getRemoteIp();
|
22 |
$data['customer'] = array(
|
23 |
+
'id' => substr($customer_id,0,100),
|
24 |
+
'name' => substr($odm->getCustomerFirstname() . " " . $odm->getCustomerLastname(),0,100),
|
25 |
+
'phone1' => substr($billing['telephone'],0,100),
|
26 |
+
'email' => substr($odm->getCustomerEmail(),0,100)
|
27 |
);
|
28 |
if (!($odm->getCustomerTaxvat() == NULL || $odm->getCustomerTaxvat() == " ")) {
|
29 |
+
$data['customer']['tax_id'] = substr($odm->getCustomerTaxvat(),0,100);
|
30 |
}
|
31 |
$data['billing'] = array(
|
32 |
+
'name' => substr($billing['firstname'] . " " . $billing['lastname'],0,100),
|
33 |
+
'address1' => substr($billing['street'],0,100),
|
34 |
+
'city' => substr($billing['city'],0,100),
|
35 |
+
'state' => substr($billing['region'],0,100),
|
36 |
+
'zip' => substr($billing['postcode'],0,100),
|
37 |
+
'country' => substr($billing['country_id'],0,100)
|
38 |
);
|
39 |
$data['shipping'] = array(
|
40 |
+
'name' => substr($shipping['firstname'] . " " . $shipping['lastname'],0,100),
|
41 |
+
'address1' => substr($shipping['street'],0,255),
|
42 |
+
'city' => substr($shipping['city'],0,100),
|
43 |
+
'state' => substr($shipping['region'],0,100),
|
44 |
+
'zip' => substr($shipping['postcode'],0,100),
|
45 |
+
'country' => substr($shipping['country_id'],0,100)
|
46 |
);
|
47 |
|
48 |
$paymet = $this->getPaymentDetails($odm);
|
56 |
foreach ($items as $item) {
|
57 |
if ($item->getQtyToInvoice() > 0) {
|
58 |
$shopping_cart[] = array(
|
59 |
+
'sku' => substr($item->getSku(),0,100),
|
60 |
+
'product_code' => substr($item->getProductId(),0,100),
|
61 |
//'category' => 9999,
|
62 |
+
'name' => substr($item->getName(),0,100),
|
63 |
//'unit_cost' => $item->getPrice() * 1,
|
64 |
//'quantity' => (int) $item->getQtyToInvoice(),
|
65 |
);
|
package.xml
CHANGED
@@ -1,19 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Konduto</name>
|
4 |
-
<version>1.3.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSLv3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Konduto fraud detection service integration</summary>
|
10 |
<description>Konduto is a fraud detection service that helps e-commerce merchants spot fraud with Buying Behavior</description>
|
11 |
-
<notes>-
|
12 |
-
- Deprecated Manual mode</notes>
|
13 |
<authors><author><name>Konduto</name><user>konduto</user><email>magentoconnect@konduto.com</email></author><author><name>Excellence Technologies</name><user>manish</user><email>manish@excellencetechnologies.in</email></author></authors>
|
14 |
-
<date>2014-09-
|
15 |
-
<time>
|
16 |
-
<contents><target name="magecommunity"><dir name="Konduto"><dir name="Score"><dir name="Block"><dir name="Adminhtml"><dir name="Order"><file name="Grid.php" hash="befb067ef6c9badc9879fa3e27b5b690"/></dir></dir><dir name="Product"><file name="View.php" hash="26e9a7dda59bf978431e2cf564c59da1"/></dir></dir><dir name="Helper"><file name="Data.php" hash="4eb1e86fb4c5f3833f5d055d594b6a16"/><file name="Order.php" hash="
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.1.0</min><max>1.8.1.0</max></package><extension><name>gd</name><min>2.0.28</min><max>3.0</max></extension></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Konduto</name>
|
4 |
+
<version>1.3.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSLv3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Konduto fraud detection service integration</summary>
|
10 |
<description>Konduto is a fraud detection service that helps e-commerce merchants spot fraud with Buying Behavior</description>
|
11 |
+
<notes>- Bugfixes</notes>
|
|
|
12 |
<authors><author><name>Konduto</name><user>konduto</user><email>magentoconnect@konduto.com</email></author><author><name>Excellence Technologies</name><user>manish</user><email>manish@excellencetechnologies.in</email></author></authors>
|
13 |
+
<date>2014-09-16</date>
|
14 |
+
<time>12:48:56</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Konduto"><dir name="Score"><dir name="Block"><dir name="Adminhtml"><dir name="Order"><file name="Grid.php" hash="befb067ef6c9badc9879fa3e27b5b690"/></dir></dir><dir name="Product"><file name="View.php" hash="26e9a7dda59bf978431e2cf564c59da1"/></dir></dir><dir name="Helper"><file name="Data.php" hash="4eb1e86fb4c5f3833f5d055d594b6a16"/><file name="Order.php" hash="953e22602d419ce41d13e5d5903ce8c2"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Score"><file name="Collection.php" hash="2dedf14be82d224d6d8f56fe1a4fa5fc"/></dir><file name="Score.php" hash="938cbb8ae489bc9b0c39e75ca0f180f1"/></dir><file name="Observer.php" hash="1e63bfe563d1e28a4554a17ee2246f7f"/><file name="Score.php" hash="d9f8efdb0b45bbb00c0faf62e23c2b26"/><dir name="System"><file name="Review.php" hash="141b400a28bf7f280f2bddf582eb4949"/><file name="Save.php" hash="bf9ea71ab97abc105b5b31577d128e4b"/><file name="Select.php" hash="7af3a6cc2f51f3c503385406d381307a"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ScoreController.php" hash="7d4fbada790473cd7a5a896ef15c0795"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="df125e243e6163fcd0a4c1401c0e18c6"/><file name="config.xml" hash="57701175b205f3a621f28b77b800f695"/><file name="system.xml" hash="9946ce3210bb4b8a3cbe9761ad2604e1"/></dir><dir name="sql"><dir name="score_setup"><file name="mysql4-install-0.1.0.php" hash="81b07a2cfb4bb6910166e1f6cfa9a838"/></dir></dir><file name=".DS_Store" hash="ed5404ee4fca157855a4d89ccbfb01d6"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Konduto_Score.xml" hash="c549e42d553ccdeeb1e1ff8e7af82194"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="score.xml" hash="ce8033fbd64586bbe5ae8c2b2a6c2e3c"/></dir><dir name="template"><dir name="score"><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="928ede4ea46893156290655727b862cf"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="score.xml" hash="2c92434bd76a1ccb2023a2db9a122949"/></dir><dir name="template"><dir name="score"><file name="score.phtml" hash="7a031dbc59e542264fc3c7386b0e1a06"/><file name="getId.phtml" hash="e3df324fdf29fa9c48ed02a799458d51"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="pt_BR"><file name="Konduto_Score.csv" hash="bcaaffafb83622e99489afb39c688a50"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.1.0</min><max>1.8.1.0</max></package><extension><name>gd</name><min>2.0.28</min><max>3.0</max></extension></required></dependencies>
|
18 |
</package>
|