DS_PrivateSales - Version 1.0.2

Version Notes

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


Code changes from version 1.0.1 to 1.0.2

app/code/community/DS/PrivateSales/Block/Checkout/Onepage/Login.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Extended Onepage Checkout Login Block
4
+ *
5
+ * @author Design:Slider GbR <magento@design-slider.de>
6
+ * @copyright (C)Design:Slider GbR <www.design-slider.de>
7
+ * @license OSL <http://opensource.org/licenses/osl-3.0.php>
8
+ * @link http://www.design-slider.de/magento-onlineshop/magento-extensions/private-sales/
9
+ * @package DS_PrivateSales
10
+ */
11
+ class DS_PrivateSales_Block_Checkout_Onepage_Login extends Mage_Checkout_Block_Onepage_Login
12
+ {
13
+
14
+ /**
15
+ * Before rendering html, but after trying to load cache
16
+ *
17
+ * @return Mage_Core_Block_Abstract
18
+ * @see Mage_Core_Block_Template::_beforeToHtml
19
+ */
20
+ protected function _beforeToHtml()
21
+ {
22
+ // Set latest available template as default
23
+ $this->setTemplate('ds/privatesales/opc_ce17.phtml');
24
+
25
+ // Use older template depending on magento version (is there a layout xml based solution for that?)
26
+ $e = method_exists(Mage, 'getEdition') ? Mage::getEdition() : 'Community';
27
+ $v = Mage::getVersion();
28
+ if ($e = 'Community' && version_compare($v, '1.7') < 0) {
29
+
30
+ // Use CE 1.4 - 1.6.2 compatible template
31
+ $this->setTemplate('ds/privatesales/opc_ce14_15_16.phtml');
32
+ }
33
+
34
+ return $this;
35
+ }
36
+ }
app/code/community/DS/PrivateSales/Block/Customer/Form/Login.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Extended Customer Login Block
4
+ *
5
+ * @author Design:Slider GbR <magento@design-slider.de>
6
+ * @copyright (C)Design:Slider GbR <www.design-slider.de>
7
+ * @license OSL <http://opensource.org/licenses/osl-3.0.php>
8
+ * @link http://www.design-slider.de/magento-onlineshop/magento-extensions/private-sales/
9
+ * @package DS_PrivateSales
10
+ */
11
+ class DS_PrivateSales_Block_Customer_Form_Login extends Mage_Customer_Block_Form_Login
12
+ {
13
+
14
+ /**
15
+ * Before rendering html, but after trying to load cache
16
+ *
17
+ * @return Mage_Core_Block_Abstract
18
+ * @see Mage_Core_Block_Template::_beforeToHtml
19
+ */
20
+ protected function _beforeToHtml()
21
+ {
22
+ // Set latest available template as default
23
+ $this->setTemplate('ds/privatesales/login_ce17.phtml');
24
+
25
+ // Use older template depending on magento version (is there a layout xml based solution for that?)
26
+ $e = method_exists(Mage, 'getEdition') ? Mage::getEdition() : 'Community';
27
+ $v = Mage::getVersion();
28
+ if ($e = 'Community' && version_compare($v, '1.7') < 0) {
29
+
30
+ // Use CE 1.4 - 1.6.2 compatible template
31
+ $this->setTemplate('ds/privatesales/login_ce14_15_16.phtml');
32
+ }
33
+
34
+ return $this;
35
+ }
36
+ }
app/code/community/DS/PrivateSales/CHANGE.LOG CHANGED
@@ -1,5 +1,14 @@
1
  DS_PrivateSales
2
 
 
 
 
 
 
 
 
 
 
3
  1.0.1
4
  fixed redirect to startpage not working when customer_startup_redirect_dashboard is disabled
5
  fixed hive navigation option not working in ce 1.7
1
  DS_PrivateSales
2
 
3
+ 1.0.2
4
+ added option to hide or customize registration panel at login page
5
+ registration panel can be customized by configuring header, text, button visibility and button label
6
+ registration panel can be hidden or customized even when registration remains enabled
7
+ disabled registration removes all registration hints when entering onepage checkout as guest
8
+ disabled forgot password now also removes the links at login and onepage checkout page
9
+
10
+ note: new templates have been added so you may check them to match with your skin after update
11
+
12
  1.0.1
13
  fixed redirect to startpage not working when customer_startup_redirect_dashboard is disabled
14
  fixed hive navigation option not working in ce 1.7
