DS_PrivateSales - Version 1.0.4.2

Version Notes

1.0.4.2
fixed broken compatibility for CE < 1.6 by latest changes

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.2
Comparing to
See all releases


Code changes from version 1.0.4.1 to 1.0.4.2

app/code/community/DS/PrivateSales/CHANGE.LOG CHANGED
@@ -1,5 +1,8 @@
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
 
1
  DS_PrivateSales
2
 
3
+ 1.0.4.2
4
+ fixed broken compatibility for CE < 1.6 by latest changes
5
+
6
  1.0.4.1
7
  fixed bug that configured custom admin path did redirect to frontend login on full store lock
8
 
app/code/community/DS/PrivateSales/Helper/Data.php CHANGED
@@ -11,6 +11,35 @@
11
  class DS_PrivateSales_Helper_Data extends Mage_Core_Helper_Abstract
12
  {
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  /**
15
  * Get configured admin path
16
  *
@@ -18,9 +47,9 @@ class DS_PrivateSales_Helper_Data extends Mage_Core_Helper_Abstract
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
  }
11
  class DS_PrivateSales_Helper_Data extends Mage_Core_Helper_Abstract
12
  {
13
 
14
+ /**
15
+ * AdminHTML XML Paths (for CE < 1.6)
16
+ *
17
+ * @var string
18
+ */
19
+ private $xmlPathUseCustomAdminPath = 'default/admin/url/use_custom_path';
20
+ private $xmlPathCustomAdminPath = 'default/admin/url/custom_path';
21
+ private $xmlPathAdminhtmlRouterFrontname = 'admin/routers/adminhtml/args/frontName';
22
+
23
+ /**
24
+ * Constructor
25
+ */
26
+ public function __construct() {
27
+ if (defined('Mage_Adminhtml_Helper_Data::XML_PATH_USE_CUSTOM_ADMIN_PATH'))
28
+ {
29
+ $this->xmlPathUseCustomAdminPath = Mage_Adminhtml_Helper_Data::XML_PATH_USE_CUSTOM_ADMIN_PATH;
30
+ }
31
+
32
+ if (defined('Mage_Adminhtml_Helper_Data::XML_PATH_CUSTOM_ADMIN_PATH'))
33
+ {
34
+ $this->xmlPathCustomAdminPath = Mage_Adminhtml_Helper_Data::XML_PATH_CUSTOM_ADMIN_PATH;
35
+ }
36
+
37
+ if (defined('Mage_Adminhtml_Helper_Data::XML_PATH_ADMINHTML_ROUTER_FRONTNAME'))
38
+ {
39
+ $this->xmlPathAdminhtmlRouterFrontname = Mage_Adminhtml_Helper_Data::XML_PATH_ADMINHTML_ROUTER_FRONTNAME;
40
+ }
41
+ }
42
+
43
  /**
44
  * Get configured admin path
45
  *
47
  */
48
  public function getAdminPath()
49
  {
50
+ $res = ((bool)(string)Mage::getConfig()->getNode($this->xmlPathUseCustomAdminPath))
51
+ ? (string)Mage::getConfig()->getNode($this->xmlPathCustomAdminPath)
52
+ : (string)Mage::getConfig()->getNode($this->xmlPathAdminhtmlRouterFrontname);
53
 
54
  return strlen($res) ? $res : 'admin';
55
  }
package.xml CHANGED
@@ -1,7 +1,7 @@
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,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.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;
@@ -64,8 +67,8 @@
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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DS_PrivateSales</name>
4
+ <version>1.0.4.2</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.2&#xD;
31
+ fixed broken compatibility for CE &lt; 1.6 by latest changes&#xD;
32
+ &#xD;
33
+ 1.0.4.1&#xD;
34
  fixed bug that configured custom admin path did redirect to frontend login on full store lock&#xD;
35
  &#xD;
36
  1.0.4&#xD;
67
  initial release</notes>
68
  <authors><author><name>Design:Slider GbR</name><user>DesignSliderGbR</user><email>magento@design-slider.de</email></author></authors>
69
  <date>2014-11-11</date>
70
+ <time>05:25:20</time>
71
+ <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="623f2c76375a9bb04a710ca35ee9240d"/><dir name="Helper"><file name="Data.php" hash="e2657be22d286ab41580db35502ba83e"/></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>
72
  <compatible/>
73
  <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>
74
  </package>