HusseyCoding_AjaxCartPopup - Version 1.2.2

Version Notes

Fixed incompatibility with Evolved Caching

Download this release

Release Info

Developer Hussey Coding
Extension HusseyCoding_AjaxCartPopup
Version 1.2.2
Comparing to
See all releases


Code changes from version 1.2.1 to 1.2.2

app/code/community/HusseyCoding/AjaxCartPopup/Block/Popup.php CHANGED
@@ -14,7 +14,7 @@ class HusseyCoding_AjaxCartPopup_Block_Popup extends Mage_Checkout_Block_Cart_Si
14
 
15
  public function _beforeToHtml()
16
  {
17
- if ($this->_getRequest()->getParam('ajaxcartpopup')):
18
  $this->setTemplate('ajaxcartpopup/popupbody.phtml');
19
  endif;
20
  }
14
 
15
  public function _beforeToHtml()
16
  {
17
+ if ($this->_getRequest()->getParam('ajaxcartpopupreq')):
18
  $this->setTemplate('ajaxcartpopup/popupbody.phtml');
19
  endif;
20
  }
app/code/community/HusseyCoding/AjaxCartPopup/controllers/CartController.php CHANGED
@@ -74,7 +74,7 @@ class HusseyCoding_AjaxCartPopup_CartController extends Mage_Checkout_CartContro
74
  {
75
  parent::deleteAction();
76
 
77
- if ($this->getRequest()->getParam('ajaxcartpopup')):
78
  $result = 'success';
79
  foreach (Mage::getSingleton('checkout/session')->getMessages()->getItems() as $message):
80
  if ($message->getType() == 'error'):
@@ -126,7 +126,7 @@ class HusseyCoding_AjaxCartPopup_CartController extends Mage_Checkout_CartContro
126
  {
127
  parent::updatePostAction();
128
 
129
- if ($this->getRequest()->getParam('ajaxcartpopup') && $this->getRequest()->getParam('ajaxupdatequantity')):
130
  $result = 'success';
131
  $this->loadLayout()->_initLayoutMessages('checkout/session');
132
  foreach (Mage::getSingleton('checkout/session')->getMessages()->getItems() as $message):
74
  {
75
  parent::deleteAction();
76
 
77
+ if ($this->getRequest()->getParam('ajaxcartpopupreq')):
78
  $result = 'success';
79
  foreach (Mage::getSingleton('checkout/session')->getMessages()->getItems() as $message):
80
  if ($message->getType() == 'error'):
126
  {
127
  parent::updatePostAction();
128
 
129
+ if ($this->getRequest()->getParam('ajaxcartpopupreq') && $this->getRequest()->getParam('ajaxupdatequantity')):
130
  $result = 'success';
131
  $this->loadLayout()->_initLayoutMessages('checkout/session');
132
  foreach (Mage::getSingleton('checkout/session')->getMessages()->getItems() as $message):
app/code/community/HusseyCoding/AjaxCartPopup/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <HusseyCoding_AjaxCartPopup>
5
- <version>1.2.1</version>
6
  </HusseyCoding_AjaxCartPopup>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <HusseyCoding_AjaxCartPopup>
5
+ <version>1.2.2</version>
6
  </HusseyCoding_AjaxCartPopup>
7
  </modules>
8
  <global>
package.xml CHANGED
@@ -1,9 +1,9 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HusseyCoding_AjaxCartPopup</name>
4
- <version>1.2.1</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Gives you both ajax add/remove cart functionality and a rollover mini cart popup.</summary>
@@ -12,11 +12,11 @@
12
  This extension replaces the sidebar minicart and shows up to 10 products most recently added to the cart. There are also convenient links to the cart and checkout pages from the ajax and mini cart popups.&#xD;
13
  &#xD;
14
  Ajax Cart Popup will works all product types.</description>
15
- <notes>Added cart page ajax quantity update and remove functionality</notes>
16
  <authors><author><name>Hussey Coding</name><user>husseycoding</user><email>info@husseycoding.co.uk</email></author></authors>
17
- <date>2015-06-08</date>
18
- <time>12:02:19</time>
19
- <contents><target name="magecommunity"><dir name="HusseyCoding"><dir name="AjaxCartPopup"><dir name="Block"><file name="Cart.php" hash="1c2015b9082cf0418735e23d6063e8f4"/><file name="Popup.php" hash="6e0e2d567d3cab87382592d02f059a8e"/></dir><dir name="controllers"><file name="CartController.php" hash="452b1bc33e1aebd4778e835fbacdfb48"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0e8cf41422012a721cefbb40a763b702"/><file name="config.xml" hash="23bae551d8fe2d124269d9e2f702085c"/><file name="system.xml" hash="f81637177507e6193ecb0a9a6f7f44a5"/></dir><dir name="Helper"><file name="Data.php" hash="c1f5cb33c97e2896335f2686e4a78c78"/></dir></dir><dir name="Common"><dir name="etc"><file name="system.xml" hash="6c9ba9f227b9adfc9abf97f17b46fdbf"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="HusseyCoding_AjaxCartPopup.xml" hash="112a71843351e85521ae9b66965b0112"/><file name="HusseyCoding_Common.xml" hash="31e82d3d9b3179c2fa9e002f9669da47"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ajaxcartpopup.xml" hash="762a66cc9e1daa065202643b7e2f5356"/></dir><dir name="template"><dir name="ajaxcartpopup"><file name="cart.phtml" hash="e012b212b4a64b7a9416d2500209de86"/><file name="notice.phtml" hash="0dfcd36aac0783cfbb3331f2f7c2e3c3"/><file name="popupbody.phtml" hash="37fad39508776e3012ab4aad8579a22c"/><file name="popup.phtml" hash="008d78ec213185f5aa0dee99c4876c4a"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><file name="ajaxcartpopup.js" hash="b983e2f6ef214a2a196c26bb852ab25b"/></dir><dir name="css"><file name="ajaxcartpopup.css" hash="6dfa39936898305fbea01ce67c22be0d"/></dir><dir name="images"><dir name="ajaxcartpopup"><file name="button.gif" hash="ccafde0fa767eaf7faf20da4ea73c8bd"/><file name="loading.gif" hash="faa74e8c61fc64d5edb11613c7eead2c"/><file name="overlay.png" hash="0a949aa705c4792377b09bbd04668195"/></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HusseyCoding_AjaxCartPopup</name>
4
+ <version>1.2.2</version>
5
  <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Gives you both ajax add/remove cart functionality and a rollover mini cart popup.</summary>
12
  This extension replaces the sidebar minicart and shows up to 10 products most recently added to the cart. There are also convenient links to the cart and checkout pages from the ajax and mini cart popups.&#xD;
13
  &#xD;
14
  Ajax Cart Popup will works all product types.</description>
15
+ <notes>Fixed incompatibility with Evolved Caching</notes>
16
  <authors><author><name>Hussey Coding</name><user>husseycoding</user><email>info@husseycoding.co.uk</email></author></authors>
17
+ <date>2015-09-22</date>
18
+ <time>16:40:44</time>
19
+ <contents><target name="magecommunity"><dir name="HusseyCoding"><dir name="AjaxCartPopup"><dir name="Block"><file name="Cart.php" hash="1c2015b9082cf0418735e23d6063e8f4"/><file name="Popup.php" hash="357b60a75321567afb732a007999a3eb"/></dir><dir name="controllers"><file name="CartController.php" hash="26d9896b23a502dc76d919c27415dd95"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0e8cf41422012a721cefbb40a763b702"/><file name="config.xml" hash="40da7c957569ed508fc46bc272ed3e5f"/><file name="system.xml" hash="f81637177507e6193ecb0a9a6f7f44a5"/></dir><dir name="Helper"><file name="Data.php" hash="c1f5cb33c97e2896335f2686e4a78c78"/></dir></dir><dir name="Common"><dir name="etc"><file name="system.xml" hash="6c9ba9f227b9adfc9abf97f17b46fdbf"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="HusseyCoding_AjaxCartPopup.xml" hash="112a71843351e85521ae9b66965b0112"/><file name="HusseyCoding_Common.xml" hash="31e82d3d9b3179c2fa9e002f9669da47"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ajaxcartpopup.xml" hash="762a66cc9e1daa065202643b7e2f5356"/></dir><dir name="template"><dir name="ajaxcartpopup"><file name="cart.phtml" hash="e012b212b4a64b7a9416d2500209de86"/><file name="notice.phtml" hash="0dfcd36aac0783cfbb3331f2f7c2e3c3"/><file name="popupbody.phtml" hash="37fad39508776e3012ab4aad8579a22c"/><file name="popup.phtml" hash="008d78ec213185f5aa0dee99c4876c4a"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="ajaxcartpopup.css" hash="6dfa39936898305fbea01ce67c22be0d"/></dir><dir name="js"><file name="ajaxcartpopup.js" hash="cd92246e39e66d5087e3bc92814dc965"/></dir><dir name="images"><dir name="ajaxcartpopup"><file name="button.gif" hash="ccafde0fa767eaf7faf20da4ea73c8bd"/><file name="loading.gif" hash="faa74e8c61fc64d5edb11613c7eead2c"/><file name="overlay.png" hash="0a949aa705c4792377b09bbd04668195"/></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>
skin/frontend/base/default/js/ajaxcartpopup.js CHANGED
@@ -101,7 +101,7 @@ var cartpopup = Class.create({
101
  formdata.isproductpage = true;
102
  var parameters = formdata;
103
  } else {
104
- var parameters = {ajaxcartpopup : true, imagedetail : true};
105
  }
106
  if (submiturl) {
107
  var url = submiturl;
@@ -197,7 +197,7 @@ var cartpopup = Class.create({
197
  removeFromCart: function(id) {
198
  $("cartpopup_overlay").show();
199
  var url = this.deleteurls[id];
200
- var parameters = {ajaxcartpopup : true};
201
  new Ajax.Request(url, {
202
  parameters: parameters,
203
  onSuccess: function(response) {
@@ -222,7 +222,7 @@ var cartpopup = Class.create({
222
  updateQuantity: function(formdata, updateurl) {
223
  $("cartpopup_overlay").show();
224
  if (formdata) {
225
- formdata.ajaxcartpopup = true;
226
  formdata.ajaxupdatequantity = true;
227
  formdata.update_cart_action = "update_qty";
228
  var parameters = formdata;
@@ -454,7 +454,7 @@ var cartpage = Class.create({
454
  this.showWorking();
455
  var formdata = $$(".cart form")[0].serialize(true);
456
  if (formdata) {
457
- formdata.ajaxcartpopup = true;
458
  formdata.ajaxupdatequantity = true;
459
  formdata.update_cart_action = "update_qty";
460
  formdata.iscartpage = true;
@@ -478,7 +478,7 @@ var cartpage = Class.create({
478
  },
479
  removeFromCart: function(e) {
480
  this.showWorking();
481
- var parameters = { ajaxcartpopup:true, iscartpage:true };
482
  new Ajax.Request(e.href, {
483
  parameters: parameters,
484
  onSuccess: function(response) {
101
  formdata.isproductpage = true;
102
  var parameters = formdata;
103
  } else {
104
+ var parameters = {ajaxcartpopupreq : true, imagedetail : true};
105
  }
106
  if (submiturl) {
107
  var url = submiturl;
197
  removeFromCart: function(id) {
198
  $("cartpopup_overlay").show();
199
  var url = this.deleteurls[id];
200
+ var parameters = {ajaxcartpopupreq : true};
201
  new Ajax.Request(url, {
202
  parameters: parameters,
203
  onSuccess: function(response) {
222
  updateQuantity: function(formdata, updateurl) {
223
  $("cartpopup_overlay").show();
224
  if (formdata) {
225
+ formdata.ajaxcartpopupreq = true;
226
  formdata.ajaxupdatequantity = true;
227
  formdata.update_cart_action = "update_qty";
228
  var parameters = formdata;
454
  this.showWorking();
455
  var formdata = $$(".cart form")[0].serialize(true);
456
  if (formdata) {
457
+ formdata.ajaxcartpopupreq = true;
458
  formdata.ajaxupdatequantity = true;
459
  formdata.update_cart_action = "update_qty";
460
  formdata.iscartpage = true;
478
  },
479
  removeFromCart: function(e) {
480
  this.showWorking();
481
+ var parameters = { ajaxcartpopupreq:true, iscartpage:true };
482
  new Ajax.Request(e.href, {
483
  parameters: parameters,
484
  onSuccess: function(response) {