app/code/community/DS/PrivateSales/Helper/Data.php CHANGED
@@ -55,7 +55,7 @@ class DS_PrivateSales_Helper_Data extends Mage_Core_Helper_Abstract
55
  {
56
  if ($this->isEnabled() && $this->haveGuest())
57
  {
58
- return !(bool)Mage::getStoreConfig('privatesales/accounting/registration');
59
  }
60
 
61
  return true;
@@ -70,7 +70,7 @@ class DS_PrivateSales_Helper_Data extends Mage_Core_Helper_Abstract
70
  {
71
  if ($this->isEnabled() && $this->haveGuest())
72
  {
73
- return !(bool)Mage::getStoreConfig('privatesales/accounting/password');
74
  }
75
 
76
  return true;
@@ -120,4 +120,95 @@ class DS_PrivateSales_Helper_Data extends Mage_Core_Helper_Abstract
120
 
121
  return true;
122
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  }
55
  {
56
  if ($this->isEnabled() && $this->haveGuest())
57
  {
58
+ return !(bool)Mage::getStoreConfig('privatesales/registration/disable');
59
  }
60
 
61
  return true;
70
  {
71
  if ($this->isEnabled() && $this->haveGuest())
72
  {
73
+ return !(bool)Mage::getStoreConfig('privatesales/forgot_password/disable');
74
  }
75
 
76
  return true;
120
 
121
  return true;
122
  }
123
+
124
+ /**
125
+ * Get Show Registion Login Panel Option
126
+ *
127
+ * @return int
128
+ */
129
+ public function getShowRegistrationLoginPanel()
130
+ {
131
+ if ($this->isEnabled())
132
+ {
133
+ return (int)Mage::getStoreConfig('privatesales/registration/login_panel');
134
+ }
135
+
136
+ return 1;
137
+ }
138
+
139
+ /**
140
+ * Check if Registion Login Panel can be shown
141
+ *
142
+ * @return boolean
143
+ */
144
+ public function canShowRegistrationLoginPanel()
145
+ {
146
+ if ($this->isEnabled())
147
+ {
148
+ return ($this->getShowRegistrationLoginPanel() > 0);
149
+ }
150
+
151
+ return true;
152
+ }
153
+
154
+ /**
155
+ * Get custom registration panel header
156
+ *
157
+ * @return string
158
+ */
159
+ public function getRegistrationPanelHeader()
160
+ {
161
+ if ($this->isEnabled())
162
+ {
163
+ return Mage::getStoreConfig('privatesales/registration/panel_header');
164
+ }
165
+
166
+ return '';
167
+
168
+ }
169
+
170
+ /**
171
+ * Get custom registration panel text
172
+ *
173
+ * @return string
174
+ */
175
+ public function getRegistrationPanelText()
176
+ {
177
+ if ($this->isEnabled())
178
+ {
179
+ return Mage::getStoreConfig('privatesales/registration/panel_text');
180
+ }
181
+
182
+ return '';
183
+ }
184
+
185
+ /**
186
+ * Check if registration panel button can be shown
187
+ *
188
+ * @return boolean
189
+ */
190
+ public function canShowRegistrationPanelButton()
191
+ {
192
+ if ($this->isEnabled())
193
+ {
194
+ return (bool)Mage::getStoreConfig('privatesales/registration/panel_button');
195
+ }
196
+
197
+ return true;
198
+ }
199
+
200
+ /**
201
+ * Get custom registration panel button text
202
+ *
203
+ * @return string
204
+ */
205
+ public function getRegistrationPanelButtonText()
206
+ {
207
+ if ($this->isEnabled())
208
+ {
209
+ return Mage::getStoreConfig('privatesales/registration/panel_button_text');
210
+ }
211
+
212
+ return '';
213
+ }
214
  }
app/code/community/DS/PrivateSales/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
 
4
  <modules>
5
  <DS_PrivateSales>
6
- <version>1.0.1</version>
7
  </DS_PrivateSales>
8
  </modules>
9
 
@@ -24,6 +24,16 @@
24
  <navigation>DS_PrivateSales_Block_Navigation</navigation>
25
  </rewrite>
26
  </catalog>
 
 
 
 
 
 
 
 
 
 
27
  <page>
28
  <rewrite>
29
  <html_topmenu>DS_PrivateSales_Block_Topmenu</html_topmenu>
@@ -42,6 +52,16 @@
42
  </observers>
43
  </controller_action_layout_load_before>
44
  </events>
 
 
 
 
 
 
 
 
 
 
45
  </global>
46
 
47
  <frontend>
@@ -95,4 +115,13 @@
95
  </modules>
96
  </translate>
97
  </adminhtml>
 
 
 
 
 
 
 
 
 
98
  </config>
3
 
4
  <modules>
5
  <DS_PrivateSales>
6
+ <version>1.0.2</version>
7
  </DS_PrivateSales>
8
  </modules>
9
 
24
  <navigation>DS_PrivateSales_Block_Navigation</navigation>
25
  </rewrite>
26
  </catalog>
27
+ <checkout>
28
+ <rewrite>
29
+ <onepage_login>DS_PrivateSales_Block_Checkout_Onepage_Login</onepage_login>
30
+ </rewrite>
31
+ </checkout>
32
+ <customer>
33
+ <rewrite>
34
+ <form_login>DS_PrivateSales_Block_Customer_Form_Login</form_login>
35
+ </rewrite>
36
+ </customer>
37
  <page>
38
  <rewrite>
39
  <html_topmenu>DS_PrivateSales_Block_Topmenu</html_topmenu>
52
  </observers>
53
  </controller_action_layout_load_before>
54
  </events>
55
+
56
+ <resources>
57
+ <ds_privatesales_setup>
58
+ <setup>
59
+ <module>DS_PrivateSales</module>
60
+ <class>Mage_Eav_Model_Entity_Setup</class>
61
+ </setup>
62
+ <connection><use>core_setup</use></connection>
63
+ </ds_privatesales_setup>
64
+ </resources>
65
  </global>
66
 
67
  <frontend>
115
  </modules>
116
  </translate>
117
  </adminhtml>
118
+
119
+ <default>
120
+ <privatesales>
121
+ <registration>
122
+ <login_panel>1</login_panel>
123
+ <panel_button>1</panel_button>
124
+ </registration>
125
+ </privatesales>
126
+ </default>
127
  </config>
app/code/community/DS/PrivateSales/etc/system.xml CHANGED
@@ -18,6 +18,7 @@
18
  <show_in_website>1</show_in_website>
19
  <show_in_store>1</show_in_store>
20
  <groups>
 
21
  <general translate="label" module="privatesales">
22
  <label>General Configuration</label>
23
  <frontend_type>text</frontend_type>
@@ -39,8 +40,9 @@
39
  </enable>
40
  </fields>
41
  </general>
42
- <accounting translate="label" module="privatesales">
43
- <label>Account Options</label>
 
44
  <frontend_type>text</frontend_type>
45
  <sort_order>2</sort_order>
46
  <expanded/>
@@ -48,7 +50,7 @@
48
  <show_in_website>1</show_in_website>
49
  <show_in_store>1</show_in_store>
50
  <fields>
51
- <registration translate="label" module="privatesales">
52
  <label>Disable Registration</label>
53
  <frontend_type>select</frontend_type>
54
  <source_model>adminhtml/system_config_source_yesno</source_model>
@@ -56,22 +58,81 @@
56
  <show_in_default>1</show_in_default>
57
  <show_in_website>1</show_in_website>
58
  <show_in_store>1</show_in_store>
59
- </registration>
60
- <password translate="label" module="privatesales">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  <label>Disable Forgot Password</label>
62
  <frontend_type>select</frontend_type>
63
  <source_model>adminhtml/system_config_source_yesno</source_model>
64
- <sort_order>2</sort_order>
65
  <show_in_default>1</show_in_default>
66
  <show_in_website>1</show_in_website>
67
  <show_in_store>1</show_in_store>
68
- </password>
69
  </fields>
70
- </accounting>
 
71
  <access translate="label" module="privatesales">
72
  <label>Guest Access Options</label>
73
  <frontend_type>text</frontend_type>
74
- <sort_order>3</sort_order>
75
  <expanded/>
76
  <show_in_default>1</show_in_default>
77
  <show_in_website>1</show_in_website>
@@ -118,8 +179,8 @@
118
  </navigation>
119
  </fields>
120
  </access>
 
121
  </groups>
122
  </privatesales>
123
  </sections>
124
-
125
  </config>
18
  <show_in_website>1</show_in_website>
19
  <show_in_store>1</show_in_store>
20
  <groups>
21
+
22
  <general translate="label" module="privatesales">
23
  <label>General Configuration</label>
24
  <frontend_type>text</frontend_type>
40
  </enable>
41
  </fields>
42
  </general>
43
+
44
+ <registration translate="label" module="privatesales">>
45
+ <label>Registration Options</label>
46
  <frontend_type>text</frontend_type>
47
  <sort_order>2</sort_order>
48
  <expanded/>
50
  <show_in_website>1</show_in_website>
51
  <show_in_store>1</show_in_store>
52
  <fields>
53
+ <disable translate="label" module="privatesales">
54
  <label>Disable Registration</label>
55
  <frontend_type>select</frontend_type>
56
  <source_model>adminhtml/system_config_source_yesno</source_model>
58
  <show_in_default>1</show_in_default>
59
  <show_in_website>1</show_in_website>
60
  <show_in_store>1</show_in_store>
61
+ </disable>
62
+ <login_panel translate="label" module="privatesales">
63
+ <label>Show panel at login page</label>
64
+ <frontend_type>select</frontend_type>
65
+ <source_model>adminhtml/system_config_source_yesnocustom</source_model>
66
+ <sort_order>2</sort_order>
67
+ <show_in_default>1</show_in_default>
68
+ <show_in_website>1</show_in_website>
69
+ <show_in_store>1</show_in_store>
70
+ </login_panel>
71
+ <panel_header translate="label" module="privatesales">
72
+ <label>Custom panel header</label>
73
+ <frontend_type>text</frontend_type>
74
+ <sort_order>3</sort_order>
75
+ <show_in_default>1</show_in_default>
76
+ <show_in_website>1</show_in_website>
77
+ <show_in_store>1</show_in_store>
78
+ <depends><login_panel>2</login_panel></depends>
79
+ </panel_header>
80
+ <panel_text translate="label" module="privatesales">
81
+ <label>Custom panel text</label>
82
+ <frontend_type>textarea</frontend_type>
83
+ <sort_order>4</sort_order>
84
+ <show_in_default>1</show_in_default>
85
+ <show_in_website>1</show_in_website>
86
+ <show_in_store>1</show_in_store>
87
+ <depends><login_panel>2</login_panel></depends>
88
+ </panel_text>
89
+ <panel_button translate="label" module="privatesales">
90
+ <label>Show button</label>
91
+ <frontend_type>select</frontend_type>
92
+ <source_model>adminhtml/system_config_source_yesno</source_model>
93
+ <sort_order>5</sort_order>
94
+ <show_in_default>1</show_in_default>
95
+ <show_in_website>1</show_in_website>
96
+ <show_in_store>1</show_in_store>
97
+ <depends><login_panel>2</login_panel></depends>
98
+ </panel_button>
99
+ <panel_button_text translate="label" module="privatesales">
100
+ <label>Custom button text</label>
101
+ <frontend_type>text</frontend_type>
102
+ <sort_order>6</sort_order>
103
+ <show_in_default>1</show_in_default>
104
+ <show_in_website>1</show_in_website>
105
+ <show_in_store>1</show_in_store>
106
+ <depends><login_panel>2</login_panel><panel_button>1</panel_button></depends>
107
+ </panel_button_text>
108
+ </fields>
109
+ </registration>
110
+
111
+ <forgot_password translate="label" module="privatesales">
112
+ <label>Forgot Password Options</label>
113
+ <frontend_type>text</frontend_type>
114
+ <sort_order>3</sort_order>
115
+ <expanded/>
116
+ <show_in_default>1</show_in_default>
117
+ <show_in_website>1</show_in_website>
118
+ <show_in_store>1</show_in_store>
119
+ <fields>
120
+ <disable translate="label" module="privatesales">
121
  <label>Disable Forgot Password</label>
122
  <frontend_type>select</frontend_type>
123
  <source_model>adminhtml/system_config_source_yesno</source_model>
124
+ <sort_order>1</sort_order>
125
  <show_in_default>1</show_in_default>
126
  <show_in_website>1</show_in_website>
127
  <show_in_store>1</show_in_store>
128
+ </disable>
129
  </fields>
130
+ </forgot_password>
131
+
132
  <access translate="label" module="privatesales">
133
  <label>Guest Access Options</label>
134
  <frontend_type>text</frontend_type>
135
+ <sort_order>5</sort_order>
136
  <expanded/>
137
  <show_in_default>1</show_in_default>
138
  <show_in_website>1</show_in_website>
179
  </navigation>
180
  </fields>
181
  </access>
182
+
183
  </groups>
184
  </privatesales>
185
  </sections>
 
186
  </config>
app/code/community/DS/PrivateSales/sql/ds_privatesales_setup/upgrade-1.0.1-1.0.2.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Resource Setup for Update from 1.0.1 to 1.0.2
4
+ *
5
+ * @author Design:Slider GbR <magento@design-slider.de>
6
+ * @copyright (C)Design:Slider GbR <www.design-slider.de>
7
+ * @license OSL <http://opensource.org/licenses/osl-3.0.php>
8
+ * @link http://www.design-slider.de/magento-onlineshop/magento-extensions/private-sales/
9
+ * @package DS_PrivateSales
10
+ */
11
+ $installer = $this;
12
+ /* @var $installer Mage_Eav_Model_Entity_Setup */
13
+
14
+ $installer->startSetup();
15
+
16
+ # Move old config option for disabling registration to new one
17
+ $configCollection = Mage::getModel('core/config_data')->getCollection();
18
+ $configCollection->addFieldToFilter('path', array('eq' => 'privatesales/accounting/registration'));
19
+ foreach($configCollection as $configData) {
20
+ $configData->setPath('privatesales/registration/disable')->save();
21
+ }
22
+
23
+ # Move old config option for disabling forgot password to new one
24
+ $configCollection = Mage::getModel('core/config_data')->getCollection();
25
+ $configCollection->addFieldToFilter('path', array('eq' => 'privatesales/accounting/password'));
26
+ foreach($configCollection as $configData) {
27
+ $configData->setPath('privatesales/forgot_password/disable')->save();
28
+ }
29
+
30
+ $installer->endSetup();
app/design/frontend/default/default/template/ds/privatesales/login_ce14_15_16.phtml ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Customer Login Template for Community Editions 1.4 - 1.6.2
4
+ *
5
+ * @author Design:Slider GbR <magento@design-slider.de>
6
+ * @copyright (C)Design:Slider GbR <www.design-slider.de>
7
+ * @license OSL <http://opensource.org/licenses/osl-3.0.php>
8
+ * @link http://www.design-slider.de/magento-onlineshop/magento-extensions/private-sales/
9
+ * @package DS_PrivateSales
10
+ */
11
+
12
+ $helper = Mage::helper('privatesales');
13
+ /* @var $helper DS_PrivateSales_Helper_Data */
14
+
15
+ $canShowRegPanel = $helper->canShowRegistrationLoginPanel();
16
+ $customRegPanel = ($helper->getShowRegistrationLoginPanel()==2);
17
+ $customRegHeader = $helper->getRegistrationPanelHeader();
18
+ $customRegText = $helper->getRegistrationPanelText();
19
+ $canShowRegButton = $helper->canShowRegistrationPanelButton();
20
+ $customButtonText = $helper->getRegistrationPanelButtonText();
21
+ $isForgotPasswordEnabled = $helper->canShowForgotPassword();
22
+ $isRegistrationEnabled = $helper->canShowRegistration();
23
+ ?>
24
+ <div class="account-login">
25
+ <div class="page-title">
26
+ <h1><?php echo (!$isRegistrationEnabled) ? Mage::helper('customer')->__('Login') : Mage::helper('customer')->__('Login or Create an Account') ?></h1>
27
+ </div>
28
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
29
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-form">
30
+ <div<?php if ($canShowRegPanel): ?> class="col2-set"<?php endif; ?>>
31
+ <?php if ($canShowRegPanel): ?>
32
+ <div class="col-1 new-users">
33
+ <div class="content">
34
+ <h2><?php echo ($customRegPanel && strlen($customRegHeader)) ? $customRegHeader : Mage::helper('customer')->__('New Customers') ?></h2>
35
+ <p><?php echo ($customRegPanel && strlen($customRegText)) ? nl2br($customRegText) : Mage::helper('customer')->__('By creating an account with our store, you will be able to move through the checkout process faster, store multiple shipping addresses, view and track your orders in your account and more.') ?></p>
36
+ </div>
37
+ </div>
38
+ <?php endif; ?>
39
+ <div class="col-2 registered-users">
40
+ <div class="content">
41
+ <h2><?php echo Mage::helper('customer')->__('Registered Customers') ?></h2>
42
+ <p><?php echo Mage::helper('customer')->__('If you have an account with us, please log in.') ?></p>
43
+ <ul class="form-list">
44
+ <li>
45
+ <label for="email" class="required"><em>*</em><?php echo Mage::helper('customer')->__('Email Address') ?></label>
46
+ <div class="input-box">
47
+ <input type="text" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" id="email" class="input-text required-entry validate-email" title="<?php echo Mage::helper('customer')->__('Email Address') ?>" />
48
+ </div>
49
+ </li>
50
+ <li>
51
+ <label for="pass" class="required"><em>*</em><?php echo Mage::helper('customer')->__('Password') ?></label>
52
+ <div class="input-box">
53
+ <input type="password" name="login[password]" class="input-text required-entry validate-password" id="pass" title="<?php echo Mage::helper('customer')->__('Password') ?>" />
54
+ </div>
55
+ </li>
56
+ </ul>
57
+ <p class="required"><?php echo Mage::helper('customer')->__('* Required Fields') ?></p>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ <div<?php if ($canShowRegPanel): ?> class="col2-set"<?php endif; ?>>
62
+ <?php if ($canShowRegPanel): ?>
63
+ <div class="col-1 new-users">
64
+ <div class="buttons-set">
65
+ <?php if (!$customRegPanel || $canShowRegButton): ?>
66
+ <button type="button" title="<?php echo ($customRegPanel && strlen($customButtonText)) ? $customButtonText : Mage::helper('customer')->__('Create an Account') ?>" class="button" onclick="window.location='<?php echo $this->getCreateAccountUrl() ?>';"><span><span><?php echo ($customRegPanel && strlen($customButtonText)) ? $customButtonText : Mage::helper('customer')->__('Create an Account') ?></span></span></button>
67
+ <?php else: ?>
68
+ <button type="button" class="button" style="visibility:hidden;" disabled="disabled"><span><span></span></span></button>
69
+ <?php endif; ?>
70
+ </div>
71
+ </div>
72
+ <?php endif; ?>
73
+ <div class="col-2 registered-users">
74
+ <div class="buttons-set">
75
+ <?php if ($isForgotPasswordEnabled): ?>
76
+ <a href="<?php echo $this->getForgotPasswordUrl() ?>" class="f-left"><?php echo Mage::helper('customer')->__('Forgot Your Password?') ?></a>
77
+ <?php endif; ?>
78
+ <button type="submit" class="button" title="<?php echo Mage::helper('customer')->__('Login') ?>" name="send" id="send2"><span><span><?php echo Mage::helper('customer')->__('Login') ?></span></span></button>
79
+ </div>
80
+ </div>
81
+ </div>
82
+ </form>
83
+ <script type="text/javascript">
84
+ //<![CDATA[
85
+ var dataForm = new VarienForm('login-form', true);
86
+ //]]>
87
+ </script>
88
+ </div>
app/design/frontend/default/default/template/ds/privatesales/login_ce17.phtml ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Customer Login Template for Community Edition 1.7
4
+ *
5
+ * @author Design:Slider GbR <magento@design-slider.de>
6
+ * @copyright (C)Design:Slider GbR <www.design-slider.de>
7
+ * @license OSL <http://opensource.org/licenses/osl-3.0.php>
8
+ * @link http://www.design-slider.de/magento-onlineshop/magento-extensions/private-sales/
9
+ * @package DS_PrivateSales
10
+ */
11
+
12
+ $helper = Mage::helper('privatesales');
13
+ /* @var $helper DS_PrivateSales_Helper_Data */
14
+
15
+ $canShowRegPanel = $helper->canShowRegistrationLoginPanel();
16
+ $customRegPanel = ($helper->getShowRegistrationLoginPanel()==2);
17
+ $customRegHeader = $helper->getRegistrationPanelHeader();
18
+ $customRegText = $helper->getRegistrationPanelText();
19
+ $canShowRegButton = $helper->canShowRegistrationPanelButton();
20
+ $customButtonText = $helper->getRegistrationPanelButtonText();
21
+ $isForgotPasswordEnabled = $helper->canShowForgotPassword();
22
+ $isRegistrationEnabled = $helper->canShowRegistration();
23
+ ?>
24
+ <div class="account-login">
25
+ <div class="page-title">
26
+ <h1><?php echo (!$isRegistrationEnabled) ? Mage::helper('customer')->__('Login') : Mage::helper('customer')->__('Login or Create an Account') ?></h1>
27
+ </div>
28
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
29
+ <?php /* Extensions placeholder */ ?>
30
+ <?php echo $this->getChildHtml('customer.form.login.extra')?>
31
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-form">
32
+ <div<?php if ($canShowRegPanel): ?> class="col2-set"<?php endif; ?>>
33
+ <?php if ($canShowRegPanel): ?>
34
+ <div class="col-1 new-users">
35
+ <div class="content">
36
+ <h2><?php echo ($customRegPanel && strlen($customRegHeader)) ? $customRegHeader : Mage::helper('customer')->__('New Customers') ?></h2>
37
+ <p><?php echo ($customRegPanel && strlen($customRegText)) ? nl2br($customRegText) : Mage::helper('customer')->__('By creating an account with our store, you will be able to move through the checkout process faster, store multiple shipping addresses, view and track your orders in your account and more.') ?></p>
38
+ </div>
39
+ </div>
40
+ <?php endif; ?>
41
+ <div class="col-2 registered-users">
42
+ <div class="content">
43
+ <h2><?php echo Mage::helper('customer')->__('Registered Customers') ?></h2>
44
+ <p><?php echo Mage::helper('customer')->__('If you have an account with us, please log in.') ?></p>
45
+ <ul class="form-list">
46
+ <li>
47
+ <label for="email" class="required"><em>*</em><?php echo Mage::helper('customer')->__('Email Address') ?></label>
48
+ <div class="input-box">
49
+ <input type="text" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" id="email" class="input-text required-entry validate-email" title="<?php echo Mage::helper('customer')->__('Email Address') ?>" />
50
+ </div>
51
+ </li>
52
+ <li>
53
+ <label for="pass" class="required"><em>*</em><?php echo Mage::helper('customer')->__('Password') ?></label>
54
+ <div class="input-box">
55
+ <input type="password" name="login[password]" class="input-text required-entry validate-password" id="pass" title="<?php echo Mage::helper('customer')->__('Password') ?>" />
56
+ </div>
57
+ </li>
58
+ <?php echo $this->getChildHtml('form.additional.info'); ?>
59
+ </ul>
60
+ <p class="required"><?php echo Mage::helper('customer')->__('* Required Fields') ?></p>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ <div<?php if ($canShowRegPanel): ?> class="col2-set"<?php endif; ?>>
65
+ <?php if ($canShowRegPanel): ?>
66
+ <div class="col-1 new-users">
67
+ <div class="buttons-set">
68
+ <?php if (!$customRegPanel || $canShowRegButton): ?>
69
+ <button type="button" title="<?php echo ($customRegPanel && strlen($customButtonText)) ? $customButtonText : Mage::helper('customer')->__('Create an Account') ?>" class="button" onclick="window.location='<?php echo $this->getCreateAccountUrl() ?>';"><span><span><?php echo ($customRegPanel && strlen($customButtonText)) ? $customButtonText : Mage::helper('customer')->__('Create an Account') ?></span></span></button>
70
+ <?php else: ?>
71
+ <button type="button" class="button" style="visibility:hidden;" disabled="disabled"><span><span></span></span></button>
72
+ <?php endif; ?>
73
+ </div>
74
+ </div>
75
+ <?php endif; ?>
76
+ <div class="col-2 registered-users">
77
+ <div class="buttons-set">
78
+ <?php if ($isForgotPasswordEnabled): ?>
79
+ <a href="<?php echo $this->getForgotPasswordUrl() ?>" class="f-left"><?php echo Mage::helper('customer')->__('Forgot Your Password?') ?></a>
80
+ <?php endif; ?>
81
+ <button type="submit" class="button" title="<?php echo Mage::helper('customer')->__('Login') ?>" name="send" id="send2"><span><span><?php echo Mage::helper('customer')->__('Login') ?></span></span></button>
82
+ </div>
83
+ </div>
84
+ </div>
85
+ </form>
86
+ <script type="text/javascript">
87
+ //<![CDATA[
88
+ var dataForm = new VarienForm('login-form', true);
89
+ //]]>
90
+ </script>
91
+ </div>
app/design/frontend/default/default/template/ds/privatesales/opc_ce14_15_16.phtml ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Onepage Checkout Login Template for Community Edition 1.4 - 1.6.2
4
+ *
5
+ * @author Design:Slider GbR <magento@design-slider.de>
6
+ * @copyright (C)Design:Slider GbR <www.design-slider.de>
7
+ * @license OSL <http://opensource.org/licenses/osl-3.0.php>
8
+ * @link http://www.design-slider.de/magento-onlineshop/magento-extensions/private-sales/
9
+ * @package DS_PrivateSales
10
+ */
11
+
12
+ $helper = Mage::helper('privatesales');
13
+ /* @var $helper DS_PrivateSales_Helper_Data */
14
+
15
+ $isForgotPasswordEnabled = $helper->canShowForgotPassword();
16
+ $isRegistrationEnabled = $helper->canShowRegistration();
17
+ ?>
18
+ <div<?php if ($this->getQuote()->isAllowedGuestCheckout() || $isRegistrationEnabled): ?> class="col2-set"<?php endif; ?>>
19
+ <?php echo $this->getChildHtml('login_before')?>
20
+
21
+ <?php if ($this->getQuote()->isAllowedGuestCheckout() || $isRegistrationEnabled): ?>
22
+ <div class="col-1">
23
+
24
+ <?php if ($isRegistrationEnabled): ?>
25
+ <h3><?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?><?php echo Mage::helper('checkout')->__('Checkout as a Guest or Register') ?><?php else: ?><?php echo Mage::helper('checkout')->__('Register to Create an Account') ?><?php endif; ?></h3>
26
+ <?php elseif ($this->getQuote()->isAllowedGuestCheckout()): ?>
27
+ <h3><?php echo Mage::helper('checkout')->__('Checkout as Guest') ?></h3>
28
+ <?php endif; ?>
29
+
30
+ <?php if ($isRegistrationEnabled): ?>
31
+ <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
32
+ <p><?php echo Mage::helper('checkout')->__('Register with us for future convenience:') ?></p>
33
+ <?php else: ?>
34
+ <p><strong><?php echo Mage::helper('checkout')->__('Register and save time!') ?></strong><br />
35
+ <?php echo Mage::helper('checkout')->__('Register with us for future convenience:') ?></p>
36
+ <ul>
37
+ <li><?php echo Mage::helper('checkout')->__('Fast and easy check out') ?></li>
38
+ <li><?php echo Mage::helper('checkout')->__('Easy access to your order history and status') ?></li>
39
+ </ul>
40
+ <?php endif; ?>
41
+ <?php endif; ?>
42
+
43
+ <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
44
+ <ul class="form-list">
45
+ <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
46
+ <li class="control">
47
+ <input type="radio" name="checkout_method" id="login:guest" value="guest"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_GUEST): ?> checked="checked"<?php endif; ?> class="radio" /><label for="login:guest"><?php echo Mage::helper('checkout')->__('Checkout as Guest') ?></label>
48
+ </li>
49
+ <?php endif; ?>
50
+
51
+ <?php if ($isRegistrationEnabled): ?>
52
+ <li class="control">
53
+ <input type="radio" name="checkout_method" id="login:register" value="register"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER || !$this->getQuote()->isAllowedGuestCheckout()): ?> checked="checked"<?php endif ?> class="radio" /><label for="login:register"><?php echo Mage::helper('checkout')->__('Register') ?></label>
54
+ </li>
55
+ <?php endif; ?>
56
+
57
+ </ul>
58
+
59
+ <?php if ($isRegistrationEnabled): ?>
60
+ <h4><?php echo Mage::helper('checkout')->__('Register and save time!') ?></h4>
61
+ <p><?php echo Mage::helper('checkout')->__('Register with us for future convenience:') ?></p>
62
+ <ul class="ul">
63
+ <li><?php echo Mage::helper('checkout')->__('Fast and easy check out') ?></li>
64
+ <li><?php echo Mage::helper('checkout')->__('Easy access to your order history and status') ?></li>
65
+ </ul>
66
+ <?php endif; ?>
67
+
68
+ <?php elseif ($isRegistrationEnabled): ?>
69
+ <input type="hidden" name="checkout_method" id="login:register" value="register" checked="checked" />
70
+ <?php endif; ?>
71
+ </div>
72
+ <?php endif; ?>
73
+
74
+ <div class="col-2">
75
+ <h3><?php echo Mage::helper('checkout')->__('Login') ?></h3>
76
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
77
+ <form id="login-form" action="<?php echo $this->getPostAction() ?>" method="post">
78
+ <fieldset>
79
+ <h4><?php echo Mage::helper('checkout')->__('Already registered?') ?></h4>
80
+ <p><?php echo Mage::helper('checkout')->__('Please log in below:') ?></p>
81
+ <ul class="form-list">
82
+ <li>
83
+ <label for="login-email" class="required"><em>*</em><?php echo Mage::helper('checkout')->__('Email Address') ?></label>
84
+ <div class="input-box">
85
+ <input type="text" class="input-text required-entry validate-email" id="login-email" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" />
86
+ </div>
87
+ </li>
88
+ <li>
89
+ <label for="login-password" class="required"><em>*</em><?php echo Mage::helper('checkout')->__('Password') ?></label>
90
+ <div class="input-box">
91
+ <input type="password" class="input-text required-entry" id="login-password" name="login[password]" />
92
+ </div>
93
+ </li>
94
+ </ul>
95
+ </fieldset>
96
+ </form>
97
+ </div>
98
+ </div>
99
+ <div<?php if ($this->getQuote()->isAllowedGuestCheckout() || $isRegistrationEnabled): ?> class="col2-set"<?php endif; ?>>
100
+ <?php if ($this->getQuote()->isAllowedGuestCheckout() || $isRegistrationEnabled): ?>
101
+ <div class="col-1">
102
+ <div class="buttons-set">
103
+ <p class="required">&nbsp;</p>
104
+ <button type="button" class="button" onclick="checkout.setMethod();"><span><span><?php echo ($this->getQuote()->isAllowedGuestCheckout() ? Mage::helper('checkout')->__('Continue') : Mage::helper('checkout')->__('Register')) ?></span></span></button>
105
+ </div>
106
+ </div>
107
+ <?php endif; ?>
108
+ <div class="col-2">
109
+ <div class="buttons-set">
110
+ <p class="required"><?php echo Mage::helper('checkout')->__('* Required Fields') ?></p>
111
+
112
+ <?php if ($isForgotPasswordEnabled): ?>
113
+ <a href="<?php echo $this->getUrl('customer/account/forgotpassword') ?>" class="f-left"><?php echo Mage::helper('checkout')->__('Forgot your password?') ?></a>
114
+ <?php endif; ?>
115
+
116
+ <button type="submit" class="button" onclick="onepageLogin(this)"><span><span><?php echo Mage::helper('checkout')->__('Login') ?></span></span></button>
117
+ </div>
118
+ </div>
119
+ </div>
120
+ <script type="text/javascript">
121
+ //<![CDATA[
122
+ var loginForm = new VarienForm('login-form', true);
123
+ $('login-email').observe('keypress', bindLoginPost);
124
+ $('login-password').observe('keypress', bindLoginPost);
125
+ function bindLoginPost(evt){
126
+ if (evt.keyCode == Event.KEY_RETURN) {
127
+ loginForm.submit();
128
+ }
129
+ }
130
+ function onepageLogin(button)
131
+ {
132
+ if(loginForm.validator && loginForm.validator.validate()){
133
+ button.disabled = true;
134
+ loginForm.submit();
135
+ }
136
+ }
137
+ //]]>
138
+ </script>
app/design/frontend/default/default/template/ds/privatesales/opc_ce17.phtml ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Onepage Checkout Login Template for Community Edition 1.7
4
+ *
5
+ * @author Design:Slider GbR <magento@design-slider.de>
6
+ * @copyright (C)Design:Slider GbR <www.design-slider.de>
7
+ * @license OSL <http://opensource.org/licenses/osl-3.0.php>
8
+ * @link http://www.design-slider.de/magento-onlineshop/magento-extensions/private-sales/
9
+ * @package DS_PrivateSales
10
+ */
11
+
12
+ $helper = Mage::helper('privatesales');
13
+ /* @var $helper DS_PrivateSales_Helper_Data */
14
+
15
+ $isForgotPasswordEnabled = $helper->canShowForgotPassword();
16
+ $isRegistrationEnabled = $helper->canShowRegistration();
17
+ ?>
18
+ <?php /* Extensions placeholder */ ?>
19
+ <?php echo $this->getChildHtml('checkout.onepage.login.extra')?>
20
+ <div<?php if ($this->getQuote()->isAllowedGuestCheckout() || $isRegistrationEnabled): ?> class="col2-set"<?php endif; ?>>
21
+ <?php echo $this->getChildHtml('login_before')?>
22
+
23
+ <?php if ($this->getQuote()->isAllowedGuestCheckout() || $isRegistrationEnabled): ?>
24
+ <div class="col-1">
25
+
26
+ <?php if ($isRegistrationEnabled): ?>
27
+ <h3><?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?><?php echo Mage::helper('checkout')->__('Checkout as a Guest or Register') ?><?php else: ?><?php echo Mage::helper('checkout')->__('Register to Create an Account') ?><?php endif; ?></h3>
28
+ <?php elseif ($this->getQuote()->isAllowedGuestCheckout()): ?>
29
+ <h3><?php echo Mage::helper('checkout')->__('Checkout as Guest') ?></h3>
30
+ <?php endif; ?>
31
+
32
+ <?php if ($isRegistrationEnabled): ?>
33
+ <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
34
+ <p><?php echo Mage::helper('checkout')->__('Register with us for future convenience:') ?></p>
35
+ <?php else: ?>
36
+ <p><strong><?php echo Mage::helper('checkout')->__('Register and save time!') ?></strong><br />
37
+ <?php echo Mage::helper('checkout')->__('Register with us for future convenience:') ?></p>
38
+ <ul>
39
+ <li><?php echo Mage::helper('checkout')->__('Fast and easy check out') ?></li>
40
+ <li><?php echo Mage::helper('checkout')->__('Easy access to your order history and status') ?></li>
41
+ </ul>
42
+ <?php endif; ?>
43
+ <?php endif; ?>
44
+
45
+ <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
46
+ <ul class="form-list">
47
+ <?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
48
+ <li class="control">
49
+ <input type="radio" name="checkout_method" id="login:guest" value="guest"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_GUEST): ?> checked="checked"<?php endif; ?> class="radio" /><label for="login:guest"><?php echo Mage::helper('checkout')->__('Checkout as Guest') ?></label>
50
+ </li>
51
+ <?php endif; ?>
52
+
53
+ <?php if ($isRegistrationEnabled): ?>
54
+ <li class="control">
55
+ <input type="radio" name="checkout_method" id="login:register" value="register"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER || !$this->getQuote()->isAllowedGuestCheckout()): ?> checked="checked"<?php endif ?> class="radio" /><label for="login:register"><?php echo Mage::helper('checkout')->__('Register') ?></label>
56
+ </li>
57
+ <?php endif; ?>
58
+
59
+ </ul>
60
+
61
+ <?php if ($isRegistrationEnabled): ?>
62
+ <h4><?php echo Mage::helper('checkout')->__('Register and save time!') ?></h4>
63
+ <p><?php echo Mage::helper('checkout')->__('Register with us for future convenience:') ?></p>
64
+ <ul class="ul">
65
+ <li><?php echo Mage::helper('checkout')->__('Fast and easy check out') ?></li>
66
+ <li><?php echo Mage::helper('checkout')->__('Easy access to your order history and status') ?></li>
67
+ </ul>
68
+ <?php endif; ?>
69
+
70
+ <?php elseif ($isRegistrationEnabled): ?>
71
+ <input type="hidden" name="checkout_method" id="login:register" value="register" checked="checked" />
72
+ <?php endif; ?>
73
+ </div>
74
+ <?php endif; ?>
75
+
76
+ <div class="col-2">
77
+ <h3><?php echo Mage::helper('checkout')->__('Login') ?></h3>
78
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
79
+ <form id="login-form" action="<?php echo $this->getPostAction() ?>" method="post">
80
+ <fieldset>
81
+ <h4><?php echo Mage::helper('checkout')->__('Already registered?') ?></h4>
82
+ <p><?php echo Mage::helper('checkout')->__('Please log in below:') ?></p>
83
+ <ul class="form-list">
84
+ <li>
85
+ <label for="login-email" class="required"><em>*</em><?php echo Mage::helper('checkout')->__('Email Address') ?></label>
86
+ <div class="input-box">
87
+ <input type="text" class="input-text required-entry validate-email" id="login-email" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" />
88
+ </div>
89
+ </li>
90
+ <li>
91
+ <label for="login-password" class="required"><em>*</em><?php echo Mage::helper('checkout')->__('Password') ?></label>
92
+ <div class="input-box">
93
+ <input type="password" class="input-text required-entry" id="login-password" name="login[password]" />
94
+ </div>
95
+ </li>
96
+ <?php echo $this->getChildHtml('form.additional.info'); ?>
97
+ </ul>
98
+ </fieldset>
99
+ </form>
100
+ </div>
101
+ </div>
102
+ <div<?php if ($this->getQuote()->isAllowedGuestCheckout() || $isRegistrationEnabled): ?> class="col2-set"<?php endif; ?>>
103
+ <?php if ($this->getQuote()->isAllowedGuestCheckout() || $isRegistrationEnabled): ?>
104
+ <div class="col-1">
105
+ <div class="buttons-set">
106
+ <p class="required">&nbsp;</p>
107
+ <button type="button" class="button" onclick="checkout.setMethod();"><span><span><?php echo ($this->getQuote()->isAllowedGuestCheckout() ? Mage::helper('checkout')->__('Continue') : Mage::helper('checkout')->__('Register')) ?></span></span></button>
108
+ </div>
109
+ </div>
110
+ <?php endif; ?>
111
+ <div class="col-2">
112
+ <div class="buttons-set">
113
+ <p class="required"><?php echo Mage::helper('checkout')->__('* Required Fields') ?></p>
114
+
115
+ <?php if ($isForgotPasswordEnabled): ?>
116
+ <a href="<?php echo $this->getUrl('customer/account/forgotpassword') ?>" class="f-left"><?php echo Mage::helper('checkout')->__('Forgot your password?') ?></a>
117
+ <?php endif; ?>
118
+
119
+ <button type="submit" class="button" onclick="onepageLogin(this)"><span><span><?php echo Mage::helper('checkout')->__('Login') ?></span></span></button>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ <script type="text/javascript">
124
+ //<![CDATA[
125
+ var loginForm = new VarienForm('login-form', true);
126
+ $('login-email').observe('keypress', bindLoginPost);
127
+ $('login-password').observe('keypress', bindLoginPost);
128
+ function bindLoginPost(evt){
129
+ if (evt.keyCode == Event.KEY_RETURN) {
130
+ loginForm.submit();
131
+ }
132
+ }
133
+ function onepageLogin(button)
134
+ {
135
+ if(loginForm.validator && loginForm.validator.validate()){
136
+ button.disabled = true;
137
+ loginForm.submit();
138
+ }
139
+ }
140
+ //]]>
141
+ </script>
app/etc/modules/DS_PrivateSales.xml CHANGED
@@ -5,6 +5,7 @@
5
  <active>true</active>
