Aplazame_Aplazame - Version 0.3.3

Version Notes

* Prevent order cancellation after confirm.

Download this release

Release Info

Developer Aplazame
Extension Aplazame_Aplazame
Version 0.3.3
Comparing to
See all releases


Code changes from version 0.3.2 to 0.3.3

app/code/community/Aplazame/Aplazame/Block/Payment/Redirect.php CHANGED
@@ -30,7 +30,7 @@ class Aplazame_Aplazame_Block_Payment_Redirect extends Mage_Core_Block_Abstract
30
  </script>
31
 
32
  <iframe src="'./*Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)*/Mage::getUrl('', array('_secure'=>true)).'" style="position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden;">
33
- Your browser doesnt support IFrames
34
  </iframe>
35
  </body>
36
  </html>';
30
  </script>
31
 
32
  <iframe src="'./*Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)*/Mage::getUrl('', array('_secure'=>true)).'" style="position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden;">
33
+ Your browser does not support IFrames
34
  </iframe>
35
  </body>
36
  </html>';
app/code/community/Aplazame/Aplazame/controllers/PaymentController.php CHANGED
@@ -36,7 +36,6 @@ class Aplazame_Aplazame_PaymentController extends Mage_Core_Controller_Front_Act
36
  return;
37
  }
38
 
39
- $order = Mage::getModel('sales/order')->loadByIncrementId($session->getLastRealOrderId());
40
  $this->getResponse()->setBody($this->getLayout()->createBlock('aplazame/payment_redirect')->toHtml());
41
 
42
  $session->unsQuoteId();
@@ -75,7 +74,7 @@ class Aplazame_Aplazame_PaymentController extends Mage_Core_Controller_Front_Act
75
  if ($orderId) {
76
  /** @var Mage_Sales_Model_Order $order */
77
  $order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
78
- if ($order->getId()) {
79
  Mage::helper('aplazame/cart')->resuscitateCartFromOrder($order, $this);
80
  }
81
  }
36
  return;
37
  }
38
 
 
39
  $this->getResponse()->setBody($this->getLayout()->createBlock('aplazame/payment_redirect')->toHtml());
40
 
41
  $session->unsQuoteId();
74
  if ($orderId) {
75
  /** @var Mage_Sales_Model_Order $order */
76
  $order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
77
+ if ($order->getId() && $order->getState() === Mage_Sales_Model_Order::STATE_NEW) {
78
  Mage::helper('aplazame/cart')->resuscitateCartFromOrder($order, $this);
79
  }
80
  }
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Aplazame_Aplazame</name>
4
- <version>0.3.2</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Aplazame, a consumer credit company, offers a payment system that can be used by online buyers to receive funding for their purchases.</summary>
10
  <description>Aplazame, a consumer credit company, offers a payment system that can be used by online buyers to receive funding for their purchases.</description>
11
- <notes>* Order cancellation improvements.</notes>
12
  <authors><author><name>Aplazame</name><user>aplazame</user><email>dev@aplazame.com</email></author></authors>
13
- <date>2016-09-15</date>
14
- <time>09:20:03</time>
15
- <contents><target name="magecommunity"><dir name="Aplazame"><dir name="Aplazame"><dir name="Block"><dir name="AdminHtml"><file name="ProductCampaigns.php" hash="c2cb087af982d7ed40cecc1cba48db00"/><file name="ProductsCampaigns.php" hash="4e654f2a4b65979229e2adcedda2f287"/></dir><dir name="Checkout"><dir name="Cart"><file name="Widget.php" hash="3942489d065d22d356ce3ffcef1a801f"/></dir><dir name="Onepage"><file name="Billing.php" hash="d908bf39c8555f436f8841ff30b520f1"/><file name="Shipping.php" hash="8968979cc9140f2f6236ee9f2fbafc98"/></dir></dir><dir name="Payment"><file name="Form.php" hash="d23f592da9ed9ac11b4432f49c2783ac"/><file name="Info.php" hash="eeadafff816256593595d261c9e3b5f8"/><file name="Redirect.php" hash="ad0b51fba8eb624c215680d19678df30"/></dir><dir name="Product"><file name="Widget.php" hash="672f3ce4f644fa93206bbbf908a38b15"/></dir></dir><dir name="Helper"><file name="Cart.php" hash="f95a90db86fb4732f7d3ef1fb6a2322a"/><file name="Data.php" hash="35cc7eb331ff48912492cce397918270"/></dir><dir name="Model"><dir name="Api"><file name="Client.php" hash="a6ac5731d75daee8d2e96a1c052778c5"/><file name="Serializers.php" hash="564d5ee885e3bbb9d2c623ed57dba52e"/></dir><file name="CampaignsObserver.php" hash="8fad045c72f366897e41d571ac9290f5"/><file name="Config.php" hash="ecff6c7d937b86802dc6c98139b1d7c4"/><file name="Observer.php" hash="1d418013ae7fc2c68cdd99c931b2c7e6"/><file name="Payment.php" hash="5026810ce6ccb7a44ac682af899e3d51"/></dir><dir name="controllers"><dir name="AdminHtml"><file name="AplazameController.php" hash="455ef1ac99ae9b43902ad65f408a95ef"/></dir><file name="PaymentController.php" hash="66fa5f442de6ba7f9c95f3a49fddeb9f"/></dir><dir name="etc"><file name="config.xml" hash="26ad10bf4bc5f12ae998a27318ad793b"/><file name="system.xml" hash="714e49e7b52a305c7f8ceebefe34adcb"/></dir></dir></dir></target><target name="magelib"><dir name="Aplazame"><dir name="Aplazame"><file name="Util.php" hash="039c093cbf8c1859cd7e159829ec8e82"/></dir><file name="Aplazame.php" hash="e67f083f4079693da19cd634d7e5bae9"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="aplazame.xml" hash="79024c230729c2757d9b372278411308"/></dir><dir name="template"><dir name="aplazame"><file name="productCampaigns.phtml" hash="9d9f685a918b8f7a7042ba531332991a"/><file name="productsCampaigns.phtml" hash="25e22d4540ebbb7cbb87a516b66393c6"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="aplazame.xml" hash="e56ae75dc4088c1590d986904ecee676"/></dir><dir name="template"><dir name="aplazame"><dir name="checkout"><dir name="cart"><file name="widget.phtml" hash="d81d7b50e0289f54bd653f9c865712c5"/></dir></dir><dir name="payment"><file name="common.phtml" hash="128898cf9895997954ea62da3ce091c9"/><file name="form.phtml" hash="47d03cc30037d3136790a7e88942c8b9"/></dir><dir name="product"><file name="widget.phtml" hash="381b9f5d90cfe4eb5394a862838d7993"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="es_ES"><file name="Aplazame_Aplazame.csv" hash="2bbbffece8ee09579e94c8e810bfde6a"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Aplazame_Aplazame.xml" hash="d816c618a1829401ca0314c3406482a1"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Aplazame_Aplazame</name>
4
+ <version>0.3.3</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Aplazame, a consumer credit company, offers a payment system that can be used by online buyers to receive funding for their purchases.</summary>
10
  <description>Aplazame, a consumer credit company, offers a payment system that can be used by online buyers to receive funding for their purchases.</description>
