order_delivery_date - Version 0.1.5

Version Notes

-solve third party payment option issue

Download this release

Release Info

Developer Biztech
Extension order_delivery_date
Version 0.1.5
Comparing to
See all releases


Code changes from version 0.1.4 to 0.1.5

app/code/local/Bc/Deliverydate/Helper/Data.php CHANGED
@@ -48,24 +48,30 @@
48
  $order = $observer->getEvent()->getOrder();
49
  if (Mage::getStoreConfig('deliverydate/deliverydate_general/on_which_page')==2){
50
  $desiredArrivalDate = Mage::helper('deliverydate')->getFormatedDeliveryDateToSave(Mage::app()->getRequest()->getParam('shipping_arrival_date'));
51
- $order->setShippingArrivalComments(Mage::app()->getRequest()->getParam('shipping_arrival_comments'));
52
- $order->setShippingArrivalDate($desiredArrivalDate);
 
 
53
  }else{
54
  $cart = Mage::getModel('checkout/cart')->getQuote()->getData();
55
  $desiredArrivalDate = Mage::helper('deliverydate')->getFormatedDeliveryDateToSave($cart['shipping_arrival_date']);
56
  $shipping_arrival_comments = $cart['shipping_arrival_comments'];
57
- $order->setShippingArrivalComments($shipping_arrival_comments);
58
- $order->setShippingArrivalDate($desiredArrivalDate);
 
 
59
  }
60
  }
61
  public function saveShippingArrivalDateAdmin($observer){
62
-
63
  $order = $observer->getEvent()->getOrder();
64
  $cart = Mage::app()->getRequest()->getParams();
65
  $desiredArrivalDate = Mage::helper('deliverydate')->getFormatedDeliveryDateToSave($cart['shipping_arrival_date_display']);
66
  $shipping_arrival_comments = $cart['shipping_arrival_comments'];
67
- $order->setShippingArrivalComments($shipping_arrival_comments);
68
- $order->setShippingArrivalDate($desiredArrivalDate);
 
 
69
 
70
  }
71
 
48
  $order = $observer->getEvent()->getOrder();
49
  if (Mage::getStoreConfig('deliverydate/deliverydate_general/on_which_page')==2){
50
  $desiredArrivalDate = Mage::helper('deliverydate')->getFormatedDeliveryDateToSave(Mage::app()->getRequest()->getParam('shipping_arrival_date'));
51
+ if (isset($desiredArrivalDate) && !empty($desiredArrivalDate)){
52
+ $order->setShippingArrivalComments(Mage::app()->getRequest()->getParam('shipping_arrival_comments'));
53
+ $order->setShippingArrivalDate($desiredArrivalDate);
54
+ }
55
  }else{
56
  $cart = Mage::getModel('checkout/cart')->getQuote()->getData();
57
  $desiredArrivalDate = Mage::helper('deliverydate')->getFormatedDeliveryDateToSave($cart['shipping_arrival_date']);
58
  $shipping_arrival_comments = $cart['shipping_arrival_comments'];
59
+ if (isset($desiredArrivalDate) && !empty($desiredArrivalDate)){
60
+ $order->setShippingArrivalComments($shipping_arrival_comments);
61
+ $order->setShippingArrivalDate($desiredArrivalDate);
62
+ }
63
  }
64
  }
65
  public function saveShippingArrivalDateAdmin($observer){
66
+
67
  $order = $observer->getEvent()->getOrder();
68
  $cart = Mage::app()->getRequest()->getParams();
69
  $desiredArrivalDate = Mage::helper('deliverydate')->getFormatedDeliveryDateToSave($cart['shipping_arrival_date_display']);
70
  $shipping_arrival_comments = $cart['shipping_arrival_comments'];
71
+ if (isset($desiredArrivalDate) && !empty($desiredArrivalDate)){
72
+ $order->setShippingArrivalComments($shipping_arrival_comments);
73
+ $order->setShippingArrivalDate($desiredArrivalDate);
74
+ }
75
 
76
  }
77
 
app/code/local/Bc/Deliverydate/Model/Observer.php CHANGED
@@ -1,28 +1,30 @@
1
- <?php
2
- /**
3
- * CustomSearch Observer
4
- *
5
- * @category Exxex
6
- * @package Essex_Customermod
7
- * @author Sharpdotinc.com
8
- */
9
- class Bc_Deliverydate_Model_Observer
10
- {
11
-
12
- public function checkout_controller_onepage_save_shipping_method($observer)
13
- {
14
- if (Mage::getStoreConfig('deliverydate/deliverydate_general/on_which_page')==1){
15
- $request = $observer->getEvent()->getRequest();
16
- $quote = $observer->getEvent()->getQuote();
17
-
18
- $desiredArrivalDate = Mage::helper('deliverydate')->getFormatedDeliveryDateToSave($request->getPost('shipping_arrival_date', ''));
19
- $quote->setShippingArrivalDate($desiredArrivalDate);
20
- $quote->setShippingArrivalComments($request->getPost('shipping_arrival_comments'));
21
- $quote->save();
22
- }
23
-
24
- return $this;
25
- }
26
-
27
-
 
 
28
  }
1
+ <?php
2
+ /**
3
+ * CustomSearch Observer
4
+ *
5
+ * @category Exxex
6
+ * @package Essex_Customermod
7
+ * @author Sharpdotinc.com
8
+ */
9
+ class Bc_Deliverydate_Model_Observer
10
+ {
11
+
12
+ public function checkout_controller_onepage_save_shipping_method($observer)
13
+ {
14
+ if (Mage::getStoreConfig('deliverydate/deliverydate_general/on_which_page')==1){
15
+ $request = $observer->getEvent()->getRequest();
16
+ $quote = $observer->getEvent()->getQuote();
17
+
18
+ $desiredArrivalDate = Mage::helper('deliverydate')->getFormatedDeliveryDateToSave($request->getPost('shipping_arrival_date', ''));
19
+ if (isset($desiredArrivalDate) && !empty($desiredArrivalDate)){
20
+ $quote->setShippingArrivalDate($desiredArrivalDate);
21
+ $quote->setShippingArrivalComments($request->getPost('shipping_arrival_comments'));
22
+ $quote->save();
23
+ }
24
+ }
25
+
26
+ return $this;
27
+ }
28
+
29
+
30
  }