6
  <codePool>community</codePool>
7
  <depends>
 
8
  <Mage_Customer/>
9
  </depends>
10
  </DS_PrivateSales>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
  <depends>
8
+ <Mage_Checkout/>
9
  <Mage_Customer/>
10
  </depends>
11
  </DS_PrivateSales>
app/locale/de_DE/DS_PrivateSales.csv CHANGED
@@ -1,15 +1,21 @@
1
- "Account Options","Kundenkonto Vorgänge"
2
  "Account registration has been locked.","Die Neukundenanmeldung wurde gesperrt."
3
  "Authentication Required","Anmeldung erzwingen"
 
 
 
4
  "Disable Forgot Password","Passwort vergessen deaktivieren"
5
  "Disable Registration","Registrierung deaktivieren"
6
  "Enables or disables this extension","Diese Erweiterung an- und ausschalten"
7
  "Forgot password has been locked.","Die Password vergessen Funktion wurde gesperrt."
 
8
  "General Configuration","Allgemeine Einstellungen"
9
  "Guest Access Options","Zugriffsbereiche für Gäste"
10
  "Hide Catalog Navigation","Katalognavigation ausblenden"
11
  "Hide Catalog Pages","Katalogseiten sperren"
12
  "Hide Content Pages","Inhaltsseiten sperren"
