Version Notes
Increase plugin support for betaout version v2.
Download this release
Release Info
| Developer | jitendra |
| Extension | Betaout |
| Version | 2.2.4 |
| Comparing to | |
| See all releases | |
Code changes from version 2.2.3 to 2.2.4
app/code/community/Betaout/Amplify/Model/Key.php
CHANGED
|
@@ -112,13 +112,15 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
|
|
| 112 |
$cateHolder = array();
|
| 113 |
foreach ($categs as $cat) {
|
| 114 |
$cateName = Mage::getModel('catalog/category')->load($cat['entity_id']);
|
| 115 |
-
$name
|
| 116 |
$id = $cateName->getEntityId();
|
| 117 |
$pid = $cateName->getParent_id();
|
| 118 |
if ($pid == 1) {
|
| 119 |
$pid = 0;
|
| 120 |
}
|
| 121 |
-
|
|
|
|
|
|
|
| 122 |
}
|
| 123 |
|
| 124 |
$productName = $product->getName();
|
|
@@ -227,32 +229,16 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
|
|
| 227 |
$event = $evnt->getEvent();
|
| 228 |
$action = $event->getControllerAction();
|
| 229 |
$product = $evnt->getProduct();
|
| 230 |
-
|
| 231 |
-
$catCollection = $product->getCategoryCollection();
|
| 232 |
-
$categs = $catCollection->exportToArray();
|
| 233 |
-
|
| 234 |
-
$cateHolder = array();
|
| 235 |
-
foreach ($categs as $cat) {
|
| 236 |
-
$cateName = Mage::getModel('catalog/category')->load($cat['entity_id']);
|
| 237 |
-
$name = $cateName->getName();
|
| 238 |
-
$id = $cateName->getEntityId();
|
| 239 |
-
$pid = $cateName->getParent_id();
|
| 240 |
-
if ($pid == 1) {
|
| 241 |
-
$pid = 0;
|
| 242 |
-
}
|
| 243 |
-
$cateHolder[] = array("cat_id"=>$id,"cat_name" => $name, "parent_cat_id" => $pid);
|
| 244 |
-
}
|
| 245 |
-
|
| 246 |
$actionData = array();
|
| 247 |
$actionData[0]['id'] = $product->getId();
|
| 248 |
$actionData[0]['name'] = $product->getName();
|
| 249 |
$actionData[0]['sku'] = $product->getSku();
|
| 250 |
$actionData[0]['price'] = $product->getPrice();
|
| 251 |
$actionData[0]['currency'] = Mage::app()->getStore()->getBaseCurrencyCode();
|
| 252 |
-
|
| 253 |
$actionData[0]['image_url'] = $product->getImageUrl();
|
| 254 |
$actionData[0]['product_url'] = $product->getProductUrl();
|
| 255 |
-
|
| 256 |
|
| 257 |
$actionDescription = array(
|
| 258 |
'activity_type' => 'review',
|
|
@@ -482,22 +468,6 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
|
|
| 482 |
$event = $evnt->getEvent();
|
| 483 |
$eventname = $event->getName();
|
| 484 |
$product = $event->getProduct();
|
| 485 |
-
|
| 486 |
-
$catCollection = $product->getCategoryCollection();
|
| 487 |
-
$categs = $catCollection->exportToArray();
|
| 488 |
-
$cateHolder = array();
|
| 489 |
-
|
| 490 |
-
foreach ($categs as $cat) {
|
| 491 |
-
$cateName = Mage::getModel('catalog/category')->load($cat['entity_id']);
|
| 492 |
-
$name = $cateName->getName();
|
| 493 |
-
$id = $cateName->getEntityId();
|
| 494 |
-
$pid = $cateName->getParent_id();
|
| 495 |
-
if ($pid == 1) {
|
| 496 |
-
$pid = 0;
|
| 497 |
-
}
|
| 498 |
-
$cateHolder[] = array("cat_id"=>$id,"cat_name" => $name, "parent_cat_id" => $pid);
|
| 499 |
-
}
|
| 500 |
-
|
| 501 |
$actionData = array();
|
| 502 |
$actionData[0]['productId'] = $product->getId();
|
| 503 |
$actionData[0]['productTitle'] = $product->getName();
|
|
@@ -508,10 +478,8 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
|
|
| 508 |
$actionData[0]['image_url'] = $product->getImageUrl();
|
| 509 |
$actionData[0]['product_url'] = $product->getProductUrl();
|
| 510 |
|
| 511 |
-
$actionData[0]['categories'] = $cateHolder;
|
| 512 |
-
|
| 513 |
$actionDescription = array(
|
| 514 |
-
'activity_type' => '
|
| 515 |
'identifiers' => $this->getCustomerIdentity(),
|
| 516 |
'products' => $actionData
|
| 517 |
);
|
|
@@ -611,7 +579,9 @@ class Betaout_Amplify_Model_Key extends Mage_Core_Model_Abstract {
|
|
| 611 |
if ($pid == 1) {
|
| 612 |
$pid = 0;
|
| 613 |
}
|
| 614 |
-
|
|
|
|
|
|
|
| 615 |
}
|
| 616 |
}catch(Exception $e){
|
| 617 |
|
| 112 |
$cateHolder = array();
|
| 113 |
foreach ($categs as $cat) {
|
| 114 |
$cateName = Mage::getModel('catalog/category')->load($cat['entity_id']);
|
| 115 |
+
$name =$cateName->getName();
|
| 116 |
$id = $cateName->getEntityId();
|
| 117 |
$pid = $cateName->getParent_id();
|
| 118 |
if ($pid == 1) {
|
| 119 |
$pid = 0;
|
| 120 |
}
|
| 121 |
+
if(!empty($name)){
|
| 122 |
+
$cateHolder[] = array("cat_id"=>$id,"cat_name" => $name, "parent_cat_id" => $pid);
|
| 123 |
+
}
|
| 124 |
}
|
| 125 |
|
| 126 |
$productName = $product->getName();
|
| 229 |
$event = $evnt->getEvent();
|
| 230 |
$action = $event->getControllerAction();
|
| 231 |
$product = $evnt->getProduct();
|
| 232 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
$actionData = array();
|
| 234 |
$actionData[0]['id'] = $product->getId();
|
| 235 |
$actionData[0]['name'] = $product->getName();
|
| 236 |
$actionData[0]['sku'] = $product->getSku();
|
| 237 |
$actionData[0]['price'] = $product->getPrice();
|
| 238 |
$actionData[0]['currency'] = Mage::app()->getStore()->getBaseCurrencyCode();
|
|
|
|
| 239 |
$actionData[0]['image_url'] = $product->getImageUrl();
|
| 240 |
$actionData[0]['product_url'] = $product->getProductUrl();
|
| 241 |
+
|
| 242 |
|
| 243 |
$actionDescription = array(
|
| 244 |
'activity_type' => 'review',
|
| 468 |
$event = $evnt->getEvent();
|
| 469 |
$eventname = $event->getName();
|
| 470 |
$product = $event->getProduct();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 471 |
$actionData = array();
|
| 472 |
$actionData[0]['productId'] = $product->getId();
|
| 473 |
$actionData[0]['productTitle'] = $product->getName();
|
| 478 |
$actionData[0]['image_url'] = $product->getImageUrl();
|
| 479 |
$actionData[0]['product_url'] = $product->getProductUrl();
|
| 480 |
|
|
|
|
|
|
|
| 481 |
$actionDescription = array(
|
| 482 |
+
'activity_type' => 'add_to_wishlist',
|
| 483 |
'identifiers' => $this->getCustomerIdentity(),
|
| 484 |
'products' => $actionData
|
| 485 |
);
|
| 579 |
if ($pid == 1) {
|
| 580 |
$pid = 0;
|
| 581 |
}
|
| 582 |
+
if(!empty($name)){
|
| 583 |
+
$cateHolder[] = array_filter(array("cat_id"=>$id,"cat_name" => $name, "parent_cat_id" => $pid));
|
| 584 |
+
}
|
| 585 |
}
|
| 586 |
}catch(Exception $e){
|
| 587 |
|
app/code/community/Betaout/Amplify/controllers/BetaoutorderController.php
CHANGED
|
@@ -51,7 +51,9 @@ foreach ($orders as $order) {
|
|
| 51 |
if ($pid == 1) {
|
| 52 |
$pid = 0;
|
| 53 |
}
|
|
|
|
| 54 |
$cateHolder[] = array("cat_id"=>$id,"cat_name" => $name, "parent_cat_id" => $pid);
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
$actionData[$i]['id'] = $product->getId();
|
| 51 |
if ($pid == 1) {
|
| 52 |
$pid = 0;
|
| 53 |
}
|
| 54 |
+
if(!empty($name)){
|
| 55 |
$cateHolder[] = array("cat_id"=>$id,"cat_name" => $name, "parent_cat_id" => $pid);
|
| 56 |
+
}
|
| 57 |
}
|
| 58 |
|
| 59 |
$actionData[$i]['id'] = $product->getId();
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Betaout</name>
|
| 4 |
-
<version>2.2.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>GPL</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -11,8 +11,8 @@
|
|
| 11 |
<notes>Increase plugin support for betaout version v2.</notes>
|
| 12 |
<authors><author><name>jitendra</name><user>jitendra</user><email>jitendra@getamplify.com</email></author></authors>
|
| 13 |
<date>2016-03-11</date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Betaout"><dir name="Amplify"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="About.php" hash="5d714a88c93aa83a3cdfed81712a1611"/><dir name="Form"><dir name="Field"><file name="Conflict.php" hash="6f91b2528452ee1a96440d3a9da43962"/></dir></dir><file name="Logo.php" hash="40f74b3fab0f1bed08315ae83abb4d42"/></dir></dir><dir name="Widget"><dir name="Button"><file name="Conflict.php" hash="903c3c00124ae86bde48f7ce2ad2f066"/></dir></dir></dir><file name="Conflictprinter.php" hash="ce0256621be50bfe02bf01a80ac11b20"/></dir><dir name="Helper"><file name="Conflictchecker.php" hash="a03e8cff4427d5a7ed28f06530f75838"/><file name="Data.php" hash="ab8d5234d07dd762f516169f3be73fe8"/></dir><dir name="Model"><file name="Amplify.php" hash="ca4d8b3a4c588f2e6ab007dc4ee651fa"/><file name="Amplifyconnectwidget.php" hash="904cedccd8685cb3f4e801b81802ec6d"/><dir name="Config"><file name="Blocks.php" hash="d32094f94f70ddc75f4ecb4ea90bdc16"/><file name="Checker.php" hash="b2b4fc113e7511f23360dc01ca3dc7e3"/><file name="ConfigAbstract.php" hash="b19f0f25177fbea91c817758886d6373"/><file name="ConfigInterface.php" hash="85c1b11953b73728feb498ae81711c29"/><file name="Datastore.php" hash="f8a8c60c2f4e1801941c334ebe45cc1a"/><file name="Helpers.php" hash="f337bdceb3fb867f7e2aa8ad90b1216e"/><file name="Models.php" hash="500a145c160beb6797f7450d03069637"/><file name="Printer.php" hash="577801efaeb6bc6dd8bd096875fda08b"/><file name="Resources.php" hash="1f14e467d10ba2afbd2354f78c0047e7"/></dir><dir name="Core"><dir name="Config"><file name="Base.php" hash="7bccfac5cac9b19f1073bb97568958f8"/><file name="Element.php" hash="d2ce6a9a5840dbe335514b7455c60688"/></dir><file name="Config.php" hash="4222a35a2c71b3702199efbfddbee701"/></dir><file name="CronStatus.php" hash="298e6e428249ed7020c27e3c8abc52a2"/><file name="Key.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.0.0</min><max>7.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Betaout</name>
|
| 4 |
+
<version>2.2.4</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>GPL</license>
|
| 7 |
<channel>community</channel>
|
| 11 |
<notes>Increase plugin support for betaout version v2.</notes>
|
| 12 |
<authors><author><name>jitendra</name><user>jitendra</user><email>jitendra@getamplify.com</email></author></authors>
|
| 13 |
<date>2016-03-11</date>
|
| 14 |
+
<time>06:22:08</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Betaout"><dir name="Amplify"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="About.php" hash="5d714a88c93aa83a3cdfed81712a1611"/><dir name="Form"><dir name="Field"><file name="Conflict.php" hash="6f91b2528452ee1a96440d3a9da43962"/></dir></dir><file name="Logo.php" hash="40f74b3fab0f1bed08315ae83abb4d42"/></dir></dir><dir name="Widget"><dir name="Button"><file name="Conflict.php" hash="903c3c00124ae86bde48f7ce2ad2f066"/></dir></dir></dir><file name="Conflictprinter.php" hash="ce0256621be50bfe02bf01a80ac11b20"/></dir><dir name="Helper"><file name="Conflictchecker.php" hash="a03e8cff4427d5a7ed28f06530f75838"/><file name="Data.php" hash="ab8d5234d07dd762f516169f3be73fe8"/></dir><dir name="Model"><file name="Amplify.php" hash="ca4d8b3a4c588f2e6ab007dc4ee651fa"/><file name="Amplifyconnectwidget.php" hash="904cedccd8685cb3f4e801b81802ec6d"/><dir name="Config"><file name="Blocks.php" hash="d32094f94f70ddc75f4ecb4ea90bdc16"/><file name="Checker.php" hash="b2b4fc113e7511f23360dc01ca3dc7e3"/><file name="ConfigAbstract.php" hash="b19f0f25177fbea91c817758886d6373"/><file name="ConfigInterface.php" hash="85c1b11953b73728feb498ae81711c29"/><file name="Datastore.php" hash="f8a8c60c2f4e1801941c334ebe45cc1a"/><file name="Helpers.php" hash="f337bdceb3fb867f7e2aa8ad90b1216e"/><file name="Models.php" hash="500a145c160beb6797f7450d03069637"/><file name="Printer.php" hash="577801efaeb6bc6dd8bd096875fda08b"/><file name="Resources.php" hash="1f14e467d10ba2afbd2354f78c0047e7"/></dir><dir name="Core"><dir name="Config"><file name="Base.php" hash="7bccfac5cac9b19f1073bb97568958f8"/><file name="Element.php" hash="d2ce6a9a5840dbe335514b7455c60688"/></dir><file name="Config.php" hash="4222a35a2c71b3702199efbfddbee701"/></dir><file name="CronStatus.php" hash="298e6e428249ed7020c27e3c8abc52a2"/><file name="Key.php" hash="cb099e3f597b9a350137c37eac9a8fc2"/><dir name="Lib"><dir name="Varien"><dir name="Simplexml"><file name="Config.php" hash="eba1dfcc303065cf5b3c9067d87dd35a"/><file name="Element.php" hash="24cb3b7db31ae8e2c813485a6b6ef749"/></dir></dir></dir><dir name="Mysql4"><dir name="Core"><file name="Config.php" hash="c0a59f8ff1f747224655de39b217abde"/></dir></dir><dir name="Path"><dir name="Locator"><file name="Array.php" hash="722f4125eb1cbd5fbc2be05facd44cd4"/><file name="Factory.php" hash="5a57006974d9870affbcbafa6ed00175"/><file name="IteratorAbstract.php" hash="adba5c801c91efdbc5afa493d353224a"/><file name="LocatorInterface.php" hash="30571ef5c7ebf942870a0ddd2ab341cb"/><file name="Stack.php" hash="73a27e38db4768019613c99407205771"/></dir></dir><dir name="Resource"><dir name="Core"><file name="Config.php" hash="14736455e9f006a69dc638e4b93f7e6e"/></dir><dir name="Db"><file name="Abstract.php" hash="3874d4c5cc4b1af30a550cc792bbe22f"/></dir></dir><file name="Sharetracking.php" hash="05f4fe212dfd53027525bae6321ea641"/><file name="Urltracking.php" hash="d4e7e48cbb8168c2baab17e1edde1eac"/><file name="Verify.php" hash="3e385480fdfdfb3b1219ba48c1ef1644"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ConflictcheckerController.php" hash="28bf9f8cca4f3e63ea90c575c424deb0"/></dir><file name="BetaoutorderController.php" hash="662a007110c64e216ac0d1f3f74e389c"/><file name="IndexController.php" hash="ca84b19b9ee9ea2678ba6ef5a6d23afa"/></dir><dir name="etc"><file name="config.xml" hash="196aeeac6eb735f7fab3e31b275505c2"/><file name="system.xml" hash="533883f4c5c7c2b66f62715443496a43"/></dir><dir name="log"><file name="log.log" hash="be8a8d092fd7ba1381cfbe23eda18c2e"/></dir><file name=".DS_Store" hash="a43aad2961317a2d2aca96eff3b66ddf"/></dir><file name=".DS_Store" hash="2d61b47e869d265ee2a2b3e5caf2145f"/></dir></target><target name="mageetc"><dir name="modules"><file name="Betaout_Amplify.xml" hash="a8228fbbf2d0a09dc90cd7c80b4692f0"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="betaout_amplify.xml" hash="328dab6359ba6464621e558238610035"/></dir><dir name="template"><dir name="betaout_amplify"><file name="amplify.phtml" hash="ce94f7e9e16d3c519bc8efcf4541716c"/><file name="conflict.phtml" hash="43277d57972e4f750d8b65e0bfb5bcb8"/><file name="logo.phtml" hash="0af4376bf5074d24519ab7e9d3ea035b"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="betaout_amplify"><file name="checkout.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="head.phtml" hash="8ae6673a3b2ea1f7e46249b49449133d"/></dir></dir><dir name="layout"><file name="betaout_amplify.xml" hash="f262133af716b7e0c33ebc044e06518c"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="amplify"><dir name="images"><file name="Users.png" hash="96e906660b1fbd8a17831bd3049dbcfa"/><file name="ajax-loader-tr.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="ajax-loader.gif" hash="e2a38f1e23288e315af3c55416bc1ce7"/><file name="btn.png" hash="769b6736cb1bb8cb91ad7526ce9d9db8"/><file name="check.png" hash="252fd93a83e2a412ecd3b6eac01500b7"/><file name="com-app.png" hash="1f241f552bdbe1f86763981c79c8d85f"/><file name="db-1.png" hash="840d96bd5679bf4fa2d6a9577f7d3539"/><file name="engage-app.png" hash="888cde6a10a3dd9abcfccd1a5f0c8fde"/><file name="icon.png" hash="22ea725b0bee73cb03f63b063b02469f"/><file name="large_bracket.png" hash="d2e8da8266e513bd5f15b0c9855be058"/><file name="mini_bracket.png" hash="e844112e5e5173f64b3385a4a140bdeb"/></dir></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.0.0</min><max>7.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