app/code/local/Bc/Deliverydate/etc/config.xml CHANGED
@@ -1,189 +1,189 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @category Bc
5
- * @package Bc_Deliverydate
6
- * @author ModuleCreator
7
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
- */
9
- -->
10
- <config>
11
- <modules>
12
- <Bc_Deliverydate>
13
- <version>0.1.4</version>
14
- </Bc_Deliverydate>
15
- </modules>
16
- <frontend>
17
- <routers>
18
- <deliverydate>
19
- <use>standard</use>
20
- <args>
21
- <module>Bc_Deliverydate</module>
22
- <frontName>deliverydate</frontName>
23
- </args>
24
- </deliverydate>
25
- </routers>
26
- <layout>
27
- <updates>
28
- <deliverydate>
29
- <file>deliverydate.xml</file>
30
- </deliverydate>
31
- </updates>
32
- </layout>
33
-
34
- <events>
35
- <checkout_controller_onepage_save_shipping_method>
36
- <observers>
37
- <deliverydate_observer>
38
- <type>singleton</type>
39
- <class>deliverydate/observer</class>
40
- <method>checkout_controller_onepage_save_shipping_method</method>
41
- </deliverydate_observer>
42
- </observers>
43
- </checkout_controller_onepage_save_shipping_method>
44
- <sales_order_save_before>
45
- <observers>
46
- <order_set_shippingarrivaldate>
47
- <type>model</type>
48
- <class>Bc_Deliverydate_Helper_Data</class>
49
- <method>saveShippingArrivalDate</method>
50
- </order_set_shippingarrivaldate>
51
- </observers>
52
- </sales_order_save_before>
53
- </events>
54
- </frontend>
55
- <admin>
56
- <routers>
57
- <deliverydate>
58
- <use>admin</use>
59
- <args>
60
- <module>Bc_Deliverydate</module>
61
- <frontName>deliverydate</frontName>
62
- </args>
63
- </deliverydate>
64
- </routers>
65
- </admin>
66
- <adminhtml>
67
- <!--<menu>
68
- <deliverydate module="deliverydate">
69
- <title>Deliverydate</title>
70
- <sort_order>71</sort_order>
71
- <children>
72
- <items module="deliverydate">
73
- <title>Manage Items</title>
74
- <sort_order>0</sort_order>
75
- <action>deliverydate/adminhtml_deliverydate</action>
76
- </items>
77
- </children>
78
- </deliverydate>
79
- </menu>-->
80
- <acl>
81
- <resources>
82
- <all>
83
- <title>Allow Everything</title>
84
- </all>
85
- <admin>
86
- <children>
87
- <Bc_Deliverydate>
88
- <title>Deliverydate Module</title>
89
- <sort_order>10</sort_order>
90
- </Bc_Deliverydate>
91
- <system>
92
- <children>
93
- <config>
94
- <children>
95
- <deliverydate>
96
- <title>Delivery Date</title>
97
- </deliverydate>
98
- </children>
99
- </config>
100
- </children>
101
- </system>
102
- </children>
103
- </admin>
104
- </resources>
105
- </acl>
106
- <layout>
107
- <updates>
108
- <deliverydate>
109
- <file>deliverydate.xml</file>
110
- </deliverydate>
111
- </updates>
112
- </layout>
113
- <events>
114
- <sales_order_save_before>
115
- <observers>
116
- <set_order_shippingarrivaldate>
117
- <type>model</type>
118
- <class>Bc_Deliverydate_Helper_Data</class>
119
- <method>saveShippingArrivalDateAdmin</method>
120
- </set_order_shippingarrivaldate>
121
- </observers>
122
- </sales_order_save_before>
123
-
124
- </events>
125
- </adminhtml>
126
- <global>
127
- <models>
128
- <deliverydate>
129
- <class>Bc_Deliverydate_Model</class>
130
- <resourceModel>deliverydate_mysql4</resourceModel>
131
- </deliverydate>
132
- <deliverydate_mysql4>
133
- <class>Bc_Deliverydate_Model_Mysql4</class>
134
- <entities>
135
- <deliverydate>
136
- <table>deliverydate</table>
137
- </deliverydate>
138
- </entities>
139
- </deliverydate_mysql4>
140
- </models>
141
- <resources>
142
- <deliverydate_setup>
143
- <setup>
144
- <module>Bc_Deliverydate</module>
145
- </setup>
146
- <connection>
147
- <use>core_setup</use>
148
- </connection>
149
- </deliverydate_setup>
150
- <deliverydate_write>
151
- <connection>
152
- <use>core_write</use>
153
- </connection>
154
- </deliverydate_write>
155
- <deliverydate_read>
156
- <connection>
157
- <use>core_read</use>
158
- </connection>
159
- </deliverydate_read>
160
- </resources>
161
- <blocks>
162
- <deliverydate>
163
- <class>Bc_Deliverydate_Block</class>
164
- </deliverydate>
165
- <sales>
166
- <rewrite>
167
- <order_info>Bc_Deliverydate_Block_Order_Info</order_info>
168
- </rewrite>
169
- </sales>
170
- </blocks>
171
- <helpers>
172
- <deliverydate>
173
- <class>Bc_Deliverydate_Helper</class>
174
- </deliverydate>
175
- </helpers>
176
- <default>
177
- <deliverydate>
178
- <deliverydate_general>
179
- <enabled>0</enabled>
180
- <on_which_page>1</on_which_page>
181
- <deliverydate_html>Please choose your preferrable future delivery time for current #order.</deliverydate_html>
182
- <deliverydate_format>d/M/Y</deliverydate_format>
183
- <deliverytime_format>g:i a</deliverytime_format>
184
- <deliverydate_dayoff></deliverydate_dayoff>
185
- </deliverydate_general>
186
- </deliverydate>
187
- </default>
188
- </global>
189
  </config>
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Bc
5
+ * @package Bc_Deliverydate
6
+ * @author ModuleCreator
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ -->
10
+ <config>
11
+ <modules>
12
+ <Bc_Deliverydate>
13
+ <version>0.1.5</version>
14
+ </Bc_Deliverydate>
15
+ </modules>
16
+ <frontend>
17
+ <routers>
18
+ <deliverydate>
19
+ <use>standard</use>
20
+ <args>
21
+ <module>Bc_Deliverydate</module>
22
+ <frontName>deliverydate</frontName>
23
+ </args>
24
+ </deliverydate>
25
+ </routers>
26
+ <layout>
27
+ <updates>
28
+ <deliverydate>
29
+ <file>deliverydate.xml</file>
30
+ </deliverydate>
31
+ </updates>
32
+ </layout>
33
+
34
+ <events>
35
+ <checkout_controller_onepage_save_shipping_method>
36
+ <observers>
37
+ <deliverydate_observer>
38
+ <type>singleton</type>
39
+ <class>deliverydate/observer</class>
40
+ <method>checkout_controller_onepage_save_shipping_method</method>
41
+ </deliverydate_observer>
42
+ </observers>
43
+ </checkout_controller_onepage_save_shipping_method>
44
+ <sales_order_save_after>
45
+ <observers>
46
+ <order_set_shippingarrivaldate>
47
+ <type>model</type>
48
+ <class>Bc_Deliverydate_Helper_Data</class>
49
+ <method>saveShippingArrivalDate</method>
50
+ </order_set_shippingarrivaldate>
51
+ </observers>
52
+ </sales_order_save_after>
53
+ </events>
54
+ </frontend>
55
+ <admin>
56
+ <routers>
57
+ <deliverydate>
58
+ <use>admin</use>
59
+ <args>
60
+ <module>Bc_Deliverydate</module>
61
+ <frontName>deliverydate</frontName>
62
+ </args>
63
+ </deliverydate>
64
+ </routers>
65
+ </admin>
66
+ <adminhtml>
67
+ <!--<menu>
68
+ <deliverydate module="deliverydate">
69
+ <title>Deliverydate</title>
70
+ <sort_order>71</sort_order>
71
+ <children>
72
+ <items module="deliverydate">
73
+ <title>Manage Items</title>
74
+ <sort_order>0</sort_order>
75
+ <action>deliverydate/adminhtml_deliverydate</action>
76
+ </items>
77
+ </children>
78
+ </deliverydate>
79
+ </menu>-->
80
+ <acl>
81
+ <resources>
82
+ <all>
83
+ <title>Allow Everything</title>
84
+ </all>
85
+ <admin>
86
+ <children>
87
+ <Bc_Deliverydate>
88
+ <title>Deliverydate Module</title>
89
+ <sort_order>10</sort_order>
90
+ </Bc_Deliverydate>
91
+ <system>
92
+ <children>
93
+ <config>
94
+ <children>
95
+ <deliverydate>
96
+ <title>Delivery Date</title>
97
+ </deliverydate>
98
+ </children>
99
+ </config>
100
+ </children>
101
+ </system>
102
+ </children>
103
+ </admin>
104
+ </resources>
105
+ </acl>
106
+ <layout>
107
+ <updates>
108
+ <deliverydate>
109
+ <file>deliverydate.xml</file>
110
+ </deliverydate>
111
+ </updates>
112
+ </layout>
113
+ <events>
114
+ <sales_order_save_after>
115
+ <observers>
116
+ <set_order_shippingarrivaldate>
117
+ <type>model</type>
118
+ <class>Bc_Deliverydate_Helper_Data</class>
119
+ <method>saveShippingArrivalDateAdmin</method>
120
+ </set_order_shippingarrivaldate>
121
+ </observers>
122
+ </sales_order_save_after>
123
+
124
+ </events>
125
+ </adminhtml>
126
+ <global>
127
+ <models>
128
+ <deliverydate>
129
+ <class>Bc_Deliverydate_Model</class>
130
+ <resourceModel>deliverydate_mysql4</resourceModel>
131
+ </deliverydate>
132
+ <deliverydate_mysql4>
133
+ <class>Bc_Deliverydate_Model_Mysql4</class>
134
+ <entities>
135
+ <deliverydate>
136
+ <table>deliverydate</table>
137
+ </deliverydate>
138
+ </entities>
139
+ </deliverydate_mysql4>
140
+ </models>
141
+ <resources>
142
+ <deliverydate_setup>
143
+ <setup>
144
+ <module>Bc_Deliverydate</module>
145
+ </setup>
146
+ <connection>
147
+ <use>core_setup</use>
148
+ </connection>
149
+ </deliverydate_setup>
150
+ <deliverydate_write>
151
+ <connection>
152
+ <use>core_write</use>
153
+ </connection>
154
+ </deliverydate_write>
155
+ <deliverydate_read>
156
+ <connection>
157
+ <use>core_read</use>
158
+ </connection>
159
+ </deliverydate_read>
160
+ </resources>
161
+ <blocks>
162
+ <deliverydate>
163
+ <class>Bc_Deliverydate_Block</class>
164
+ </deliverydate>
165
+ <sales>
166
+ <rewrite>
167
+ <order_info>Bc_Deliverydate_Block_Order_Info</order_info>
168
+ </rewrite>
169
+ </sales>
170
+ </blocks>
171
+ <helpers>
172
+ <deliverydate>
173
+ <class>Bc_Deliverydate_Helper</class>
174
+ </deliverydate>
175
+ </helpers>
176
+ <default>
177
+ <deliverydate>
178
+ <deliverydate_general>
179
+ <enabled>0</enabled>
180
+ <on_which_page>1</on_which_page>
181
+ <deliverydate_html>Please choose your preferrable future delivery time for current #order.</deliverydate_html>
182
+ <deliverydate_format>d/M/Y</deliverydate_format>
183
+ <deliverytime_format>g:i a</deliverytime_format>
184
+ <deliverydate_dayoff></deliverydate_dayoff>
185
+ </deliverydate_general>
186
+ </deliverydate>
187
+ </default>
188
+ </global>
189
  </config>