13
  "Login is required to view the desired page.","Für die Anzeige der gewünschten Seite ist eine Authentifizierung erforderlich."
 
14
  "Set to yes to lock everything (including the home page)","Aktivieren, um alles zu sperren (inklusive Startseite)"
 
 
15
  "Use Private Sales","Private Sales verwenden"
 
1
  "Account registration has been locked.","Die Neukundenanmeldung wurde gesperrt."
2
  "Authentication Required","Anmeldung erzwingen"
3
+ "Custom button text","Eigener Button Text"
4
+ "Custom panel header","Eigene Überschrift"
5
+ "Custom panel text","Eigener Hinweistext"
6
  "Disable Forgot Password","Passwort vergessen deaktivieren"
7
  "Disable Registration","Registrierung deaktivieren"
8
  "Enables or disables this extension","Diese Erweiterung an- und ausschalten"
9
  "Forgot password has been locked.","Die Password vergessen Funktion wurde gesperrt."
10
+ "Forgot Password Options","Einstellungen für Password vergessen"
11
  "General Configuration","Allgemeine Einstellungen"
12
  "Guest Access Options","Zugriffsbereiche für Gäste"
13
  "Hide Catalog Navigation","Katalognavigation ausblenden"
14
  "Hide Catalog Pages","Katalogseiten sperren"
