Rack_SelfDelete - Version 0.4.3

Version Notes

0.1.1 Initial release
0.1.2 fix locale data
0.2.0 add cancel order
0.3.0 fix bugs
0.4.0 change theme files path & fix bug
0.4.1 fix bugs
0.4.2 fix bugs
0.4.3 fix bugs

Download this release

Release Info

Developer Hirokazu Nishi
Extension Rack_SelfDelete
Version 0.4.3
Comparing to
See all releases


Code changes from version 0.4.2 to 0.4.3

app/code/community/Rack/SelfDelete/Block/.DS_Store DELETED
Binary file
app/code/community/Rack/SelfDelete/Block/Customer/.DS_Store DELETED
Binary file
app/code/community/Rack/SelfDelete/Model/.DS_Store DELETED
Binary file
app/code/community/Rack/SelfDelete/Model/Session.php CHANGED
@@ -1,4 +1,4 @@
1
  <?php
2
- class Rack_Selfdelete_Model_Session extends Mage_Core_Model_Session {
3
 
4
  }
1
  <?php
2
+ class Rack_SelfDelete_Model_Session extends Mage_Core_Model_Session {
3
 
4
  }
app/code/community/Rack/SelfDelete/controllers/CustomerController.php CHANGED
@@ -20,16 +20,21 @@ class Rack_SelfDelete_CustomerController extends Mage_Core_Controller_Front_Acti
20
  if (!$_customer->validatePassword($_post['password'])) {
21
  $this->_getSession()->addError(Mage::helper('selfdelete')->__('Password is incorrect.'));
22
  $this->_redirect('*/*/');
23
- } else {
 
 
24
  Mage::register('isSecureArea', true);
25
- if($_customer->delete()) {
26
- $this->_redirect('*/*/success');
27
- } else {
28
- $this->_getSession()->addError(Mage::helper('selfdelete')->__('Unable to delete your account'));
29
- $this->_redirect('*/*/');
30
- }
 
 
 
 
31
  }
32
- return;
33
  }
34
 
35
  public function successAction()
20
  if (!$_customer->validatePassword($_post['password'])) {
21
  $this->_getSession()->addError(Mage::helper('selfdelete')->__('Password is incorrect.'));
22
  $this->_redirect('*/*/');
23
+ return;
24
+ }
25
+ try {
26
  Mage::register('isSecureArea', true);
27
+ $_customer->delete();
28
+ Mage::unregister('isSecureArea');
29
+ $this->_redirect('*/*/success');
30
+ return;
31
+ } catch (Exception $e) {
32
+ Mage::unregister('isSecureArea');
33
+ Mage::logException($e);
34
+ $this->_getSession()->addError(Mage::helper('selfdelete')->__('Unable to delete your account'));
35
+ $this->_redirect('*/*/');
36
+ return;
37
  }
 
38
  }
39
 
40
  public function successAction()