app/design/frontend/default/default/layout/deliverydate.xml CHANGED
@@ -36,6 +36,22 @@
36
  </block>
37
  </reference>
38
  </checkout_onepage_review>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  <deliverydate_email_information>
40
  <block type="deliverydate/email_info" name="deliverydate_email_info" template="deliverydate/email/info.phtml"/>
41
  </deliverydate_email_information>
36
  </block>
37
  </reference>
38
  </checkout_onepage_review>
39
+
40
+ <paypal_express_review>
41
+
42
+ <reference name="head">
43
+ <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params></params></action>
44
+ <action method="addItem"><type>js</type><name>calendar/calendar.js</name></action>
45
+ <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name></action>
46
+ </reference>
47
+ <reference name="content">
48
+ <reference name="paypal.express.review.details.agreements">
49
+ <action method="setTemplate" ifconfig="deliverydate/deliverydate_general/enabled"><template>deliverydate/agreements.phtml</template></action>
50
+ </reference>
51
+ </reference>
52
+
53
+ </paypal_express_review>
54
+
55
  <deliverydate_email_information>
56
  <block type="deliverydate/email_info" name="deliverydate_email_info" template="deliverydate/email/info.phtml"/>
57
  </deliverydate_email_information>
app/design/frontend/default/default/template/deliverydate/agreements.phtml CHANGED
@@ -37,9 +37,11 @@
37
  <form action="" id="checkout-agreements" onsubmit="return false;">
38
  <div class="buttons-set arrival-info">
39
  <?php
40
- if (Mage::getStoreConfig('deliverydate/deliverydate_general/on_which_page')==2){
41
- echo $this->getLayout()->createBlock('core/html_calendar')->setTemplate('deliverydate/js/calendar.phtml')->toHtml() ;
42
- echo $this->getLayout()->createBlock('deliverydate/deliverydate')->setTemplate('deliverydate/deliverydate.phtml')->toHtml();
 
 
43
  }
44
  ?>
45
  </div>
@@ -64,5 +66,5 @@
64
  </ol>
65
  </form>
66
  <script type="text/javascript">
67
-
68
  </script>
37
  <form action="" id="checkout-agreements" onsubmit="return false;">
38
  <div class="buttons-set arrival-info">
39
  <?php
40
+ if(Mage::getStoreConfig('deliverydate/deliverydate_general/enabled')){
41
+ if (Mage::getStoreConfig('deliverydate/deliverydate_general/on_which_page')==2){
42
+ echo $this->getLayout()->createBlock('core/html_calendar')->setTemplate('deliverydate/js/calendar.phtml')->toHtml() ;
43
+ echo $this->getLayout()->createBlock('deliverydate/deliverydate')->setTemplate('deliverydate/deliverydate.phtml')->toHtml();
44
+ }
45
  }
46
  ?>
47
  </div>
66
  </ol>
67
  </form>
68
  <script type="text/javascript">
69
+
70
  </script>
app/design/frontend/default/default/template/deliverydate/deliverydate.phtml CHANGED
@@ -1,264 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
  $dayoff = Mage::getStoreConfig('deliverydate/deliverydate_general/deliverydate_dayoff');
3
  ?>
4
- <dd>
5
- <script type="text/javascript">
6
- //<![CDATA[
7
- /*Calendar.setup({
8
- inputField: "shipping_arrival_date",
9
- ifFormat: "%m/%e/%Y",
10
- showsTime: false,
11
- button: "shipping_arrival_date_trig",
12
- align: "Bl",
13
- singleClick : true ,
14
- disableFunc: function(date) {
15
- return date.getMonth() === 1; // Sunday is 0, Monday is 1, and so on
16
- }
17
- });*/
18
 