15
  "Hide Content Pages","Inhaltsseiten sperren"
16
  "Login is required to view the desired page.","Für die Anzeige der gewünschten Seite ist eine Authentifizierung erforderlich."
17
+ "Registration Options","Einstellungen zur Neukundenregistrierung"
18
  "Set to yes to lock everything (including the home page)","Aktivieren, um alles zu sperren (inklusive Startseite)"
19
+ "Show button","Button anzeigen"
20
+ "Show panel at login page","Registrierungshinweise beim Login anzeigen"
21
  "Use Private Sales","Private Sales verwenden"
package.xml CHANGED
@@ -1,35 +1,40 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DS_PrivateSales</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Adds the possibility to hide &amp; lock certain parts of your stores for guests.</summary>
10
- <description>Adds the possibility to hide &amp; lock certain parts of your stores for guests, guiding them to authenticate themselves first.&#xD;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  &#xD;
12
- Features:&#xD;
13
- &#xD;
14
- - Registration can be disabled&#xD;
15
- - Forgot Password can be disabled&#xD;
16
- - Full Store can be blocked, and if not:&#xD;
17
- o Catalog&amp;Product Views and Search can be blocked separately&#xD;
18
- o CMS page views can be blocked separately&#xD;
19
- - Catalog navigation can be hided&#xD;
20
- - Fixes redirect to startpage not working when customer_startup_redirect_dashboard is disabled&#xD;
21
- - Admin ACL for configuration&#xD;
22
- &#xD;
23
- All restrictions move away once the user is logged in.&#xD;
24
- &#xD;
25
- Included translations: de_DE&#xD;
26
- &#xD;
27
- Future Updates planned, including:&#xD;
28
- - Hide product blocks without blocking entire page&#xD;
29
- - Login page customization (for reg &amp; forgot pw options)&#xD;
30
- - Multiselect for certain store areas to block instead of single options&#xD;
31
- - Support for configuring rules for each user group</description>
32
- <notes>1.0.1&#xD;
33
  fixed redirect to startpage not working when customer_startup_redirect_dashboard is disabled&#xD;
