Version Notes
Fixed bug that caused exception when adding product to cart with not available quantity.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Rejoiner |
Version | 1.1.6 |
Comparing to | |
See all releases |
Code changes from version 1.1.5 to 1.1.6
app/code/community/Rejoiner/Acr/Helper/Data.php
CHANGED
@@ -25,7 +25,6 @@ class Rejoiner_Acr_Helper_Data extends Mage_Core_Helper_Abstract
|
|
25 |
public function getRestoreUrl()
|
26 |
{
|
27 |
$product = array();
|
28 |
-
$options = array();
|
29 |
if (Mage::helper('checkout/cart')->getCart()->getItems()) {
|
30 |
$items = Mage::helper('checkout/cart')->getCart()->getItems()->load()->getItems();
|
31 |
foreach ($items as $item) {
|
25 |
public function getRestoreUrl()
|
26 |
{
|
27 |
$product = array();
|
|
|
28 |
if (Mage::helper('checkout/cart')->getCart()->getItems()) {
|
29 |
$items = Mage::helper('checkout/cart')->getCart()->getItems()->load()->getItems();
|
30 |
foreach ($items as $item) {
|
app/code/community/Rejoiner/Acr/controllers/AddtocartController.php
CHANGED
@@ -14,11 +14,14 @@ class Rejoiner_Acr_AddtocartController extends Mage_Core_Controller_Front_Action
|
|
14 |
Mage::getSingleton('checkout/cart')->truncate();
|
15 |
$params = $this->getRequest()->getParams();
|
16 |
$cart = Mage::helper('checkout/cart')->getCart();
|
17 |
-
$params = $this->getRequest()->getParams();
|
18 |
foreach ($params as $product) {
|
19 |
if ($product && is_array($product)) {
|
20 |
$prodModel = Mage::getModel('catalog/product')->load((int)$product['product']);
|
21 |
-
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
}
|
24 |
$cart->save();
|
14 |
Mage::getSingleton('checkout/cart')->truncate();
|
15 |
$params = $this->getRequest()->getParams();
|
16 |
$cart = Mage::helper('checkout/cart')->getCart();
|
|
|
17 |
foreach ($params as $product) {
|
18 |
if ($product && is_array($product)) {
|
19 |
$prodModel = Mage::getModel('catalog/product')->load((int)$product['product']);
|
20 |
+
try {
|
21 |
+
$cart->addProduct($prodModel, $product);
|
22 |
+
} catch (Exception $e) {
|
23 |
+
Mage::log($e->getMessage(), null, 'rejoiner.log');
|
24 |
+
}
|
25 |
}
|
26 |
}
|
27 |
$cart->save();
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Rejoiner</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Rejoiner Cart Abandonment Remarketing</summary>
|
10 |
<description>Minor changes in rejoiner notifications functionality.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Mike</name><user>auto-converted</user><email>mike@rejoiner.com</email></author></authors>
|
13 |
-
<date>2014-07-
|
14 |
-
<time>14:
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Rejoiner_Acr.xml" hash="1aad3601804cead81b6e687dfcb5b83f"/></dir></target><target name="magecommunity"><dir name="Rejoiner"><dir name="Acr"><dir name="Block"><dir name="Adminhtml"><file name="Notification.php" hash="4b4837b59ab85fa886e65be49d511490"/></dir><file name="Snippets.php" hash="01213375204319c257a3b11e8a04e735"/></dir><dir name="Helper"><file name="Data.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Rejoiner</name>
|
4 |
+
<version>1.1.6</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Rejoiner Cart Abandonment Remarketing</summary>
|
10 |
<description>Minor changes in rejoiner notifications functionality.</description>
|
11 |
+
<notes>Fixed bug that caused exception when adding product to cart with not available quantity.</notes>
|
12 |
<authors><author><name>Mike</name><user>auto-converted</user><email>mike@rejoiner.com</email></author></authors>
|
13 |
+
<date>2014-07-28</date>
|
14 |
+
<time>14:19:41</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Rejoiner_Acr.xml" hash="1aad3601804cead81b6e687dfcb5b83f"/></dir></target><target name="magecommunity"><dir name="Rejoiner"><dir name="Acr"><dir name="Block"><dir name="Adminhtml"><file name="Notification.php" hash="4b4837b59ab85fa886e65be49d511490"/></dir><file name="Snippets.php" hash="01213375204319c257a3b11e8a04e735"/></dir><dir name="Helper"><file name="Data.php" hash="bb0962b1d17663b9b8013b93390cc799"/></dir><dir name="Model"><dir name="Resource"><file name="Setup.php" hash="48f66ad159e3d10a21cc04a980ca923e"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Salesrule.php" hash="1b6a8d728b5fa308b18a222c5981ed52"/></dir></dir></dir><file name="Notification.php" hash="a03d68e9bbaa820ce87557fca9f8f811"/><file name="Observer.php" hash="4709c0114a9f95c455eccc3ef731f2ec"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="RejoinerController.php" hash="c2e5fea12a2fc23905d86f119c2baa39"/></dir><file name="AddtocartController.php" hash="4777a4c68b3693738a3409c95c7596eb"/></dir><dir name="etc"><file name="config.xml" hash="7599dc7571149cb04bc66061590d9207"/><file name="system.xml" hash="2a128aff548ea844225e7d7eb7cd814b"/></dir><dir name="sql"><dir name="rejoiner_setup"><file name="mysql4-install-1.0.0.0.php" hash="8d9a21c9c09fe44c6fe51ddd2106e3e0"/><file name="mysql4-upgrade-1.0.0.0-1.0.1.0.php" hash="36cc70cc6dd37aab7f3c460e0af58d59"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="rejoiner_acr.xml" hash="ac5de6f021a440fe3bc1359133406ba7"/></dir><dir name="template"><dir name="rejoiner_acr"><file name="conversion.phtml" hash="13a53b2f28e5f5fa6e0644ea9cf5a6a4"/><file name="email.phtml" hash="05e54d0999953acf865b6a439c4bb6b5"/><file name="tracking.phtml" hash="1fb47f23cd14449a3978c12bb320fdd4"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="rejoiner_acr.xml" hash="3181cf1ca63813a9ce633ed3268659f4"/></dir><dir name="template"><dir name="rejoiner_acr"><file name="notification.phtml" hash="3a3872e6434bf7d2ca7fa0edfe6f9726"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Rejoiner_Acr.csv" hash="9015e31d97b9bc4746bc0a5241f8013b"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|