19
- Calendar.prototype._init = function (firstDayOfWeek, date) {
20
- var today = new CalendarDateObject(),
21
- TY = today.getFullYear(),
22
- TM = today.getMonth(),
23
- TD = today.getDate();
24
- this.table.style.visibility = "hidden";
25
- var year = date.getFullYear();
26
- if (year < this.minYear) {
27
- year = this.minYear;
28
- date.setFullYear(year);
29
- } else if (year > this.maxYear) {
30
- year = this.maxYear;
31
- date.setFullYear(year);
32
- }
33
- this.firstDayOfWeek = firstDayOfWeek;
34
- this.date = new CalendarDateObject(date);
35
- var month = date.getMonth();
36
- var mday = date.getDate();
37
- var no_days = date.getMonthDays();
38
- /* Added By B.C. on date 18/02/2013 */
39
- var check_flag = false;
40
- /* END */
41
 
42
- // calendar voodoo for computing the first day that would actually be
43
- // displayed in the calendar, even if it's from the previous month.
44
- // WARNING: this is magic. ;-)
45
- date.setDate(1);
46
- var day1 = (date.getDay() - this.firstDayOfWeek) % 7;
47
- if (day1 < 0)
48
- day1 += 7;
49
- date.setDate(-day1);
50
- date.setDate(date.getDate() + 1);
 
 
 
 
 
 
 
 
 
 
 
 
 
51
 
52
- var row = this.tbody.firstChild;
53
- var MN = Calendar._SMN[month];
54
- var ar_days = this.ar_days = new Array();
55
- var weekend = Calendar._TT["WEEKEND"];
56
- var dates = this.multiple ? (this.datesCells = {}) : null;
57
- for (var i = 0; i < 6; ++i, row = row.nextSibling) {
58
- var cell = row.firstChild;
59
- if (this.weekNumbers) {
60
- cell.className = "day wn";
61
- cell.innerHTML = date.getWeekNumber();
62
- cell = cell.nextSibling;
63
- }
64
- row.className = "daysrow";
65
- var hasdays = false, iday, dpos = ar_days[i] = [];
66
- for (var j = 0; j < 7; ++j, cell = cell.nextSibling, date.setDate(iday + 1)) {
67
- iday = date.getDate();
68
- var wday = date.getDay();
69
- cell.className = "day";
70
- cell.pos = i << 4 | j;
71
- dpos[j] = cell;
72
- var current_month = (date.getMonth() == month);
73
- if (!current_month) {
74
- if (this.showsOtherMonths) {
75
- cell.className += " othermonth";
76
- cell.otherMonth = true;
77
- } else {
78
- cell.className = "emptycell";
79
- cell.innerHTML = "&nbsp;";
80
- cell.disabled = true;
81
- continue;
82
- }
 
 
 
 
83
  } else {
84
- cell.otherMonth = false;
85
- hasdays = true;
 
 
86
  }
87
- cell.disabled = false;
88
- cell.innerHTML = this.getDateText ? this.getDateText(date, iday) : iday;
89
- if (dates)
90
- dates[date.print("%Y%m%d")] = cell;
91
- if (this.getDateStatus) {
92
- var status = this.getDateStatus(date, year, month, iday);
93
- if (this.getDateToolTip) {
94
- var toolTip = this.getDateToolTip(date, year, month, iday);
95
- if (toolTip)
96
- cell.title = toolTip;
97
- }
98
- if (status === true) {
99
- cell.className += " disabled";
 
 
 
 
 
 
 
100
  cell.disabled = true;
101
- } else {
102
- if (/disabled/i.test(status))
103
- cell.disabled = true;
104
- cell.className += " " + status;
105
- }
106
  }
107
- if (!cell.disabled) {
108
- cell.caldate = new CalendarDateObject(date);
109
- cell.ttip = "_";
110
- if (!this.multiple && current_month
111
- && iday == mday && this.hiliteToday) {
112
- cell.className += " selected";
113
- this.currentDateEl = cell;
114
- }
115
- if (date.getFullYear() == TY &&
116
- date.getMonth() == TM &&
117
- iday == TD) {
118
- cell.className += " today";
119
- cell.ttip += Calendar._TT["PART_TODAY"];
120
- }
121
- if (weekend.indexOf(wday.toString()) != -1)
122
- cell.className += cell.otherMonth ? " oweekend" : " weekend";
123
- if (check_flag){
124
- cell.className += " selected";
125
- this.currentDateEl = cell;
126
- check_flag=false;
127
- }
128
- }else{
129
- /* Added By B.C. on date 18/02/2013 */
130
- if (!this.multiple && current_month
131
- && iday == mday && this.hiliteToday) {
132
- check_flag=true;
133
- }
134
-
135
- /* END */
136
  }
 
 
137
  }
138
- if (!(hasdays || this.showsOtherMonths))
139
- row.className = "emptyrow";
140
  }
141
- this.title.innerHTML = Calendar._MN[month] + ", " + year;
142
- this.onSetTime();
143
- this.table.style.visibility = "visible";
144
- this._initMultipleDates();
145
- // PROFILE
146
- // this.tooltips.innerHTML = "Generated in " + ((new CalendarDateObject()) - today) + " ms";
147
- };
 
 
 
148
 
149
- var dayoff = '<?php echo $dayoff; ?>';
150
- var test_flag = false;
151
- Calendar.setup({
152
- inputField: "shipping_arrival_date",
153
- ifFormat: "%Y-%mm-%ee %H:%M:%S",
154
- showsTime: true,
155
- button: "shipping_arrival_date_trig",
156
- align: "Bl",
157
- singleClick :true,
158
- onSelect :function()
159
- {
160
- //var y = calendar.date.getFullYear();
161
- currentTime1 = new Date();
162
- var m = parseInt(currentTime1.getMonth())+parseInt(1);
163
- var y=currentTime1.getFullYear();
164
- var d = currentTime1.getDate();
165
-
166
 
167
 
168
- currentTime = new Date(calendar.date.getTime());
169
- var d1=currentTime.getDate();
170
- var m1=parseInt(currentTime.getMonth())+parseInt(1);
171
- var y1=currentTime.getFullYear();
172
- var h1 = currentTime.getHours();
173
- var min1= currentTime.getMinutes();
174
 
 
 
 
 
 
 
175
 
176
- if (calendar.dateClicked)
 
 
 
177
  {
178
- if(d1 < d && m1==m && y1==y)
179
- {
180
- alert("You can not select previous date.")
181
- document.getElementById('shipping_arrival_date_display').value="";
182
- document.getElementById('shipping_arrival_date').value="";
183
- calendar.hide();
184
- }
185
- else
186
- {
187
- document.getElementById('shipping_arrival_date_display').value=y1+"-"+m1+"-"+d1+" "+h1+":"+min1;
188
- document.getElementById('shipping_arrival_date').value=y1+"-"+m1+"-"+d1+" "+h1+":"+min1;
189
- calendar.hide();
190
- }
191
  }
192
  else
193
  {
194
- calendar.show();
 
 
195
  }
196
- },
197
- disableFunc : function(date)
198
- {
199
- var y = calendar.date.getFullYear();
200
- var m = calendar.date.getMonth();
201
- var d = calendar.date.getDate();
 
 
 
 
 
202
 
203
- var day_off_array = dayoff.split(",") ;
204
 
205
- currentTime = new Date();
206
- var d1=currentTime.getDate();
207
- var m1=currentTime.getMonth();
208
- var y1=currentTime.getFullYear();
209
- var counter = 1;
210
- for (var i=0; i<day_off_array.length;i++){
211
- if (day_off_array[i]>=0 && day_off_array[i]!=''){
212
- if (date.getDay()==day_off_array[i]){
213
- if (date.getDate()==currentTime.getDate()){
214
- test_flag=true;
215
- }
216
- return true;
217
  }
 
218
  }
219
  }
 
220
 
221
- if(y < y1)
222
- {
223
- return true;
224
- }
225
- else if(m1 > m && y==y1)
226
- {
227
- return true;
228
- }
229
  }
230
- });
 
 
 
 
 
