DS_PrivateSales - Version 1.0.4.1

Version Notes

1.0.4.1
fixed bug that configured custom admin path did redirect to frontend login on full store lock

1.0.4
added compatibility for CE 1.9 (including RWD theme)
custom reg panel content now also applies to onepage checkout if applicable (1.9+ only)
fixed bug that configured no-cookies page was not shown after login attempt with disabled cookies
fixed bug that products could be accessed by guests using product tags even when catalog pages have been configured to be locked
fixed bug that invalid template resources could lead to 404 error page after successful login
fixed bug that error message from invalid login attempt could be suppressed by multiple redirects
special thanks to Psynapse (psynapse.com.au) for supporting this new release

1.0.3
added options to overwrite error messages when trying to access locked registration / forgot password
added compatibility for CE 1.8 / 1.8.1

1.0.2.1
fixed a php notice when trying to check the capability of retrieving the magento edition

1.0.2
added option to hide or customize registration panel at login page
registration panel can be customized by configuring header, text, button visibility and button label
registration panel can be hidden or customized even when registration remains enabled
disabled registration removes all registration hints when entering onepage checkout as guest
disabled forgot password now also removes the links at login and onepage checkout page

note: new templates have been added so you may check them to match with your skin after update

1.0.1
fixed redirect to startpage not working when customer_startup_redirect_dashboard is disabled
fixed hive navigation option not working in ce 1.7
fixed fatal error on after login redirect in ce 1.5

1.0.0
initial release

Download this release

Release Info

Developer Design:Slider GbR
Extension DS_PrivateSales
Version 1.0.4.1
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.4.1

app/code/community/DS/PrivateSales/CHANGE.LOG CHANGED
@@ -1,5 +1,8 @@
1
  DS_PrivateSales
2
 
 
 
 
3
  1.0.4
4
  added compatibility for CE 1.9 (including RWD theme)
5
  custom reg panel content now also applies to onepage checkout if applicable (1.9+ only)
1
  DS_PrivateSales
2
 
3
+ 1.0.4.1
4
+ fixed bug that configured custom admin path did redirect to frontend login on full store lock
5
+
6
  1.0.4
7
  added compatibility for CE 1.9 (including RWD theme)
8
  custom reg panel content now also applies to onepage checkout if applicable (1.9+ only)
app/code/community/DS/PrivateSales/Helper/Data.php CHANGED
@@ -11,6 +11,20 @@
11
  class DS_PrivateSales_Helper_Data extends Mage_Core_Helper_Abstract