34
  fixed hive navigation option not working in ce 1.7&#xD;
35
  fixed fatal error on after login redirect in ce 1.5&#xD;
@@ -37,9 +42,9 @@ Future Updates planned, including:&#xD;
37
  1.0.0&#xD;
38
  initial release</notes>
39
  <authors><author><name>Design:Slider GbR</name><user>DesignSliderGbR</user><email>magento@design-slider.de</email></author></authors>
40
- <date>2013-03-05</date>
41
- <time>18:05:15</time>
42
- <contents><target name="magelocale"><dir><dir name="de_DE"><file name="DS_PrivateSales.csv" hash="08ae6aa62e3cdd321f71319969a30ba9"/></dir></dir></target><target name="magecommunity"><dir name="DS"><dir name="PrivateSales"><dir name="Block"><file name="Navigation.php" hash="585f907774ac18e7fbefa60f9fb2d746"/><file name="Topmenu.php" hash="41c13dedf4527c26b4f72eeef4a503cf"/></dir><file name="CHANGE.LOG" hash="5b178a53886517ab9a232101b9a56f4a"/><dir name="Helper"><file name="Data.php" hash="0295ece9d8712e162376a1a8dad7727b"/></dir><dir name="Model"><file name="Observer.php" hash="f127b2735a3cc2b681c09e9726944c34"/></dir><dir name="controllers"><dir name="Customer"><file name="AccountController.php" hash="cda005c0dc83d8df98ee12fd047c2c64"/></dir></dir><dir name="etc"><file name="config.xml" hash="41e18d9b255377a8a9d432a6b7e03c15"/><file name="system.xml" hash="243f646cdf929b3a204a534228b553db"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DS_PrivateSales.xml" hash="997309e4dfefc850ee34df380a4d3688"/></dir></target></contents>
43
  <compatible/>