231
 
232
- function shippingArrivalDateOnChange(el)
233
- {
234
- var displayDate = $('shipping_arrival_date_display');
235
- var date = $('shipping_arrival_date').getValue();
236
- displayDate.setValue(date);
237
- }
238
 
239
- function resetArrivalDate()
240
- {
241
- //clear both fields
242
 
243
- }
244
- //MRD added disable field to only allow calendar input
245
- //TODO: need to enable field when form is submitted
246
- Form.Element.disable('shipping_arrival_date_display');
247
- Event.observe($('link_reset'),'click',function(){
248
- $('shipping_arrival_date').setValue('');
249
- $('shipping_arrival_date_display').setValue('');
250
- });
251
- //]]>
252
  </script>
253
- <ul style="border-top: 1px solid #D1D1D1; margin-top: 12px; padding-top: 10px;">
254
- <li>
255
- <label for="page_date-end">Delivery Date:</label>
256
- <input name="shipping_arrival_date_display" id="shipping_arrival_date_display" value="" title="date" class=" input-text" style="width: 100px;" type="text"> <img src="<?php echo Mage::getBaseUrl('skin')?>adminhtml/default/default/images/grid-cal.gif" alt="" class="v-middle" id="shipping_arrival_date_trig" title="Select Date" style=""> <a href="javascript:void(0)" id="link_reset" style="margin-left:5px;"><img src="<?php echo $this->getSkinUrl('images/ico_reset.png');?>" alt="" class="v-middle" title="Reset"></a>
257
- <input name="shipping_arrival_date" id="shipping_arrival_date" value="" onChange="shippingArrivalDateOnChange(this); return false;" title="date" type="hidden">
258
- </li>
259
- <li>
260
- <label for="shipping_arrival_comments">Delivery Comments:</label><br/>
261
- <textarea cols="65" rows="8" name="shipping_arrival_comments" id="shipping_arrival_comments"></textarea></li>
262
- <li> <i><?php echo Mage::getStoreConfig('deliverydate/deliverydate_general/deliverydate_html'); ?></i>
263
- </li>
264
- </dd>
1
+ <dd>
2
+ <ul style="border-top: 1px solid #D1D1D1; margin-top: 12px; padding-top: 10px;">
3
+ <li>
4
+ <label for="page_date-end">Delivery Date:</label>
5
+ <input name="shipping_arrival_date_display" id="shipping_arrival_date_display" value="" title="date" class=" input-text" style="width: 100px;" type="text"> <img src="<?php echo Mage::getBaseUrl('skin')?>adminhtml/default/default/images/grid-cal.gif" alt="" class="v-middle" id="shipping_arrival_date_trig" title="Select Date" style=""> <a href="javascript:void(0)" id="link_reset" style="margin-left:5px;"><img src="<?php echo $this->getSkinUrl('images/ico_reset.png');?>" alt="" class="v-middle" title="Reset"></a>
6
+ <input name="shipping_arrival_date" id="shipping_arrival_date" value="" onChange="shippingArrivalDateOnChange(this); return false;" title="date" type="hidden">
7
+ </li>
8
+ <li>
9
+ <label for="shipping_arrival_comments">Delivery Comments:</label><br/>
10
+ <textarea cols="65" rows="8" name="shipping_arrival_comments" id="shipping_arrival_comments"></textarea></li>
11
+ <li> <i><?php echo Mage::getStoreConfig('deliverydate/deliverydate_general/deliverydate_html'); ?></i>
12
+ </li>
13
+ </dd>
14
  <?php
15
  $dayoff = Mage::getStoreConfig('deliverydate/deliverydate_general/deliverydate_dayoff');
16
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
+ <script type="text/javascript">
19
+ //<![CDATA[
20
+ /*Calendar.setup({
21
+ inputField: "shipping_arrival_date",
22
+ ifFormat: "%m/%e/%Y",
23
+ showsTime: false,
24
+ button: "shipping_arrival_date_trig",
25
+ align: "Bl",
26
+ singleClick : true ,
27
+ disableFunc: function(date) {
28
+ return date.getMonth() === 1; // Sunday is 0, Monday is 1, and so on
29
+ }
30
+ });*/
 
 
 
 
 
 
 
 
 
31
 