app/code/community/Rack/SelfDelete/controllers/OrderController.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- class Rack_Selfdelete_OrderController extends Mage_Core_Controller_Front_Action {
3
 
4
 
5
  public function cancelAction()
1
  <?php
2
+ class Rack_SelfDelete_OrderController extends Mage_Core_Controller_Front_Action {
3
 
4
 
5
  public function cancelAction()
app/code/community/Rack/SelfDelete/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Rack_SelfDelete>
5
- <version>0.4.2</version>
6
  </Rack_SelfDelete>
7
  </modules>
8
  <global>
@@ -104,7 +104,6 @@
104
  <default>
105
  <selfdelete>
106
  <selfdelete>
107
- <candeletecustomer>false</candeletecustomer>
108
  <candeleteorder>false</candeleteorder>
109
  </selfdelete>
110
  </selfdelete>
2
  <config>
3
  <modules>
4
  <Rack_SelfDelete>
5
+ <version>0.4.3</version>
6
  </Rack_SelfDelete>
7
  </modules>
8
  <global>
104
  <default>
105
  <selfdelete>
106
  <selfdelete>
 
107
  <candeleteorder>false</candeleteorder>
108
  </selfdelete>
109
  </selfdelete>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Rack_SelfDelete</name>
4
- <version>0.4.2</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
@@ -13,14 +13,15 @@ And also customers can cancel their own order when status is "new".</description
13
  <notes>0.1.1 Initial release&#xD;
14
  0.1.2 fix locale data&#xD;
15
  0.2.0 add cancel order&#xD;
16
- 0.3.0 fix bug&#xD;
17
  0.4.0 change theme files path &amp; fix bug&#xD;
18
- 0.4.1 fix bug&#xD;
19
- 0.4.2 fix bug.</notes>
 
20
  <authors><author><name>Hirokazu Nishi</name><user>hirokazu_n</user><email>nishi@principle-works.jp</email></author></authors>
21
- <date>2014-03-25</date>
22
- <time>04:57:15</time>
23
- <contents><target name="magecommunity"><dir name="Rack"><dir name="SelfDelete"><dir name="Block"><dir name="Customer"><file name="Form.php" hash="d421b375440ed3d8d50e7a673240552f"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Order"><file name="View.php" hash="42c62d9c11e4b66b5336dd1555d79982"/></dir><file name="Success.php" hash="ecf779b60e10a9251aaedfe935afc5a6"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="9d969b83f7d32e6707425f645c4a2777"/></dir><dir name="Model"><file name="SelfDelete.php" hash="8f9ad2d574c158c0f9daa148c1e82d37"/><file name="Session.php" hash="d1be26e8896492f6257f662ec997ad75"/><dir name="System"><file name="Config.php" hash="84c5a199ae5a3133bc229b17815a40ea"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="controllers"><file name="CustomerController.php" hash="ced73c9a2a48bb631b5545a4887a8588"/><file name="OrderController.php" hash="1e0610f6bcda05ebb8ccd38e89579ea3"/></dir><dir name="etc"><file name="config.xml" hash="6df7f97ec4dd4fba71fbee5aca01dea5"/><file name="system.xml" hash="a3e3ca859f1c1f498aba964f14942f49"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="rack_selfdelete.xml" hash="b1571009adace4b68f2e360613bd5252"/></dir><dir name="template"><dir name="selfdelete"><file name="form.phtml" hash="dfc9b019e705a4f3dd7466c16c741c91"/><dir name="order"><file name="cancel.phtml" hash="4c850c5b3b2756e67a91bad8e046ddac"/><file name="view.phtml" hash="27c5e8acd468c8870c52bf6b68fd5428"/></dir><file name="success.phtml" hash="6ab227cb04492e6553e2ea291b8352f2"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Rack_SelfDelete.xml" hash="77568659c9b88f99648817d4a12eb9b9"/></dir></target><target name="magelocale"><dir name="ja_JP"><file name="Rack_SelfDelete.csv" hash="568cac17309230a01f25757d3f7c89c3"/></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.2.0</min><max>5.5.99</max></php></required></dependencies>
26
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Rack_SelfDelete</name>
4
+ <version>0.4.3</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
13
  <notes>0.1.1 Initial release&#xD;
14
  0.1.2 fix locale data&#xD;
15
  0.2.0 add cancel order&#xD;
16
+ 0.3.0 fix bugs&#xD;
17
  0.4.0 change theme files path &amp; fix bug&#xD;
18
+ 0.4.1 fix bugs&#xD;
19
+ 0.4.2 fix bugs&#xD;
20
+ 0.4.3 fix bugs</notes>
21
  <authors><author><name>Hirokazu Nishi</name><user>hirokazu_n</user><email>nishi@principle-works.jp</email></author></authors>
22
+ <date>2015-06-16</date>
23
+ <time>12:42:04</time>
24
+ <contents><target name="magecommunity"><dir name="Rack"><dir name="SelfDelete"><dir name="Block"><dir name="Customer"><file name="Form.php" hash="d421b375440ed3d8d50e7a673240552f"/></dir><dir name="Order"><file name="View.php" hash="42c62d9c11e4b66b5336dd1555d79982"/></dir><file name="Success.php" hash="ecf779b60e10a9251aaedfe935afc5a6"/></dir><dir name="Helper"><file name="Data.php" hash="9d969b83f7d32e6707425f645c4a2777"/></dir><dir name="Model"><file name="SelfDelete.php" hash="8f9ad2d574c158c0f9daa148c1e82d37"/><file name="Session.php" hash="fd3047fe7392ce3f1c719de08b1b015b"/><dir name="System"><file name="Config.php" hash="84c5a199ae5a3133bc229b17815a40ea"/></dir></dir><dir name="controllers"><file name="CustomerController.php" hash="a70578a8864da393aa1b03809349e3bc"/><file name="OrderController.php" hash="f5b8d17ff2524a3809bb92c8bd02c805"/></dir><dir name="etc"><file name="config.xml" hash="1b90f79ee68d994611f5f0f5897cfb9f"/><file name="system.xml" hash="a3e3ca859f1c1f498aba964f14942f49"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="rack_selfdelete.xml" hash="b1571009adace4b68f2e360613bd5252"/></dir><dir name="template"><dir name="selfdelete"><file name="form.phtml" hash="dfc9b019e705a4f3dd7466c16c741c91"/><dir name="order"><file name="cancel.phtml" hash="4c850c5b3b2756e67a91bad8e046ddac"/><file name="view.phtml" hash="27c5e8acd468c8870c52bf6b68fd5428"/></dir><file name="success.phtml" hash="6ab227cb04492e6553e2ea291b8352f2"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Rack_SelfDelete.xml" hash="77568659c9b88f99648817d4a12eb9b9"/></dir></target><target name="magelocale"><dir name="ja_JP"><file name="Rack_SelfDelete.csv" hash="568cac17309230a01f25757d3f7c89c3"/></dir></target></contents>
25
  <compatible/>
26
  <dependencies><required><php><min>5.2.0</min><max>5.5.99</max></php></required></dependencies>
27
  </package>