Version Notes
1.4.4
Faster unconvertedcarts.
CustomerTaxClass added to orders and customer Actions
1.4.3
New attrInfoAction and entityTypeInfoAction added to tracked changes in Magento data.
1.4.2
Disconnect API version from module version for sites that cache module XML file
1.4.1
Improved order processing speed.
Multi store URL info.
Shipping address tracked.
gte option for orders,customers, products, carts and subscribers.
Status option for subscribersAction
Update carts action skip non identifed carts.
1.4.0
Split stats action into
stats and logstats
Updated customersAction to return custom attributes.
1.3.9
Added eavinfo_catalogAction
Products action now retuns full url of product images.
testing new testcustomerAction
1.3.8
Changed table exists function
mocoauto_api_error - API errors prefix
1.3.7
Added non sensitive payment info to orderAction
1.3.5
Faster uncovertedcarts
1.3.4
log_all_joined
1.3.3
Added rulesAction - for details on coupon and shopping carts rule.
1.3.2
Exception handles for uncoverted carts.
Changed catalogue tax rate processing.
1.3.1
Added graceful exception handling for installations that have misconfigured product attributes
1.3.0
Check direct SQL methods defined
exproducts
exstats
report version of php
1.2.9
Default tax rate fro products returned with producAction
1.2.8
storesAction now returns store config data
1.2.7
log stats function calculates using direct SQL
1.2.6
StatsAction now returns size of log files
1.2.5
Speed up stocklevelAction, now only returns non zero inventory
WishlistAction now includes wishListItemId
1.2.4
Added wishlistsAction
Added unconvertedcartsAction
Fix - log actions now check if table exists
1.2.3
Fix to Observer.php
1.2.2
Added subscribersAction
Added storesAction
1.2.1
ordersAction - now uses billing address as some products (Virtual) won't have a delivery address and checks that object exists
1.2.0
ordersAction - added shpping address
productsAction - added end of record marker
stocklevelsAction - New
Added log_ actions
1.1.7
Added malformed error
Returns API version number with failed calls
1.1.6
Changed API header name to work with sites that use additional authorisation now:
mocoapi: apikey= THE API KEY
1.1.5
Updated stats API now includes:
Version of magento
System date/time
added success true for succesful requests
changed product category to moco_category
Release Info
Developer | Rob Davies |
Extension | MocoInsight_Mocoauto |
Version | 1.4.4 |
Comparing to | |
See all releases |
Code changes from version 1.4.3 to 1.4.4
@@ -30,7 +30,7 @@
|
|
30 |
// entityTypeInfoAction
|
31 |
|
32 |
|
33 |
-
define("apiversion","1.4.
|
34 |
|
35 |
class MocoInsight_Mocoauto_ApiController extends Mage_Core_Controller_Front_Action
|
36 |
{
|
@@ -464,6 +464,10 @@ class MocoInsight_Mocoauto_ApiController extends Mage_Core_Controller_Front_Acti
|
|
464 |
}
|
465 |
$order['payment_method'] = $_order->getPayment()->getMethodInstance()->getTitle();
|
466 |
|
|
|
|
|
|
|
|
|
467 |
|
468 |
if(is_object($_order->getBillingAddress())){
|
469 |
$_billing_address = $_order->getBillingAddress();
|
@@ -678,6 +682,11 @@ class MocoInsight_Mocoauto_ApiController extends Mage_Core_Controller_Front_Acti
|
|
678 |
}
|
679 |
}
|
680 |
|
|
|
|
|
|
|
|
|
|
|
681 |
$customers[] = $customer;
|
682 |
}
|
683 |
|
@@ -1406,8 +1415,10 @@ class MocoInsight_Mocoauto_ApiController extends Mage_Core_Controller_Front_Acti
|
|
1406 |
'customer_email', //attribute_2 with key 1
|
1407 |
),
|
1408 |
array(
|
1409 |
-
|
1410 |
-
|
|
|
|
|
1411 |
)
|
1412 |
);
|
1413 |
|
@@ -1424,8 +1435,11 @@ class MocoInsight_Mocoauto_ApiController extends Mage_Core_Controller_Front_Acti
|
|
1424 |
$_cartsCol->addFieldToFilter('entity_id', array('gteq' =>$gTE)); // If gte set include records GTE gte
|
1425 |
}
|
1426 |
|
|
|
|
|
1427 |
$carts = array();
|
1428 |
|
|
|
1429 |
foreach($_cartsCol as $_cart) {
|
1430 |
try {
|
1431 |
$carts[] = array('moco_start_of_cart_record' => 'True');
|
@@ -1481,6 +1495,8 @@ class MocoInsight_Mocoauto_ApiController extends Mage_Core_Controller_Front_Acti
|
|
1481 |
$_cartsCol->addFieldToFilter('entity_id', $entityId);
|
1482 |
}
|
1483 |
|
|
|
|
|
1484 |
$carts = array();
|
1485 |
|
1486 |
foreach($_cartsCol as $_cart) {
|
30 |
// entityTypeInfoAction
|
31 |
|
32 |
|
33 |
+
define("apiversion","1.4.4");
|
34 |
|
35 |
class MocoInsight_Mocoauto_ApiController extends Mage_Core_Controller_Front_Action
|
36 |
{
|
464 |
}
|
465 |
$order['payment_method'] = $_order->getPayment()->getMethodInstance()->getTitle();
|
466 |
|
467 |
+
$_quote = Mage::getModel('sales/quote')->load($_order->getQuoteId());
|
468 |
+
$taxClassId = $_quote->getCustomerTaxClassId();
|
469 |
+
$_taxClass = Mage::getModel('tax/class')->load($taxClassId);
|
470 |
+
$order['moco_customer_tax_class'] = $_taxClass->getClassName();
|
471 |
|
472 |
if(is_object($_order->getBillingAddress())){
|
473 |
$_billing_address = $_order->getBillingAddress();
|
682 |
}
|
683 |
}
|
684 |
|
685 |
+
$taxClassId = $_customer->getTaxClassId();
|
686 |
+
$taxClass = Mage::getModel('tax/class')->load($taxClassId);
|
687 |
+
$customer['moco_customer_tax_class'] = $taxClass->getClassName();
|
688 |
+
|
689 |
+
|
690 |
$customers[] = $customer;
|
691 |
}
|
692 |
|
1415 |
'customer_email', //attribute_2 with key 1
|
1416 |
),
|
1417 |
array(
|
1418 |
+
// array('neq'=>null), //condition for attribute_1 with key 0
|
1419 |
+
// array('neq'=>null), //condition for attribute_2
|
1420 |
+
array('notnull'=>1), // This form creates a NOT NULL query.
|
1421 |
+
array('notnull'=>1),
|
1422 |
)
|
1423 |
);
|
1424 |
|
1435 |
$_cartsCol->addFieldToFilter('entity_id', array('gteq' =>$gTE)); // If gte set include records GTE gte
|
1436 |
}
|
1437 |
|
1438 |
+
//Mage::log((string) $_cartsCol->getSelect());
|
1439 |
+
|
1440 |
$carts = array();
|
1441 |
|
1442 |
+
|
1443 |
foreach($_cartsCol as $_cart) {
|
1444 |
try {
|
1445 |
$carts[] = array('moco_start_of_cart_record' => 'True');
|
1495 |
$_cartsCol->addFieldToFilter('entity_id', $entityId);
|
1496 |
}
|
1497 |
|
1498 |
+
//Mage::log((string) $_cartsCol->getSelect());
|
1499 |
+
|
1500 |
$carts = array();
|
1501 |
|
1502 |
foreach($_cartsCol as $_cart) {
|
@@ -4,7 +4,7 @@
|
|
4 |
<config>
|
5 |
<modules>
|
6 |
<MocoInsight_Mocoauto>
|
7 |
-
<version>1.4.
|
8 |
</MocoInsight_Mocoauto>
|
9 |
</modules>
|
10 |
<global>
|
4 |
<config>
|
5 |
<modules>
|
6 |
<MocoInsight_Mocoauto>
|
7 |
+
<version>1.4.4</version>
|
8 |
</MocoInsight_Mocoauto>
|
9 |
</modules>
|
10 |
<global>
|
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>MocoInsight_Mocoauto</name>
|
4 |
-
<version>1.4.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v1.0.0</license>
|
7 |
<channel>community</channel>
|
@@ -11,7 +11,12 @@
|
|
11 |

|
12 |

|
13 |
</description>
|
14 |
-
<notes>1.4.
|
|
|
|
|
|
|
|
|
|
|
15 |

|
16 |
New attrInfoAction and entityTypeInfoAction added to tracked changes in Magento data.
|
17 |

|
@@ -153,9 +158,9 @@ System date/time
|
|
153 |
added success true for succesful requests
|
154 |
changed product category to moco_category</notes>
|
155 |
<authors><author><name>Rob Davies</name><user>mocoinsight</user><email>rob.davies@mocoinsight.com</email></author></authors>
|
156 |
-
<date>2014-09-
|
157 |
-
<time>
|
158 |
-
<contents><target name="magecommunity"><dir name="MocoInsight"><dir name="Mocoauto"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Buttons"><file name="Generate.php" hash="7690d026d99e31732279e6aa5b6b1def"/></dir></dir><file name="Menu.php" hash="1017af5f89545915f3f28be637e07a0c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="4b53061397fec9446830ef218aba4055"/><file name="JWT.php" hash="6610b92191eccedb8edcf993730c3dc0"/></dir><dir name="Model"><file name="Observer.php" hash="c2cc2f396fedd682268457d17dd045b1"/><dir name="Source"><file name="Views.php" hash="c1ddaf4c7bb51c3907dd72b4e21b1897"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="MocoautoController.php" hash="6665fb22806ef20ee59e88a638ca6359"/></dir><file name="ApiController.php" hash="
|
159 |
<compatible/>
|
160 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
161 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>MocoInsight_Mocoauto</name>
|
4 |
+
<version>1.4.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v1.0.0</license>
|
7 |
<channel>community</channel>
|
11 |

|
12 |

|
13 |
</description>
|
14 |
+
<notes>1.4.4
|
15 |
+

|
16 |
+
Faster unconvertedcarts.
|
17 |
+
CustomerTaxClass added to orders and customer Actions
|
18 |
+

|
19 |
+
1.4.3
|
20 |

|
21 |
New attrInfoAction and entityTypeInfoAction added to tracked changes in Magento data.
|
22 |

|
158 |
added success true for succesful requests
|
159 |
changed product category to moco_category</notes>
|
160 |
<authors><author><name>Rob Davies</name><user>mocoinsight</user><email>rob.davies@mocoinsight.com</email></author></authors>
|
161 |
+
<date>2014-09-23</date>
|
162 |
+
<time>02:11:00</time>
|
163 |
+
<contents><target name="magecommunity"><dir name="MocoInsight"><dir name="Mocoauto"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Buttons"><file name="Generate.php" hash="7690d026d99e31732279e6aa5b6b1def"/></dir></dir><file name="Menu.php" hash="1017af5f89545915f3f28be637e07a0c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="4b53061397fec9446830ef218aba4055"/><file name="JWT.php" hash="6610b92191eccedb8edcf993730c3dc0"/></dir><dir name="Model"><file name="Observer.php" hash="c2cc2f396fedd682268457d17dd045b1"/><dir name="Source"><file name="Views.php" hash="c1ddaf4c7bb51c3907dd72b4e21b1897"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="MocoautoController.php" hash="6665fb22806ef20ee59e88a638ca6359"/></dir><file name="ApiController.php" hash="e980a674f8c75a6c3601a6b330e3c963"/></dir><dir name="etc"><file name="config.xml" hash="a9a3ef7215315d7a94804c0e4ff88228"/><file name="rob.config" hash="63828905cc2f104275d380d0e7f9ebb3"/><file name="system.xml" hash="5d86b7d939b85826c7ac4d4496f80900"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="mocoauto.xml" hash="7dd142354c78e773490c552bbcc3b408"/></dir><dir name="template"><dir name="mocoauto"><dir name="config"><file name="button-generate.phtml" hash="d2ff89c8f1f78e748ac998bd13e61750"/><file name="link.phtml" hash="75c61cac6bdd33ed914f8618b5698598"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="mocoauto.xml" hash="a12a0e1dc675b9ac675181373299e36a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MocoInsight_Mocoauto.xml" hash="1ec387f21726f6c7ea3ea216c47340d9"/></dir></target><target name="magelocale"><dir name="en_US"><file name="MocoInsight_Mocoauto.csv" hash="9b508561f871f93fa3158014baebf02b"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="mocoauto"><file name="button.png" hash="58e62edb7f4be46e3b29c0bb774c7ad7"/><file name="icon.png" hash="b5bfce535c987d1e9e604823ac4b3943"/><file name="mocoauto.css" hash="3cd28072e5c2f2b656dd04c06288165b"/></dir></dir></dir></dir></target></contents>
|
164 |
<compatible/>
|
165 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
166 |
</package>
|