32
+ Calendar.prototype._init = function (firstDayOfWeek, date) {
33
+ var today = new CalendarDateObject(),
34
+ TY = today.getFullYear(),
35
+ TM = today.getMonth(),
36
+ TD = today.getDate();
37
+ this.table.style.visibility = "hidden";
38
+ var year = date.getFullYear();
39
+ if (year < this.minYear) {
40
+ year = this.minYear;
41
+ date.setFullYear(year);
42
+ } else if (year > this.maxYear) {
43
+ year = this.maxYear;
44
+ date.setFullYear(year);
45
+ }
46
+ this.firstDayOfWeek = firstDayOfWeek;
47
+ this.date = new CalendarDateObject(date);
48
+ var month = date.getMonth();
49
+ var mday = date.getDate();
50
+ var no_days = date.getMonthDays();
51
+ /* Added By B.C. on date 18/02/2013 */
52
+ var check_flag = false;
53
+ /* END */
54
 
55
+ // calendar voodoo for computing the first day that would actually be
56
+ // displayed in the calendar, even if it's from the previous month.
57
+ // WARNING: this is magic. ;-)
58
+ date.setDate(1);
59
+ var day1 = (date.getDay() - this.firstDayOfWeek) % 7;
60
+ if (day1 < 0)
61
+ day1 += 7;
62
+ date.setDate(-day1);
63
+ date.setDate(date.getDate() + 1);
64
+
65
+ var row = this.tbody.firstChild;
66
+ var MN = Calendar._SMN[month];
67
+ var ar_days = this.ar_days = new Array();
68
+ var weekend = Calendar._TT["WEEKEND"];
69
+ var dates = this.multiple ? (this.datesCells = {}) : null;
70
+ for (var i = 0; i < 6; ++i, row = row.nextSibling) {
71
+ var cell = row.firstChild;
72
+ if (this.weekNumbers) {
73
+ cell.className = "day wn";
74
+ cell.innerHTML = date.getWeekNumber();
75
+ cell = cell.nextSibling;
76
+ }
77
+ row.className = "daysrow";
78
+ var hasdays = false, iday, dpos = ar_days[i] = [];
79
+ for (var j = 0; j < 7; ++j, cell = cell.nextSibling, date.setDate(iday + 1)) {
80
+ iday = date.getDate();
81
+ var wday = date.getDay();
82
+ cell.className = "day";
83
+ cell.pos = i << 4 | j;
84
+ dpos[j] = cell;
85
+ var current_month = (date.getMonth() == month);
86
+ if (!current_month) {
87
+ if (this.showsOtherMonths) {
88
+ cell.className += " othermonth";
89
+ cell.otherMonth = true;
90
  } else {
91
+ cell.className = "emptycell";
92
+ cell.innerHTML = "&nbsp;";
93
+ cell.disabled = true;
94
+ continue;
95
  }
96
+ } else {
97
+ cell.otherMonth = false;
98
+ hasdays = true;
99
+ }
100
+ cell.disabled = false;
101
+ cell.innerHTML = this.getDateText ? this.getDateText(date, iday) : iday;
102
+ if (dates)
103
+ dates[date.print("%Y%m%d")] = cell;
104
+ if (this.getDateStatus) {
105
+ var status = this.getDateStatus(date, year, month, iday);
106
+ if (this.getDateToolTip) {
107
+ var toolTip = this.getDateToolTip(date, year, month, iday);
108
+ if (toolTip)
109
+ cell.title = toolTip;
110
+ }
111
+ if (status === true) {
112
+ cell.className += " disabled";
113
+ cell.disabled = true;
114
+ } else {
115
+ if (/disabled/i.test(status))
116
  cell.disabled = true;
117
+ cell.className += " " + status;
 
 
 
 
118
  }
119
+ }
120
+ if (!cell.disabled) {
121
+ cell.caldate = new CalendarDateObject(date);
122
+ cell.ttip = "_";
123
+ if (!this.multiple && current_month
124
+ && iday == mday && this.hiliteToday) {
125
+ cell.className += " selected";
126
+ this.currentDateEl = cell;
127
+ }
128
+ if (date.getFullYear() == TY &&
129
+ date.getMonth() == TM &&
130
+ iday == TD) {
131
+ cell.className += " today";
132
+ cell.ttip += Calendar._TT["PART_TODAY"];
133
+ }
134
+ if (weekend.indexOf(wday.toString()) != -1)
135
+ cell.className += cell.otherMonth ? " oweekend" : " weekend";
136
+ if (check_flag){
137
+ cell.className += " selected";
138
+ this.currentDateEl = cell;
139
+ check_flag=false;
140
+ }
141
+ }else{
142
+ /* Added By B.C. on date 18/02/2013 */
143
+ if (!this.multiple && current_month
144
+ && iday == mday && this.hiliteToday) {
145
+ check_flag=true;
 
 
146
  }
147
+
148
+ /* END */
149
  }
 
 
150
  }
151
+ if (!(hasdays || this.showsOtherMonths))
152
+ row.className = "emptyrow";
153
+ }
154
+ this.title.innerHTML = Calendar._MN[month] + ", " + year;
155
+ this.onSetTime();
156
+ this.table.style.visibility = "visible";
157
+ this._initMultipleDates();
158
+ // PROFILE
159
+ // this.tooltips.innerHTML = "Generated in " + ((new CalendarDateObject()) - today) + " ms";
160
+ };
161
 
162
+ var dayoff = '<?php echo $dayoff; ?>';
163
+ var test_flag = false;
164
+ Calendar.setup({
165
+ inputField: "shipping_arrival_date",
166
+ ifFormat: "%Y-%mm-%ee %H:%M:%S",
167
+ showsTime: true,
168
+ button: "shipping_arrival_date_trig",
169
+ align: "Bl",
170
+ singleClick :true,
171
+ onSelect :function()
172
+ {
173
+ //var y = calendar.date.getFullYear();
174
+ currentTime1 = new Date();
175
+ var m = parseInt(currentTime1.getMonth())+parseInt(1);
176
+ var y=currentTime1.getFullYear();
177
+ var d = currentTime1.getDate();
 
178
 
179
 
 
 
 
 
 
 
180
 
181
+ currentTime = new Date(calendar.date.getTime());
182
+ var d1=currentTime.getDate();
183
+ var m1=parseInt(currentTime.getMonth())+parseInt(1);
184
+ var y1=currentTime.getFullYear();
185
+ var h1 = currentTime.getHours();
186
+ var min1= currentTime.getMinutes();
187
 
188
+
189
+ if (calendar.dateClicked)
190
+ {
191
+ if(d1 < d && m1==m && y1==y)
192
  {
193
+ alert("You can not select previous date.")
194
+ document.getElementById('shipping_arrival_date_display').value="";
195
+ document.getElementById('shipping_arrival_date').value="";
196
+ calendar.hide();
 
 
 
 
 
 
 
 
 
197
  }
198
  else
199
  {
200
+ document.getElementById('shipping_arrival_date_display').value=y1+"-"+m1+"-"+d1+" "+h1+":"+min1;
201
+ document.getElementById('shipping_arrival_date').value=y1+"-"+m1+"-"+d1+" "+h1+":"+min1;
202
+ calendar.hide();
203
  }
204
+ }
205
+ else
206
+ {
207
+ calendar.show();
208
+ }
209
+ },
210
+ disableFunc : function(date)
211
+ {
212
+ var y = calendar.date.getFullYear();
213
+ var m = calendar.date.getMonth();
214
+ var d = calendar.date.getDate();
215
 
216
+ var day_off_array = dayoff.split(",") ;
217
 
218
+ currentTime = new Date();
219
+ var d1=currentTime.getDate();
220
+ var m1=currentTime.getMonth();
221
+ var y1=currentTime.getFullYear();
222
+ var counter = 1;
223
+ for (var i=0; i<day_off_array.length;i++){
224
+ if (day_off_array[i]>=0 && day_off_array[i]!=''){
225
+ if (date.getDay()==day_off_array[i]){
226
+ if (date.getDate()==currentTime.getDate()){
227
+ test_flag=true;
 
 
228
  }
229
+ return true;
230
  }
231
  }
232
+ }
233
 
234
+ if(y < y1)
235
+ {
236
+ return true;
 
 
 
 
 
237
  }
238
+ else if(m1 > m && y==y1)
239
+ {
240
+ return true;
241
+ }
242
+ }
243
+ });
244
 
245
+ function shippingArrivalDateOnChange(el)
246
+ {
247
+ var displayDate = $('shipping_arrival_date_display');
248
+ var date = $('shipping_arrival_date').getValue();
249
+ displayDate.setValue(date);
250
+ }
251
 
252
+ function resetArrivalDate()
253
+ {
254
+ //clear both fields
255
 
256
+ }
257
+ //MRD added disable field to only allow calendar input
258
+ //TODO: need to enable field when form is submitted
259
+ Form.Element.disable('shipping_arrival_date_display');
260
+ Event.observe($('link_reset'),'click',function(){
261
+ $('shipping_arrival_date').setValue('');
262
+ $('shipping_arrival_date_display').setValue('');
263
+ });
264
+ //]]>
265
  </script>
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/deliverydate/review/info.phtml CHANGED
@@ -69,12 +69,7 @@
69
  </script>
70
  <div id="checkout-review-submit">
71
  <?php echo $this->getChildHtml('agreements') ?>
