DigitalPianism_AjaxLogin - Version 0.2.5

Version Notes

- Fix a bug where customer registration would not work on Magento < 1.9.1.0
- Add missing _getUrl to the controller
- Add the popup to the my account link when customer is not logged in

Download this release

Release Info

Developer Digital Pianism
Extension DigitalPianism_AjaxLogin
Version 0.2.5
Comparing to
See all releases


Code changes from version 0.2.4 to 0.2.5

app/code/community/DigitalPianism/AjaxLogin/controllers/IndexController.php CHANGED
@@ -3,6 +3,18 @@
3
  class DigitalPianism_AjaxLogin_IndexController extends Mage_Core_Controller_Front_Action
4
  {
5
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  /**
7
  * Get Customer Model
8
  *
@@ -228,7 +240,11 @@ class DigitalPianism_AjaxLogin_IndexController extends Mage_Core_Controller_Fron
228
  $errors = $this->_getCustomerErrors($customer);
229
 
230
  if (empty($errors)) {
231
- $customer->cleanPasswordsValidationData();
 
 
 
 
232
  $customer->save();
233
  Mage::dispatchEvent('customer_register_success',
234
  array('account_controller' => $this, 'customer' => $customer)
3
  class DigitalPianism_AjaxLogin_IndexController extends Mage_Core_Controller_Front_Action
4
  {
5
 
6
+ /**
7
+ * Get Url method
8
+ *
9
+ * @param string $url
10
+ * @param array $params
11
+ * @return string
12
+ */
13
+ protected function _getUrl($url, $params = array())
14
+ {
15
+ return Mage::getUrl($url, $params);
16
+ }
17
+
18
  /**
19
  * Get Customer Model
20
  *
240
  $errors = $this->_getCustomerErrors($customer);
241
 
242
  if (empty($errors)) {
243
+ if (version_compare(Mage::getVersion(),"1.9.1.0",">="))
244
+ {
245
+ // Only from 1.9.1.0
246
+ $customer->cleanPasswordsValidationData();
247
+ }
248
  $customer->save();
249
  Mage::dispatchEvent('customer_register_success',
250
  array('account_controller' => $this, 'customer' => $customer)
app/code/community/DigitalPianism/AjaxLogin/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <DigitalPianism_AjaxLogin>
5
- <version>0.2.4</version>
6
  </DigitalPianism_AjaxLogin>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <DigitalPianism_AjaxLogin>
5
+ <version>0.2.5</version>
6
  </DigitalPianism_AjaxLogin>
7
  </modules>
8
  <global>
app/design/frontend/base/default/layout/digitalpianism/ajaxlogin.xml CHANGED
@@ -42,6 +42,19 @@
42
  <liParams/>
43
  <aParams><class>ajaxlogin-login</class></aParams>
44
  </action>
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  </reference>
46
  </customer_logged_out>
47
 
42
  <liParams/>
43
  <aParams><class>ajaxlogin-login</class></aParams>
44
  </action>
45
+ <action method="removeLinkByUrl" ifconfig="ajaxlogin/options/enable">
46
+ <url helper="customer/getAccountUrl"/>
47
+ </action>
48
+ <action method="addLink" translate="label title" module="customer" ifconfig="ajaxlogin/options/enable">
49
+ <label>My Account</label>
50
+ <url helper="customer/getAccountUrl"/>
51
+ <title>My Account</title>
52
+ <prepare/>
53
+ <urlParams/>
54
+ <position>10</position>
55
+ <liParams/>
56
+ <aParams><class>ajaxlogin-login</class></aParams>
57
+ </action>
58
  </reference>
59
  </customer_logged_out>
60
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DigitalPianism_AjaxLogin</name>
4
- <version>0.2.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -20,11 +20,13 @@
20
  &lt;p&gt;The module is enabled by default but you can disable it here if you need to.&lt;/p&gt;&#xD;
21
  &#xD;
22
  </description>
23
- <notes>- Fix a bug where the register template would trigger a fatal error</notes>
 
 
24
  <authors><author><name>Digital Pianism</name><user>digitalpianism</user><email>contact@digital-pianism.com</email></author></authors>
25
- <date>2015-12-18</date>
26
- <time>10:16:25</time>
27
- <contents><target name="magecommunity"><dir name="DigitalPianism"><dir name="AjaxLogin"><dir name="Helper"><file name="Data.php" hash="1a04218d84eb0ad89d072f421cc2f993"/></dir><dir name="controllers"><file name="IndexController.php" hash="ed447d8fd65f00ca6f8580a41b44f63f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2569f90cd6868d15e41f4788c61e7638"/><file name="config.xml" hash="7d482d9c23145cbe8f1cccc8986ceae5"/><file name="system.xml" hash="71c81e7c67e405512bb5ed0729bfa2de"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DigitalPianism_AjaxLogin.xml" hash="ff28627543caa7543c763f21ef4a5683"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="digitalpianism"><dir name="ajaxlogin"><file name="index.phtml" hash="f081c58c74c574160592d8b696cfff08"/><file name="register.phtml" hash="9bce53ee7baf52e74142ec8e4acdfca4"/></dir></dir></dir><dir name="layout"><dir name="digitalpianism"><file name="ajaxlogin.xml" hash="c583f009b9ac0e8bb344d46f0bb0a417"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="digitalpianism"><dir name="ajaxlogin"><file name="styles.css" hash="8a7f560e5041e52904858828acf378e9"/></dir></dir></dir><dir name="images"><dir name="digitalpianism"><dir name="ajaxlogin"><file name="ajax-loader.gif" hash="b256d80f54c1415d7a6a6fdec39769f4"/><file name="box-content-bg.gif" hash="f5344140a3a9ad4267687b8ec40c5751"/><file name="box-header-bg.gif" hash="e1e109e8f6bfc2f2ccef04769553c60c"/><file name="cancel_round.png" hash="afcb08c1bdcdb7f9922ea289906fdfbf"/><file name="close.png" hash="0aa9c71e1e00deb929514c3b004e30c2"/><file name="shd-medium.png" hash="ed62cea276345a5003a4a6c6f47c1071"/><file name="spinner.gif" hash="73e57937304d89f251e7e540a24b095a"/></dir></dir></dir><dir name="js"><dir name="digitalpianism"><dir name="ajaxlogin"><file name="script.js" hash="f8c7f4beb9d2890e03b12a27e0a9cb00"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="DigitalPianism_AjaxLogin.csv" hash="6eb7c029c2d98c59b574889e8380ccc2"/></dir><dir name="en_US"><file name="DigitalPianism_AjaxLogin.csv" hash="fd8a1490469491f382a9e0463e3de38b"/></dir></target></contents>
28
  <compatible/>
29
  <dependencies><required><php><min>4.1.0</min><max>6.0.0</max></php></required></dependencies>
30
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DigitalPianism_AjaxLogin</name>
4
+ <version>0.2.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
20
  &lt;p&gt;The module is enabled by default but you can disable it here if you need to.&lt;/p&gt;&#xD;
21
  &#xD;
22
  </description>
23
+ <notes>- Fix a bug where customer registration would not work on Magento &lt; 1.9.1.0&#xD;
24
+ - Add missing _getUrl to the controller&#xD;
25
+ - Add the popup to the my account link when customer is not logged in</notes>
26
  <authors><author><name>Digital Pianism</name><user>digitalpianism</user><email>contact@digital-pianism.com</email></author></authors>
27
+ <date>2016-01-26</date>
28
+ <time>09:56:21</time>
29
+ <contents><target name="magecommunity"><dir name="DigitalPianism"><dir name="AjaxLogin"><dir name="Helper"><file name="Data.php" hash="1a04218d84eb0ad89d072f421cc2f993"/></dir><dir name="controllers"><file name="IndexController.php" hash="f85f5a0b348baa8038ab0b25ca127a52"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2569f90cd6868d15e41f4788c61e7638"/><file name="config.xml" hash="20d98eae21d8f5de4e8d3c6e42bfc5a5"/><file name="system.xml" hash="71c81e7c67e405512bb5ed0729bfa2de"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DigitalPianism_AjaxLogin.xml" hash="ff28627543caa7543c763f21ef4a5683"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="digitalpianism"><dir name="ajaxlogin"><file name="index.phtml" hash="f081c58c74c574160592d8b696cfff08"/><file name="register.phtml" hash="9bce53ee7baf52e74142ec8e4acdfca4"/></dir></dir></dir><dir name="layout"><dir name="digitalpianism"><file name="ajaxlogin.xml" hash="f00c699d92c9ae98ffb6da11e3059f67"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="digitalpianism"><dir name="ajaxlogin"><file name="styles.css" hash="8a7f560e5041e52904858828acf378e9"/></dir></dir></dir><dir name="images"><dir name="digitalpianism"><dir name="ajaxlogin"><file name="ajax-loader.gif" hash="b256d80f54c1415d7a6a6fdec39769f4"/><file name="box-content-bg.gif" hash="f5344140a3a9ad4267687b8ec40c5751"/><file name="box-header-bg.gif" hash="e1e109e8f6bfc2f2ccef04769553c60c"/><file name="cancel_round.png" hash="afcb08c1bdcdb7f9922ea289906fdfbf"/><file name="close.png" hash="0aa9c71e1e00deb929514c3b004e30c2"/><file name="shd-medium.png" hash="ed62cea276345a5003a4a6c6f47c1071"/><file name="spinner.gif" hash="73e57937304d89f251e7e540a24b095a"/></dir></dir></dir><dir name="js"><dir name="digitalpianism"><dir name="ajaxlogin"><file name="script.js" hash="f8c7f4beb9d2890e03b12a27e0a9cb00"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="DigitalPianism_AjaxLogin.csv" hash="6eb7c029c2d98c59b574889e8380ccc2"/></dir><dir name="en_US"><file name="DigitalPianism_AjaxLogin.csv" hash="fd8a1490469491f382a9e0463e3de38b"/></dir></target></contents>
30
  <compatible/>
31
  <dependencies><required><php><min>4.1.0</min><max>6.0.0</max></php></required></dependencies>
32
  </package>