44
- <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></required></dependencies>
45
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DS_PrivateSales</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Adds the possibility to hide &amp; lock certain parts of your stores for guests.</summary>
10
+ <description>&lt;p&gt;Adds the possibility to hide &amp; lock certain parts of your stores for guests, guiding them to authenticate themselves first.&lt;/p&gt;&#xD;
11
+ &lt;h3&gt;Features&lt;/h3&gt;&#xD;
12
+ &lt;ul&gt;&#xD;
13
+ &lt;li&gt;Registration can be disabled&lt;/li&gt;&#xD;
14
+ &lt;li&gt;Registration panel at login page can be hidden or customized&lt;/li&gt;&#xD;
15
+ &lt;li&gt;Forgot Password can be disabled&lt;/li&gt;&#xD;
16
+ &lt;li&gt;Full Store can be blocked, and if not&lt;br /&gt;&#xD;
17
+ Catalog&amp;Product Views and Search can be blocked separately&lt;br /&gt;&#xD;
18
+ CMS page views can be blocked separately&#xD;
19
+ &lt;/li&gt;&#xD;
20
+ &lt;li&gt;Catalog navigation can be hided&lt;/li&gt;&#xD;
21
+ &lt;li&gt;Fixes redirect to startpage not working when &lt;i&gt;customer_startup_redirect_dashboard&lt;/i&gt; option is disabled&#xD;
22
+ &lt;li /&gt;Admin ACL for configuration&lt;/li&gt;&#xD;
23
+ &lt;/ul&gt;&#xD;
24
+ &lt;p&gt;All restrictions move away once the user is logged in.&lt;/p&gt;&#xD;
25
+ &lt;p&gt;Included translations: de_DE&lt;/p&gt;&#xD;
26
+ &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;
27
+ &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;</description>
28
+ <notes>1.0.2&#xD;
29
+ added option to hide or customize registration panel at login page&#xD;
30
+ registration panel can be customized by configuring header, text, button visibility and button label&#xD;
31
+ registration panel can be hidden or customized even when registration remains enabled&#xD;
32
+ disabled registration removes all registration hints when entering onepage checkout as guest&#xD;
33
+ disabled forgot password now also removes the links at login and onepage checkout page&#xD;
34
+ &#xD;
35
+ note: new templates have been added so you may check them to match with your skin after update&#xD;
36
  &#xD;