72
- <?php
73
- $get_ver = Mage::getVersion();
74
- $ver = str_replace('.','',$get_ver);
75
- if($ver >1411)
76
- {
77
- ?>
78
  <div class="buttons-set" id="review-buttons-container">
79
 
80
  <p class="f-left"><?php echo $this->__('Forgot an Item?') ?> <a href="<?php echo $this->getUrl('checkout/cart') ?>"><?php echo $this->__('Edit Your Cart') ?></a></p>
@@ -84,9 +79,7 @@
84
  <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Submitting order information...') ?>" title="<?php echo $this->__('Submitting order information...') ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
85
  </span>
86
  </div>
87
- <?php
88
- }
89
- ?>
90
  <script type="text/javascript">
91
  //<![CDATA[
92
  review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
69
  </script>
70
  <div id="checkout-review-submit">
71
  <?php echo $this->getChildHtml('agreements') ?>
72
+ <?php if (version_compare(Mage::getVersion(), '1.4.1.1', '>')) { ?>
 
 
 
 
 
73
  <div class="buttons-set" id="review-buttons-container">
74
 
75
  <p class="f-left"><?php echo $this->__('Forgot an Item?') ?> <a href="<?php echo $this->getUrl('checkout/cart') ?>"><?php echo $this->__('Edit Your Cart') ?></a></p>
79
  <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Submitting order information...') ?>" title="<?php echo $this->__('Submitting order information...') ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
80
  </span>
81
  </div>
82
+ <?php } ?>
 
 
83
  <script type="text/javascript">
84
  //<![CDATA[
85
  review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
app/etc/modules/Bc_Deliverydate.xml CHANGED
@@ -1,11 +1,11 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @category Bc
5
- * @package Bc_Deliverydate
6
- * @author ModuleCreator
7
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
- */
9
  -->
10
  <config>
11
  <modules>
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Bc
5
+ * @package Bc_Deliverydate
6
+ * @author ModuleCreator
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
  -->
10
  <config>
11
  <modules>
package.xml CHANGED
@@ -1,23 +1,41 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>order_delivery_date</name>
4
- <version>0.1.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>
8
  <extends/>
9
- <summary>Delivery date extension will allow customer to choose preferable delivery date for order. &#xD;
10
- </summary>
11
- <description>Delivery date extension will allow customer to choose preferable delivery date for order. &#xD;
12
  &#xD;
13
- Extension provide advance configuration for admin to decide where to capture delivery date from user either from shipping method step or review step in checkout process. &#xD;
14
  &#xD;
15
- Our extension will override files to display delivery date with order information so that admin dont requires to manually change any files.</description>
16
- <notes>-Bug fixing in order screen while placing an order from admin panel.</notes>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  <authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
18
- <date>2013-04-25</date>
19
- <time>06:43:30</time>
20
- <contents><target name="mageetc"><dir name="modules"><file name="Bc_Deliverydate.xml" hash="eab1058099910cdf137d2e38ee73c392"/></dir></target><target name="magelocal"><dir name="Bc"><dir name="Deliverydate"><dir name="Block"><dir name="Adminhtml"><dir name="Deliverydate"><dir name="Edit"><file name="Form.php" hash="14a5ef75f43be68f966b4233d1a71707"/><dir name="Tab"><file name="Form.php" hash="eb392c359eafe55fa4af49726e38d25d"/></dir><file name="Tabs.php" hash="4dae864023de48414f5c5de48961dbb2"/></dir><file name="Edit.php" hash="b990ba5c1f8bc9c9e8796f4b0fe45ab2"/><file name="Grid.php" hash="1033c40acfc04c6d9b2827f3b1664fef"/></dir><file name="Deliverydate.php" hash="da2c1c11742280cbdad8a6789d8e710f"/></dir><file name="Deliverydate.php" hash="2e5ea173382e8fd75165b8bee4cfb409"/><dir name="Email"><file name="Info.php" hash="77175f966ef7fe9414bfbb1592f651ff"/></dir><dir name="Order"><file name="Info.php" hash="73d4b23927c7531e489eb6a806934b44"/></dir></dir><dir name="Helper"><file name="Data.php" hash="ec1c739903fa6214802d9574aebedda0"/></dir><dir name="Model"><dir name="Config"><file name="Dateformat.php" hash="722f44d3c607a2e0f172f8b2721405fe"/><file name="Dayoff.php" hash="be7e72edca44e8cee607972cde0e1565"/><file name="Option.php" hash="45780922eac613f1a6a03ced8af080ec"/><file name="Timeformat.php" hash="19b1013107a87923bdc2b962dae844ec"/></dir><file name="Deliverydate.php" hash="d6d63e0c5db21a706ec7353b307f8a95"/><dir name="Mysql4"><dir name="Deliverydate"><file name="Collection.php" hash="38e5fa717318b2fc9d18eca3db6b0e8b"/></dir><file name="Deliverydate.php" hash="5dee427cc09c3659a76a32a6ec13cade"/></dir><file name="Observer.php" hash="b0c184174b87e49131e6d672eb18178c"/><file name="Status.php" hash="334c9b7669e215314b32e9cbcff89354"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="DeliverydateController.php" hash="a33ab0d29a473dbc421aef1df67d301f"/></dir><file name="IndexController.php" hash="4066dfbe772492393bf98a127af7bc2d"/></dir><dir name="etc"><file name="config.xml" hash="29928a47fc50723fef4c40bccf8b879f"/><file name="system.xml" hash="adf832b092bdafb35a59d5b71e7601d2"/></dir><dir name="sql"><dir name="deliverydate_setup"><file name="mysql4-install-0.1.0.php" hash="d03f13d84464f407844bee55dc930d60"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="deliverydate.xml" hash="782935656933efd6e8708824d9275474"/></dir><dir name="template"><dir name="deliverydate"><file name="agreements.phtml" hash="77bcb19c1bb923f91a7780520b30e55f"/><file name="deliverydate.phtml" hash="cb61e2e8f65104212bc5a62b2c0634ac"/><dir><dir name="email"><file name="info.phtml" hash="6fdbc376e648bd328a9167dd08c8cc5b"/></dir><dir name="js"><file name="calendar.phtml" hash="0cf736ac3f11475c3b20ce008791ce30"/></dir><dir name="order"><file name="info.phtml" hash="03a790d8ec056ae0446afc78247e410d"/></dir><dir name="review"><file name="info.phtml" hash="45389c6812e93d9b74712a2f4704ac49"/></dir><dir name="shipping_method"><file name="available.phtml" hash="0d7ab3fd3d976cc90ddba322d3c8737e"/></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="deliverydate.xml" hash="28218a2131b1b68e4ad0acf9aa0b559c"/></dir><dir name="template"><dir name="deliverydate"><file name="date.phtml" hash="865e5602821db004e5fdbdf227612e49"/><file name="info.phtml" hash="1a2fe215c78938cd4615275a8093b7c6"/><dir><dir name="js"><file name="calendar.phtml" hash="0cf736ac3f11475c3b20ce008791ce30"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><file name="ico_reset.png" hash="b5f3195305024564e387bc15ebadcc7c"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="ico_reset.png" hash="b5f3195305024564e387bc15ebadcc7c"/></dir></dir></dir></dir></target></contents>
21
  <compatible/>