11
+ <notes>* Prevent order cancellation after confirm.</notes>
12
  <authors><author><name>Aplazame</name><user>aplazame</user><email>dev@aplazame.com</email></author></authors>
13
+ <date>2016-10-17</date>
14
+ <time>11:07:01</time>
15
+ <contents><target name="magecommunity"><dir name="Aplazame"><dir name="Aplazame"><dir name="Block"><dir name="AdminHtml"><file name="ProductCampaigns.php" hash="c2cb087af982d7ed40cecc1cba48db00"/><file name="ProductsCampaigns.php" hash="4e654f2a4b65979229e2adcedda2f287"/></dir><dir name="Checkout"><dir name="Cart"><file name="Widget.php" hash="3942489d065d22d356ce3ffcef1a801f"/></dir><dir name="Onepage"><file name="Billing.php" hash="d908bf39c8555f436f8841ff30b520f1"/><file name="Shipping.php" hash="8968979cc9140f2f6236ee9f2fbafc98"/></dir></dir><dir name="Payment"><file name="Form.php" hash="d23f592da9ed9ac11b4432f49c2783ac"/><file name="Info.php" hash="eeadafff816256593595d261c9e3b5f8"/><file name="Redirect.php" hash="094164989ca58ada9669722608b6bc7c"/></dir><dir name="Product"><file name="Widget.php" hash="672f3ce4f644fa93206bbbf908a38b15"/></dir></dir><dir name="Helper"><file name="Cart.php" hash="f95a90db86fb4732f7d3ef1fb6a2322a"/><file name="Data.php" hash="35cc7eb331ff48912492cce397918270"/></dir><dir name="Model"><dir name="Api"><file name="Client.php" hash="a6ac5731d75daee8d2e96a1c052778c5"/><file name="Serializers.php" hash="564d5ee885e3bbb9d2c623ed57dba52e"/></dir><file name="CampaignsObserver.php" hash="8fad045c72f366897e41d571ac9290f5"/><file name="Config.php" hash="ecff6c7d937b86802dc6c98139b1d7c4"/><file name="Observer.php" hash="1d418013ae7fc2c68cdd99c931b2c7e6"/><file name="Payment.php" hash="5026810ce6ccb7a44ac682af899e3d51"/></dir><dir name="controllers"><dir name="AdminHtml"><file name="AplazameController.php" hash="455ef1ac99ae9b43902ad65f408a95ef"/></dir><file name="PaymentController.php" hash="0f70591e7533cf9fcb4648938602c84e"/></dir><dir name="etc"><file name="config.xml" hash="26ad10bf4bc5f12ae998a27318ad793b"/><file name="system.xml" hash="714e49e7b52a305c7f8ceebefe34adcb"/></dir></dir></dir></target><target name="magelib"><dir name="Aplazame"><dir name="Aplazame"><file name="Util.php" hash="039c093cbf8c1859cd7e159829ec8e82"/></dir><file name="Aplazame.php" hash="e67f083f4079693da19cd634d7e5bae9"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="aplazame.xml" hash="79024c230729c2757d9b372278411308"/></dir><dir name="template"><dir name="aplazame"><file name="productCampaigns.phtml" hash="9d9f685a918b8f7a7042ba531332991a"/><file name="productsCampaigns.phtml" hash="25e22d4540ebbb7cbb87a516b66393c6"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="aplazame.xml" hash="e56ae75dc4088c1590d986904ecee676"/></dir><dir name="template"><dir name="aplazame"><dir name="checkout"><dir name="cart"><file name="widget.phtml" hash="d81d7b50e0289f54bd653f9c865712c5"/></dir></dir><dir name="payment"><file name="common.phtml" hash="128898cf9895997954ea62da3ce091c9"/><file name="form.phtml" hash="47d03cc30037d3136790a7e88942c8b9"/></dir><dir name="product"><file name="widget.phtml" hash="381b9f5d90cfe4eb5394a862838d7993"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="es_ES"><file name="Aplazame_Aplazame.csv" hash="2bbbffece8ee09579e94c8e810bfde6a"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Aplazame_Aplazame.xml" hash="d816c618a1829401ca0314c3406482a1"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>