12
  {
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  /**
15
  * Check if private sales is enabled
16
  *
11
  class DS_PrivateSales_Helper_Data extends Mage_Core_Helper_Abstract
12
  {
13
 
14
+ /**
15
+ * Get configured admin path
16
+ *
17
+ * @return string
18
+ */
19
+ public function getAdminPath()
20
+ {
21
+ $res = ((bool)(string)Mage::getConfig()->getNode(Mage_Adminhtml_Helper_Data::XML_PATH_USE_CUSTOM_ADMIN_PATH))
22
+ ? (string)Mage::getConfig()->getNode(Mage_Adminhtml_Helper_Data::XML_PATH_CUSTOM_ADMIN_PATH)
23
+ : (string)Mage::getConfig()->getNode(Mage_Adminhtml_Helper_Data::XML_PATH_ADMINHTML_ROUTER_FRONTNAME);
24
+
25
+ return strlen($res) ? $res : 'admin';
26
+ }
27
+
28
  /**
29
  * Check if private sales is enabled
30
  *
app/code/community/DS/PrivateSales/Model/Observer.php CHANGED
@@ -55,7 +55,7 @@ class DS_PrivateSales_Model_Observer
55
  {
56
  return !(
57
  (Mage::getSingleton('admin/session')->isLoggedIn()) ||
58
- (self::$m=='admin') ||
59
  (self::$m=='api') ||
60
  (self::$m=='customer' && self::$c=='account') ||
61
  $this->_isWhitelistedPage()
55
  {
56
  return !(
57
  (Mage::getSingleton('admin/session')->isLoggedIn()) ||
58
+ (self::$m==Mage::helper('privatesales')->getAdminPath()) ||
59
  (self::$m=='api') ||
60
  (self::$m=='customer' && self::$c=='account') ||
61
  $this->_isWhitelistedPage()
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DS_PrivateSales</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
@@ -27,7 +27,10 @@
27
  &lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; To avoid 404 errors in admin please re-login after first installation.&lt;/p&gt;&#xD;
28
  &lt;p&gt;For more information please visit our &lt;a href="http://www.design-slider.de/magento-onlineshop/magento-extensions/private-sales/"&gt;official extension page&lt;/a&gt; (currently in german only).&lt;/p&gt;&#xD;
29
  &lt;p&gt;Special Thanks to Psynapse (psynapse.com.au) for supporting this extension.&lt;/p&gt;</description>
30
- <notes>1.0.4&#xD;
 
 
 
31
  added compatibility for CE 1.9 (including RWD theme)&#xD;
32
  custom reg panel content now also applies to onepage checkout if applicable (1.9+ only)&#xD;
33
  fixed bug that configured no-cookies page was not shown after login attempt with disabled cookies&#xD;
@@ -60,9 +63,9 @@
60
  1.0.0&#xD;
61
  initial release</notes>
62
  <authors><author><name>Design:Slider GbR</name><user>DesignSliderGbR</user><email>magento@design-slider.de</email></author></authors>
63
- <date>2014-11-05</date>
64
- <time>18:17:21</time>
65
- <contents><target name="magelocale"><dir><dir name="de_DE"><file name="DS_PrivateSales.csv" hash="fcbd4787ff1421feed0f301b93285e88"/></dir></dir></target><target name="magecommunity"><dir name="DS"><dir name="PrivateSales"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><file name="Login.php" hash="f861f5a125029de6dbcfd48326a069a1"/></dir></dir><dir name="Customer"><dir name="Form"><file name="Login.php" hash="c54adb0ff971d5b08abaf94cdf726828"/></dir></dir><file name="Navigation.php" hash="585f907774ac18e7fbefa60f9fb2d746"/><file name="Topmenu.php" hash="41c13dedf4527c26b4f72eeef4a503cf"/></dir><file name="CHANGE.LOG" hash="250392d072b58d0d66a06abf5f5cb271"/><dir name="Helper"><file name="Data.php" hash="cbac28c3f13df528c2d72dafee30a331"/></dir><dir name="Model"><file name="Observer.php" hash="dad2e2004a700dc279aeb71ac6525577"/></dir><dir name="controllers"><dir name="Customer"><file name="AccountController.php" hash="f2ad826e1d64b490f19bcc980cbfcbf1"/></dir></dir><dir name="etc"><file name="config.xml" hash="fa7129774f94095888e1a4669df66f7f"/><file name="system.xml" hash="d2fb336529cf2e3245e967b8fc273981"/></dir><dir name="sql"><dir name="ds_privatesales_setup"><file name="upgrade-1.0.1-1.0.2.php" hash="533b2fc7238456b967efe5a4cb1d57fc"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DS_PrivateSales.xml" hash="1b870d4aec398bf9a9d6424cc58656e9"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="ds"><dir name="privatesales"><file name="login_ce14_15_16.phtml" hash="f89afa1794bf7aef7fc41bed2bdf3c2b"/><file name="login_ce17_18.phtml" hash="2cd3290ac19117dcae7ad0454c6f7ddd"/><file name="login_ce19.phtml" hash="7cc25c34f1c2d1034aa11843c36faf01"/><file name="opc_ce14_15_16.phtml" hash="a3050dd164da2b002b2aa6fdf4a5174a"/><file name="opc_ce17_18.phtml" hash="abe6960b443776a8119d3e5a4eb849c2"/><file name="opc_ce19.phtml" hash="e2c3d193a621da20f85e2f37c1b1d221"/></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="template"><dir name="ds"><dir name="privatesales"><file name="login_ce19.phtml" hash="3abdfb06d51679f9add50c2eafdce329"/><file name="opc_ce19.phtml" hash="9127b99d123d1d7de77f1f785604dab2"/></dir></dir></dir></dir></dir></dir></target></contents>
66
  <compatible/>
67
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php><package><name>Mage_Customer</name><channel>core</channel><min>1.4.0.0.13</min><max></max></package><package><name>Mage_Checkout</name><channel>core</channel><min>0.9.5</min><max></max></package></required></dependencies>
68
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DS_PrivateSales</name>
4
+ <version>1.0.4.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
27
  &lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; To avoid 404 errors in admin please re-login after first installation.&lt;/p&gt;&#xD;
28
  &lt;p&gt;For more information please visit our &lt;a href="http://www.design-slider.de/magento-onlineshop/magento-extensions/private-sales/"&gt;official extension page&lt;/a&gt; (currently in german only).&lt;/p&gt;&#xD;
29
  &lt;p&gt;Special Thanks to Psynapse (psynapse.com.au) for supporting this extension.&lt;/p&gt;</description>
30
+ <notes>1.0.4.1&#xD;
31
+ fixed bug that configured custom admin path did redirect to frontend login on full store lock&#xD;
32
+ &#xD;
33
+ 1.0.4&#xD;
34
  added compatibility for CE 1.9 (including RWD theme)&#xD;
35
  custom reg panel content now also applies to onepage checkout if applicable (1.9+ only)&#xD;
36
  fixed bug that configured no-cookies page was not shown after login attempt with disabled cookies&#xD;
63
  1.0.0&#xD;
64
  initial release</notes>
65
  <authors><author><name>Design:Slider GbR</name><user>DesignSliderGbR</user><email>magento@design-slider.de</email></author></authors>
66
+ <date>2014-11-11</date>
67
+ <time>04:36:34</time>
68
+ <contents><target name="magelocale"><dir><dir name="de_DE"><file name="DS_PrivateSales.csv" hash="fcbd4787ff1421feed0f301b93285e88"/></dir></dir></target><target name="magecommunity"><dir name="DS"><dir name="PrivateSales"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><file name="Login.php" hash="f861f5a125029de6dbcfd48326a069a1"/></dir></dir><dir name="Customer"><dir name="Form"><file name="Login.php" hash="c54adb0ff971d5b08abaf94cdf726828"/></dir></dir><file name="Navigation.php" hash="585f907774ac18e7fbefa60f9fb2d746"/><file name="Topmenu.php" hash="41c13dedf4527c26b4f72eeef4a503cf"/></dir><file name="CHANGE.LOG" hash="3cb1b0e3447c28af99be39518c24ab1d"/><dir name="Helper"><file name="Data.php" hash="5d527d18a2a891d4150f74b8d4c54175"/></dir><dir name="Model"><file name="Observer.php" hash="b3c447ecade27ca7c8f62e112de43257"/></dir><dir name="controllers"><dir name="Customer"><file name="AccountController.php" hash="f2ad826e1d64b490f19bcc980cbfcbf1"/></dir></dir><dir name="etc"><file name="config.xml" hash="fa7129774f94095888e1a4669df66f7f"/><file name="system.xml" hash="d2fb336529cf2e3245e967b8fc273981"/></dir><dir name="sql"><dir name="ds_privatesales_setup"><file name="upgrade-1.0.1-1.0.2.php" hash="533b2fc7238456b967efe5a4cb1d57fc"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DS_PrivateSales.xml" hash="1b870d4aec398bf9a9d6424cc58656e9"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="ds"><dir name="privatesales"><file name="login_ce14_15_16.phtml" hash="f89afa1794bf7aef7fc41bed2bdf3c2b"/><file name="login_ce17_18.phtml" hash="2cd3290ac19117dcae7ad0454c6f7ddd"/><file name="login_ce19.phtml" hash="7cc25c34f1c2d1034aa11843c36faf01"/><file name="opc_ce14_15_16.phtml" hash="a3050dd164da2b002b2aa6fdf4a5174a"/><file name="opc_ce17_18.phtml" hash="abe6960b443776a8119d3e5a4eb849c2"/><file name="opc_ce19.phtml" hash="e2c3d193a621da20f85e2f37c1b1d221"/></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="template"><dir name="ds"><dir name="privatesales"><file name="login_ce19.phtml" hash="3abdfb06d51679f9add50c2eafdce329"/><file name="opc_ce19.phtml" hash="9127b99d123d1d7de77f1f785604dab2"/></dir></dir></dir></dir></dir></dir></target></contents>
69
  <compatible/>
70
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php><package><name>Mage_Customer</name><channel>core</channel><min>1.4.0.0.13</min><max></max></package><package><name>Mage_Checkout</name><channel>core</channel><min>0.9.5</min><max></max></package></required></dependencies>
71
  </package>