Version Notes
Support for PHP 5.6.16
Download this release
Release Info
| Developer | TriggMine |
| Extension | TriggMineCartRecovery |
| Version | 2.2.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.2.0 to 2.2.1
app/code/community/Videal/Triggmine/Model/Observer.php
CHANGED
|
@@ -69,8 +69,11 @@ class Videal_Triggmine_Model_Observer extends TriggMine_Core
|
|
| 69 |
|
| 70 |
public function onFooterEvent()
|
| 71 |
{
|
| 72 |
-
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
| 74 |
}
|
| 75 |
/**
|
| 76 |
* Returns URL of the website.
|
|
@@ -188,6 +191,12 @@ class Videal_Triggmine_Model_Observer extends TriggMine_Core
|
|
| 188 |
return Mage::getStoreConfig($key);
|
| 189 |
}
|
| 190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
|
| 192 |
public function onCartItemAdded(Varien_Event_Observer $observer)
|
| 193 |
{
|
|
@@ -209,11 +218,11 @@ class Videal_Triggmine_Model_Observer extends TriggMine_Core
|
|
| 209 |
|
| 210 |
$data = array(
|
| 211 |
"CartItemId" => (string) $productId,
|
| 212 |
-
"
|
| 213 |
"ImageUrl" => $catalogProduct->getImageUrl(),
|
| 214 |
"Title" => $productName,
|
| 215 |
"ShortDescription" => $catalogProduct->getShortDescription(),
|
| 216 |
-
"
|
| 217 |
|
| 218 |
"Price" => $productPrice,
|
| 219 |
"Count" => $productQty,
|
|
@@ -255,11 +264,11 @@ class Videal_Triggmine_Model_Observer extends TriggMine_Core
|
|
| 255 |
|
| 256 |
$data = array(
|
| 257 |
"CartItemId" => (string) $productId,
|
| 258 |
-
"
|
| 259 |
"ImageUrl" => $product->getProduct()->getImageUrl(),
|
| 260 |
"Title" => $productName,
|
| 261 |
"ShortDescription" => $_product->getShortDescription(),
|
| 262 |
-
"
|
| 263 |
|
| 264 |
"Price" => $product->getProduct()->getPrice(),
|
| 265 |
"Count" => $newProduct['qty'],
|
|
@@ -306,8 +315,11 @@ class Videal_Triggmine_Model_Observer extends TriggMine_Core
|
|
| 306 |
'Description' => $product->getDescription(),
|
| 307 |
'ImageUrl' => $product->getImageUrl()
|
| 308 |
);
|
|
|
|
| 309 |
|
| 310 |
-
$
|
|
|
|
|
|
|
| 311 |
}
|
| 312 |
|
| 313 |
return $cart;
|
|
@@ -355,7 +367,7 @@ class Videal_Triggmine_Model_Observer extends TriggMine_Core
|
|
| 355 |
'ShortDescription' => $product->getShortDescription(),
|
| 356 |
'Price' => $product->getPrice(),
|
| 357 |
'Count' => $product->getQty(),
|
| 358 |
-
"
|
| 359 |
"ImageUrl" => $product->getImageUrl(),
|
| 360 |
);
|
| 361 |
|
| 69 |
|
| 70 |
public function onFooterEvent()
|
| 71 |
{
|
| 72 |
+
if(!$this->isAjaxRequest()) {
|
| 73 |
+
$this->registerJavaScriptFile('videal/triggmine/api.js', true);
|
| 74 |
+
parent::onPageLoaded();
|
| 75 |
+
$this->outputJavaScript();
|
| 76 |
+
}
|
| 77 |
}
|
| 78 |
/**
|
| 79 |
* Returns URL of the website.
|
| 191 |
return Mage::getStoreConfig($key);
|
| 192 |
}
|
| 193 |
|
| 194 |
+
public function onCartItemAddedFromWishList(Varien_Event_Observer $observer)
|
| 195 |
+
{
|
| 196 |
+
$data = $this->_refillShoppingCart();
|
| 197 |
+
|
| 198 |
+
$this->updateCartFull($data);
|
| 199 |
+
}
|
| 200 |
|
| 201 |
public function onCartItemAdded(Varien_Event_Observer $observer)
|
| 202 |
{
|
| 218 |
|
| 219 |
$data = array(
|
| 220 |
"CartItemId" => (string) $productId,
|
| 221 |
+
"ThumbnailUrl" => $catalogProduct->getSmallImageUrl(),
|
| 222 |
"ImageUrl" => $catalogProduct->getImageUrl(),
|
| 223 |
"Title" => $productName,
|
| 224 |
"ShortDescription" => $catalogProduct->getShortDescription(),
|
| 225 |
+
"Description" => $catalogProduct->getDescription(),
|
| 226 |
|
| 227 |
"Price" => $productPrice,
|
| 228 |
"Count" => $productQty,
|
| 264 |
|
| 265 |
$data = array(
|
| 266 |
"CartItemId" => (string) $productId,
|
| 267 |
+
"ThumbnailUrl" => $product->getProduct()->getSmallImageUrl(),
|
| 268 |
"ImageUrl" => $product->getProduct()->getImageUrl(),
|
| 269 |
"Title" => $productName,
|
| 270 |
"ShortDescription" => $_product->getShortDescription(),
|
| 271 |
+
"Description" => $_product->getDescription(),
|
| 272 |
|
| 273 |
"Price" => $product->getProduct()->getPrice(),
|
| 274 |
"Count" => $newProduct['qty'],
|
| 315 |
'Description' => $product->getDescription(),
|
| 316 |
'ImageUrl' => $product->getImageUrl()
|
| 317 |
);
|
| 318 |
+
|
| 319 |
|
| 320 |
+
if ($data['Price'] != '0.00') {
|
| 321 |
+
$cart['Items'][] = $data;
|
| 322 |
+
}
|
| 323 |
}
|
| 324 |
|
| 325 |
return $cart;
|
| 367 |
'ShortDescription' => $product->getShortDescription(),
|
| 368 |
'Price' => $product->getPrice(),
|
| 369 |
'Count' => $product->getQty(),
|
| 370 |
+
"ThumbnailUrl" => $product->getSmallImageUrl(),
|
| 371 |
"ImageUrl" => $product->getImageUrl(),
|
| 372 |
);
|
| 373 |
|
app/code/community/Videal/Triggmine/Model/core/ApiClient.php
CHANGED
|
@@ -403,4 +403,4 @@
|
|
| 403 |
|
| 404 |
$this->request($data);
|
| 405 |
}
|
| 406 |
-
}
|
| 403 |
|
| 404 |
$this->request($data);
|
| 405 |
}
|
| 406 |
+
}
|
app/code/community/Videal/Triggmine/Model/core/Core.php
CHANGED
|
@@ -80,7 +80,7 @@
|
|
| 80 |
* Log in file flag
|
| 81 |
* @var bool
|
| 82 |
*/
|
| 83 |
-
protected $_logInFile =
|
| 84 |
|
| 85 |
|
| 86 |
public function __construct()
|
|
@@ -979,7 +979,7 @@
|
|
| 979 |
|
| 980 |
$cart = $this->_refillShoppingCart();
|
| 981 |
|
| 982 |
-
$this->updateCartFull($cart);
|
| 983 |
|
| 984 |
return $this->_request($data);
|
| 985 |
|
|
@@ -1066,4 +1066,4 @@
|
|
| 1066 |
* @return string Shopping cart URL.
|
| 1067 |
*/
|
| 1068 |
abstract public function getCartUrl();
|
| 1069 |
-
}
|
| 80 |
* Log in file flag
|
| 81 |
* @var bool
|
| 82 |
*/
|
| 83 |
+
protected $_logInFile = true;
|
| 84 |
|
| 85 |
|
| 86 |
public function __construct()
|
| 979 |
|
| 980 |
$cart = $this->_refillShoppingCart();
|
| 981 |
|
| 982 |
+
$this->updateCartFull($cart);
|
| 983 |
|
| 984 |
return $this->_request($data);
|
| 985 |
|
| 1066 |
* @return string Shopping cart URL.
|
| 1067 |
*/
|
| 1068 |
abstract public function getCartUrl();
|
| 1069 |
+
}
|
app/code/community/Videal/Triggmine/etc/config.xml
CHANGED
|
@@ -143,20 +143,6 @@
|
|
| 143 |
</sales_order_place_after_handler>
|
| 144 |
</observers>
|
| 145 |
</sales_order_place_after>
|
| 146 |
-
<controller_action_layout_load_before> <!-- identifier of the event we want to catch -->
|
| 147 |
-
<observers>
|
| 148 |
-
<controller_action_postdispatch_handler> <!-- identifier of the event handler -->
|
| 149 |
-
<type>model</type>
|
| 150 |
-
<!-- class method call type; valid are model, object and singleton -->
|
| 151 |
-
<class>triggmine/observer</class>
|
| 152 |
-
<!-- observers class alias -->
|
| 153 |
-
<method>onPageLoaded</method>
|
| 154 |
-
<!-- observer's method to be called -->
|
| 155 |
-
<args></args>
|
| 156 |
-
<!-- additional arguments passed to observer -->
|
| 157 |
-
</controller_action_postdispatch_handler>
|
| 158 |
-
</observers>
|
| 159 |
-
</controller_action_layout_load_before>
|
| 160 |
<admin_system_config_changed_section_triggmine> <!-- identifier of the event we want to catch -->
|
| 161 |
<observers>
|
| 162 |
<admin_system_config_changed_section_triggmine_handler> <!-- identifier of the event handler -->
|
|
@@ -185,6 +171,20 @@
|
|
| 185 |
</frontend_videal_triggmine_footer_event_handler>
|
| 186 |
</observers>
|
| 187 |
</frontend_videal_triggmine_footer_event>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
</events>
|
| 189 |
</global>
|
| 190 |
<frontend>
|
|
@@ -236,4 +236,4 @@
|
|
| 236 |
</updates>
|
| 237 |
</layout>
|
| 238 |
</adminhtml>
|
| 239 |
-
</config>
|
| 143 |
</sales_order_place_after_handler>
|
| 144 |
</observers>
|
| 145 |
</sales_order_place_after>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
<admin_system_config_changed_section_triggmine> <!-- identifier of the event we want to catch -->
|
| 147 |
<observers>
|
| 148 |
<admin_system_config_changed_section_triggmine_handler> <!-- identifier of the event handler -->
|
| 171 |
</frontend_videal_triggmine_footer_event_handler>
|
| 172 |
</observers>
|
| 173 |
</frontend_videal_triggmine_footer_event>
|
| 174 |
+
<controller_action_postdispatch_wishlist_index_cart>
|
| 175 |
+
<observers>
|
| 176 |
+
<controller_action_postdispatch_wishlist_index_cart_handler> <!-- identifier of the event handler -->
|
| 177 |
+
<type>model</type>
|
| 178 |
+
<!-- class method call type; valid are model, object and singleton -->
|
| 179 |
+
<class>triggmine/observer</class>
|
| 180 |
+
<!-- observers class alias -->
|
| 181 |
+
<method>onCartItemAddedFromWishList</method>
|
| 182 |
+
<!-- observer's method to be called -->
|
| 183 |
+
<args></args>
|
| 184 |
+
<!-- additional arguments passed to observer -->
|
| 185 |
+
</controller_action_postdispatch_wishlist_index_cart_handler>
|
| 186 |
+
</observers>
|
| 187 |
+
</controller_action_postdispatch_wishlist_index_cart>
|
| 188 |
</events>
|
| 189 |
</global>
|
| 190 |
<frontend>
|
| 236 |
</updates>
|
| 237 |
</layout>
|
| 238 |
</adminhtml>
|
| 239 |
+
</config>
|
package.xml
CHANGED
|
@@ -1,20 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>TriggMineCartRecovery</name>
|
| 4 |
-
<version>2.2.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>GPL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Triggered Messaging Solution for E-commerce</summary>
|
| 10 |
-
<description>
|
| 11 |
-
|
| 12 |
-
TriggMine
|
| 13 |
-
<
|
| 14 |
-
<
|
| 15 |
-
<
|
| 16 |
-
<time>14:34:53</time>
|
| 17 |
-
<contents><target name="magecommunity"><dir name="Videal"><dir name="Triggmine"><dir name="Block"><dir name="Adminhtml"><file name="Triggminebackend.php" hash="d5d872c11ae85335a8a3f627b43f2820"/></dir></dir><dir name="Helper"><file name="Data.php" hash="ae6c08289260d91677f0b26a51d45a5d"/></dir><dir name="Model"><file name="Observer.php" hash="cfa804299ce766d96e26edb6e1040b05"/><dir name="core"><file name="ApiClient.php" hash="0b68e4f2a04125cc32edcca41d27135f"/><file name="Core.php" hash="df582eb894cdba83f674b7d48ceb52a6"/><file name="Error.php" hash="8fa1a3effc30f931f60169fd25bd849a"/><file name="Helper.php" hash="70f1bfaada3a4deae5f876bda3722146"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="TriggminebackendController.php" hash="2c42b9789bb22f10668ca258bb7ec15c"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="dbaa360cbb1da748a7492c33d13f81a7"/><file name="config.xml" hash="611b2732d248cc163fb1740138761210"/><file name="system.xml" hash="a2f383e01459b73848fef582c87909e0"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="videal_triggmine.xml" hash="c7805fd5b5496629435a0ee08f70520e"/></dir><dir name="template"><dir name="videal"><dir name="triggmine"><file name="init.phtml" hash="d2d38515ca3f5d8f49747e0c090961a0"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Videal_Triggmine.xml" hash="769d82f538877ff4bf8f6f46f046690a"/></dir></target><target name="mageweb"><dir name="js"><dir name="videal"><dir name="triggmine"><file name="api.js" hash="b279fe573df42b63f9aa98a09c65fe9d"/></dir></dir></dir></target></contents>
|
| 18 |
<compatible/>
|
| 19 |
-
<dependencies><required><php><min>5.2.1</min><max>5.
|
| 20 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>TriggMineCartRecovery</name>
|
| 4 |
+
<version>2.2.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>GPL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Triggered Messaging Solution for E-commerce</summary>
|
| 10 |
+
<description>We provide triggered messaging solution for E-commerce. You’ll get a set of ready-to-use business processes that will help you turn new customers into repeat customers and generate outstanding sales via Email Marketing</description>
|
| 11 |
+
<notes>Support for PHP 5.6.16</notes>
|
| 12 |
+
<authors><author><name>TriggMine</name><user>TriggMine</user><email>admin@triggmine.com</email></author></authors>
|
| 13 |
+
<date>2015-12-18</date>
|
| 14 |
+
<time>14:16:57</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Videal"><dir name="Triggmine"><dir name="Block"><dir name="Adminhtml"><file name="Triggminebackend.php" hash="d5d872c11ae85335a8a3f627b43f2820"/></dir></dir><dir name="Helper"><file name="Data.php" hash="ae6c08289260d91677f0b26a51d45a5d"/></dir><dir name="Model"><file name="Observer.php" hash="07da984df2bcaf70b3304ffb47c8cb96"/><dir name="core"><file name="ApiClient.php" hash="dda593d167d0afb8bc77ca25ee4133f4"/><file name="Core.php" hash="d648af568f5869bb7165ba28c725bacc"/><file name="Error.php" hash="8fa1a3effc30f931f60169fd25bd849a"/><file name="Helper.php" hash="70f1bfaada3a4deae5f876bda3722146"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="TriggminebackendController.php" hash="2c42b9789bb22f10668ca258bb7ec15c"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="dbaa360cbb1da748a7492c33d13f81a7"/><file name="config.xml" hash="c168903be52c914a3ba0a617b6d539fe"/><file name="system.xml" hash="a2f383e01459b73848fef582c87909e0"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="videal_triggmine.xml" hash="c7805fd5b5496629435a0ee08f70520e"/></dir><dir name="template"><dir name="videal"><dir name="triggmine"><file name="init.phtml" hash="d2d38515ca3f5d8f49747e0c090961a0"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Videal_Triggmine.xml" hash="769d82f538877ff4bf8f6f46f046690a"/></dir></target><target name="mageweb"><dir name="js"><dir name="videal"><dir name="triggmine"><file name="api.js" hash="b279fe573df42b63f9aa98a09c65fe9d"/></dir></dir></dir></target></contents>
|
|
|
|
|
|
|
| 16 |
<compatible/>
|
| 17 |
+
<dependencies><required><php><min>5.2.1</min><max>5.6.16</max></php><package><name></name><channel>connect.magentocommerce.com/core</channel><min></min><max></max></package></required></dependencies>
|
| 18 |
</package>
|