37
+ 1.0.1&#xD;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  fixed redirect to startpage not working when customer_startup_redirect_dashboard is disabled&#xD;
39
  fixed hive navigation option not working in ce 1.7&#xD;
40
  fixed fatal error on after login redirect in ce 1.5&#xD;
42
  1.0.0&#xD;
43
  initial release</notes>
44
  <authors><author><name>Design:Slider GbR</name><user>DesignSliderGbR</user><email>magento@design-slider.de</email></author></authors>
45
+ <date>2013-08-23</date>
46
+ <time>01:43:02</time>
47
+ <contents><target name="magelocale"><dir><dir name="de_DE"><file name="DS_PrivateSales.csv" hash="d832fcce7c682e8c4ef560a265d301d3"/></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="1a52527ed6f818ce856f0e4116f0325e"/></dir></dir><dir name="Customer"><dir name="Form"><file name="Login.php" hash="7a2325c661c78b73f28d5433092de780"/></dir></dir><file name="Navigation.php" hash="585f907774ac18e7fbefa60f9fb2d746"/><file name="Topmenu.php" hash="41c13dedf4527c26b4f72eeef4a503cf"/></dir><file name="CHANGE.LOG" hash="4bfbf895f801505d9db8497c31a8a6d0"/><dir name="Helper"><file name="Data.php" hash="8d54560848017dd1c2ea1216c0fbb09c"/></dir><dir name="Model"><file name="Observer.php" hash="f127b2735a3cc2b681c09e9726944c34"/></dir><dir name="controllers"><dir name="Customer"><file name="AccountController.php" hash="cda005c0dc83d8df98ee12fd047c2c64"/></dir></dir><dir name="etc"><file name="config.xml" hash="89246b3c7f4cb84601d7b339237fafdc"/><file name="system.xml" hash="b13d446f7557083159ef318014bef19d"/></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.phtml" hash="958bcb15da673e1188e635b9f6184e6e"/><file name="opc_ce14_15_16.phtml" hash="a3050dd164da2b002b2aa6fdf4a5174a"/><file name="opc_ce17.phtml" hash="b9642a7b12298201a52546fd15076d46"/></dir></dir></dir></dir></dir></dir></target></contents>
48
  <compatible/>
49
+ <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>
50
  </package>