22
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
23
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>order_delivery_date</name>
4
+ <version>0.1.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>
8
  <extends/>
9
+ <summary>The fantastic Order Delivery Date Magento Extension developed by our Magento Expert will allow you handle orders seamlessly</summary>
10
+ <description>The fantastic Order Delivery Date Magento Extension developed by our Magento Expert will allow you handle orders seamlessly&#xD;
 
11
  &#xD;
12
+ Online retailers, especially, large sized business owners find it extremely difficult to manage orders from the back end. If managing the delivery date of orders is a nightmare for you then we at Biztech Consultancy have the best answer to your ecommerce problems. Our outstanding Magento Order Delivery Date Extension will help you streamline order management processes and save a lot of time and money. This Magento Extension has been developed using the best programming practices and coding standards.&#xD;
13
  &#xD;
14
+ Our Magento Developers have used leading -edge technologies to come up with this extension in a very short period of time. The extension offers an advanced configuration for the admin to decide where to capture delivery date from user. This can be done either from shipping method step or review step in the checkout process. Further, this magento extension also overrides files to display delivery date with order information so that admin does not have to change any files manually.&#xD;
15
+ Features for your customers&#xD;
16
+ &#xD;
17
+ Allows users to provide expected shipping arrival date&#xD;
18
+ Users can also write comments while placing an order from your online shop&#xD;
19
+ Users will not able to select previous dates&#xD;
20
+ Option to display shipping arrival date and comment in order view page&#xD;
21
+ Display shipping arrival date and comment in order confirmation email sent to customer&#xD;
22
+ &#xD;
23
+ Features for the admin&#xD;
24
+ &#xD;
25
+ Disable week off days (like Saturday and Sunday)&#xD;
26
+ Specify on which step shipping arrival date should be display, whether it is on shipping method page or order review page&#xD;
27
+ Mention on which format shipping arrival should display&#xD;
28
+ Add shipping arrival date and comment while placing an order from admin panel&#xD;
29
+ &#xD;
30
+ Mentioned below is the code you need to use for displaying shipping arrival date and comment while placing an order from admin panel.&#xD;
31
+ echo $this-&gt;getLayout()-&gt;createBlock('deliverydate/deliverydate')-&gt;setTemplate('deliverydate/date.phtml')-&gt;toHtml();&#xD;
32
+ &#xD;
33
+ The Magento Order Delivery Date Extension is compatible with various Magento versions and is 100% bug-free and optimized for best performance. For more queries &amp; technical support, feel free to get in touch with our Magento Extension Development Experts. </description>
34
+ <notes>-solve third party payment option issue</notes>
35
  <authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
36
+ <date>2013-10-30</date>
37
+ <time>11:13:07</time>
38
+ <contents><target name="mageetc"><dir name="modules"><file name="Bc_Deliverydate.xml" hash="55c1feba29d59d4c341e5fca0e771df7"/></dir></target><target name="magelocal"><dir name="Bc"><dir name="Deliverydate"><dir name="Block"><dir name="Adminhtml"><dir name="Deliverydate"><dir name="Edit"><file name="Form.php" hash="14a5ef75f43be68f966b4233d1a71707"/><dir name="Tab"><file name="Form.php" hash="eb392c359eafe55fa4af49726e38d25d"/></dir><file name="Tabs.php" hash="4dae864023de48414f5c5de48961dbb2"/></dir><file name="Edit.php" hash="b990ba5c1f8bc9c9e8796f4b0fe45ab2"/><file name="Grid.php" hash="1033c40acfc04c6d9b2827f3b1664fef"/></dir><file name="Deliverydate.php" hash="da2c1c11742280cbdad8a6789d8e710f"/></dir><file name="Deliverydate.php" hash="2e5ea173382e8fd75165b8bee4cfb409"/><dir name="Email"><file name="Info.php" hash="77175f966ef7fe9414bfbb1592f651ff"/></dir><dir name="Order"><file name="Info.php" hash="73d4b23927c7531e489eb6a806934b44"/></dir></dir><dir name="Helper"><file name="Data.php" hash="d0b7cdd924cf7ff3947088d4e8e10910"/></dir><dir name="Model"><dir name="Config"><file name="Dateformat.php" hash="722f44d3c607a2e0f172f8b2721405fe"/><file name="Dayoff.php" hash="be7e72edca44e8cee607972cde0e1565"/><file name="Option.php" hash="45780922eac613f1a6a03ced8af080ec"/><file name="Timeformat.php" hash="19b1013107a87923bdc2b962dae844ec"/></dir><file name="Deliverydate.php" hash="d6d63e0c5db21a706ec7353b307f8a95"/><dir name="Mysql4"><dir name="Deliverydate"><file name="Collection.php" hash="38e5fa717318b2fc9d18eca3db6b0e8b"/></dir><file name="Deliverydate.php" hash="5dee427cc09c3659a76a32a6ec13cade"/></dir><file name="Observer.php" hash="bdde7329038961889cec689dcf563004"/><file name="Status.php" hash="334c9b7669e215314b32e9cbcff89354"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="DeliverydateController.php" hash="a33ab0d29a473dbc421aef1df67d301f"/></dir><file name="IndexController.php" hash="4066dfbe772492393bf98a127af7bc2d"/></dir><dir name="etc"><file name="config.xml" hash="02ad1a104b8a0439b3cbb73dcdc419cd"/><file name="system.xml" hash="adf832b092bdafb35a59d5b71e7601d2"/></dir><dir name="sql"><dir name="deliverydate_setup"><file name="mysql4-install-0.1.0.php" hash="d03f13d84464f407844bee55dc930d60"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="deliverydate.xml" hash="1a93a596b5a279a9a8b688a02211f010"/></dir><dir name="template"><dir name="deliverydate"><file name="agreements.phtml" hash="b54d092b98c18bff9176bbb9473262a9"/><file name="deliverydate.phtml" hash="9efec3e9eb4302d49bdf29552ba484a5"/><dir><dir name="email"><file name="info.phtml" hash="6fdbc376e648bd328a9167dd08c8cc5b"/></dir><dir name="js"><file name="calendar.phtml" hash="0cf736ac3f11475c3b20ce008791ce30"/></dir><dir name="order"><file name="info.phtml" hash="03a790d8ec056ae0446afc78247e410d"/></dir><dir name="review"><file name="info.phtml" hash="ea6b97b352c2291934e951972d3e4215"/></dir><dir name="shipping_method"><file name="available.phtml" hash="0d7ab3fd3d976cc90ddba322d3c8737e"/></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="deliverydate.xml" hash="28218a2131b1b68e4ad0acf9aa0b559c"/></dir><dir name="template"><dir name="deliverydate"><file name="date.phtml" hash="865e5602821db004e5fdbdf227612e49"/><file name="info.phtml" hash="1a2fe215c78938cd4615275a8093b7c6"/><dir><dir name="js"><file name="calendar.phtml" hash="0cf736ac3f11475c3b20ce008791ce30"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><file name="ico_reset.png" hash="b5f3195305024564e387bc15ebadcc7c"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="ico_reset.png" hash="b5f3195305024564e387bc15ebadcc7c"/></dir></dir></dir></dir></target></contents>
39
  <compatible/>
40
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
41
  </package>
skin/frontend/{base → default}/default/images/ico_reset.png RENAMED
File without changes