order_delivery_date - Version 0.1.7

Version Notes

-Bug fixing

Download this release

Release Info

Developer Biztech
Extension order_delivery_date
Version 0.1.7
Comparing to
See all releases


Code changes from version 0.1.6 to 0.1.7

app/code/local/Bc/Deliverydate/etc/config.xml CHANGED
@@ -10,7 +10,7 @@
10
  <config>
11
  <modules>
12
  <Bc_Deliverydate>
13
- <version>0.1.6</version>
14
  </Bc_Deliverydate>
15
  </modules>
16
  <frontend>
10
  <config>
11
  <modules>
12
  <Bc_Deliverydate>
13
+ <version>0.1.7</version>
14
  </Bc_Deliverydate>
15
  </modules>
16
  <frontend>
app/design/frontend/default/default/template/deliverydate/agreements.phtml CHANGED
@@ -37,8 +37,8 @@
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
  }
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
+ if(Mage::helper('deliverydate')->isEnable()){
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
  }
app/design/frontend/default/default/template/deliverydate/deliverydate.phtml CHANGED
@@ -1,33 +1,47 @@
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(),
@@ -48,13 +62,8 @@
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)
@@ -139,13 +148,11 @@
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))
@@ -155,16 +162,16 @@
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,
@@ -197,8 +204,14 @@
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
  }
@@ -214,23 +227,36 @@
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;
@@ -249,13 +275,7 @@
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('');
@@ -263,3 +283,5 @@
263
  });
264
  //]]>
265
  </script>
 
 
1
  <dd>
2
  <ul style="border-top: 1px solid #D1D1D1; margin-top: 12px; padding-top: 10px;">
3
  <li>
4
+ <label for="page_date-end"><?php echo $this->__('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"><?php echo $this->__('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
+
16
+ $dayoff = Mage::getStoreConfig('deliverydate/deliverydate_dayoff/deliverydate_dayoff');
17
+ $nonworking_days = Mage::helper('deliverydate')->getNonWorkingDays();
18
+ $nonworking_period = Mage::helper('deliverydate')->getNonWorkingPeriod();
19
+
20
+ $day_diff = Mage::getStoreConfig('deliverydate/deliverydate_general/deliverytime_day_diff');
21
+ $start_date = date('Y-m-d H:i:s');
22
+ $end_date = date('Y-m-d H:i:s', strtotime('+'.$day_diff.' days'));
23
+
24
+ $date_from = strtotime(date('Y-m-d', strtotime($start_date)));
25
+ $date_to = strtotime(date('Y-m-d', strtotime($end_date)));
26
+
27
+ for ($i=$date_from; $i<=$date_to; $i+=86400) {
28
+ $non_deliverd_dates[] = date("Y-m-d", $i);
29
+ }
30
+
31
+ foreach($non_deliverd_dates as $non_deliverd_date)
32
+ {
33
+ $non_deliverd_days = array(
34
+ 'day' => date('d', strtotime($non_deliverd_date)),
35
+ 'month' => date('m', strtotime($non_deliverd_date)),
36
+ 'year' => date('Y', strtotime($non_deliverd_date)),
37
+ );
38
+ $non_deliverd_dates_array[] = $non_deliverd_days;
39
+ }
40
+ $off_days = array_merge($nonworking_days,$nonworking_period,$non_deliverd_dates_array);
41
  ?>
42
 
43
  <script type="text/javascript">
44
+
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  Calendar.prototype._init = function (firstDayOfWeek, date) {
47
  var today = new CalendarDateObject(),
62
  var month = date.getMonth();
63
  var mday = date.getDate();
64
  var no_days = date.getMonthDays();
 
65
  var check_flag = false;
 
66
 
 
 
 
67
  date.setDate(1);
68
  var day1 = (date.getDay() - this.firstDayOfWeek) % 7;
69
  if (day1 < 0)
148
  check_flag=false;
149
  }
150
  }else{
 
151
  if (!this.multiple && current_month
152
  && iday == mday && this.hiliteToday) {
153
  check_flag=true;
154
  }
155
 
 
156
  }
157
  }
158
  if (!(hasdays || this.showsOtherMonths))
162
  this.onSetTime();
163
  this.table.style.visibility = "visible";
164
  this._initMultipleDates();
 
 
165
  };
166
 
167
  var dayoff = '<?php echo $dayoff; ?>';
168
+ var spe_dayoff = '<?php echo json_encode($off_days); ?>';
169
  var test_flag = false;
170
+ var is_time = <?php echo Mage::getStoreConfig('deliverydate/deliverydate_general/deliverytime_enable_time'); ?>;
171
  Calendar.setup({
172
  inputField: "shipping_arrival_date",
173
  ifFormat: "%Y-%mm-%ee %H:%M:%S",
174
+ showsTime: is_time,
175
  button: "shipping_arrival_date_trig",
176
  align: "Bl",
177
  singleClick :true,
204
  }
205
  else
206
  {
207
+ if(is_time == 1){
208
+ document.getElementById('shipping_arrival_date_display').value=y1+"-"+m1+"-"+d1+" "+h1+":"+min1;
209
+ document.getElementById('shipping_arrival_date').value=y1+"-"+m1+"-"+d1+" "+h1+":"+min1;
210
+ }else{
211
+ document.getElementById('shipping_arrival_date_display').value=y1+"-"+m1+"-"+d1 ;
212
+ document.getElementById('shipping_arrival_date').value=y1+"-"+m1+"-"+d1 ;
213
+
214
+ }
215
  calendar.hide();
216
  }
217
  }
227
  var d = calendar.date.getDate();
228
 
229
  var day_off_array = dayoff.split(",") ;
230
+ var date_off_array = [];
231
+
232
+ date_off_array[y] = spe_dayoff.evalJSON();
233
 
234
  currentTime = new Date();
235
  var d1=currentTime.getDate();
236
  var m1=currentTime.getMonth();
237
  var y1=currentTime.getFullYear();
238
  var counter = 1;
239
+
240
+ var weekend_days = [];
241
+ var today_date = new Date();
242
+
243
+ if (date <= today_date )
244
+ return true;
245
+ for (var i in weekend_days)
246
+ if (weekend_days[i] == date.getDay())
247
+ return true;
248
+ if (date_off_array[y])
249
+ {
250
+ for(var j =0;j<=date_off_array[y].length;j++)
251
+ {
252
+ var no_delivery = date_off_array[y][j];
253
+ if (no_delivery){
254
+
255
+ if ((no_delivery['day'] == date.getDate() && no_delivery['month'] == date.getMonth()+1 && no_delivery['year'] == date.getFullYear() ) ||day_off_array[j] == date.getDay())
256
+ return true;
257
  }
258
  }
259
  }
 
260
  if(y < y1)
261
  {
262
  return true;
275
  displayDate.setValue(date);
276
  }
277
 
 
 
 
278
 
 
 
 
279
  Form.Element.disable('shipping_arrival_date_display');
280
  Event.observe($('link_reset'),'click',function(){
281
  $('shipping_arrival_date').setValue('');
283
  });
284
  //]]>
285
  </script>
286
+
287
+
app/design/frontend/default/default/template/deliverydate/email/info.phtml CHANGED
@@ -4,14 +4,20 @@
4
  $time_format = Mage::getStoreConfig('deliverydate/deliverydate_general/deliverytime_format');
5
  if ($date_format=='')
6
  $date_format='d/M/Y';
7
- if($time_format=='')
8
  $date_format.=" ,g:i a";
 
 
 
 
 
 
 
 
 
 
9
  else
10
- $date_format.=" ".$time_format;
11
- if ($_order->getShippingArrivalDate()!='')
12
- echo "<strong>Shipping Arrival Date :- </strong>".$currentDate = date ($date_format,strtotime($_order->getShippingArrivalDate()));
13
- else
14
- echo "<strong>Shipping Arrival Date :- </strong> N/A";
15
  if ($_order->getShippingArrivalComments()!='')
16
  echo "<br/>".$_order->getShippingArrivalComments();
17
  ?>
4
  $time_format = Mage::getStoreConfig('deliverydate/deliverydate_general/deliverytime_format');
5
  if ($date_format=='')
6
  $date_format='d/M/Y';
7
+ if($time_format==''){
8
  $date_format.=" ,g:i a";
9
+ }else{
10
+ $is_time = Mage::getStoreConfig('deliverydate/deliverydate_general/deliverytime_enable_time');
11
+ if($is_time){
12
+ $date_format.=" ".$time_format;
13
+ }else{
14
+ $date_format.=" ";
15
+ }
16
+ }
17
+ if ($_order->getShippingArrivalDate()!='')
18
+ echo "<strong>Shipping Arrival Date :- </strong>".$currentDate = date ($date_format,strtotime($_order->getShippingArrivalDate()));
19
  else
20
+ echo "<strong>Shipping Arrival Date :- </strong> N/A";
 
 
 
 
21
  if ($_order->getShippingArrivalComments()!='')
22
  echo "<br/>".$_order->getShippingArrivalComments();
23
  ?>
app/design/frontend/default/default/template/deliverydate/order/info.phtml CHANGED
@@ -72,25 +72,35 @@
72
  <?php echo $this->escapeHtml($_order->getShippingDescription()); ?>
73
  <br/>
74
  <?php
75
- $shipping_arrival_date = $_order->getShippingArrivalDate();
76
-
 
 
77
  $date_format = Mage::getStoreConfig('deliverydate/deliverydate_general/deliverydate_format');
78
  $time_format = Mage::getStoreConfig('deliverydate/deliverydate_general/deliverytime_format');
79
- if ($date_format=='')
80
  $date_format='d/M/Y';
81
- if($time_format=='')
 
82
  $date_format.=" ,g:i a";
83
- else
84
- $date_format.=" ".$time_format;
 
 
 
 
 
 
85
  if ($shipping_arrival_date!='')
86
  echo "Shipping Arrival Date :- ".$currentDate = date ($date_format,strtotime($shipping_arrival_date));
87
  else
88
  echo "Shipping Arrival Date :- N/A";
89
- ?>
90
- <br/>
91
- <?php
92
- if ($_order->getShippingArrivalComments()!='')
93
- echo $_order->getShippingArrivalComments();
 
94
  ?>
95
  <?php else: ?>
96
  <p><?php echo $this->helper('sales')->__('No shipping information available'); ?></p>
72
  <?php echo $this->escapeHtml($_order->getShippingDescription()); ?>
73
  <br/>
74
  <?php
75
+ if(Mage::getStoreConfig('deliverydate/deliverydate_general/enabled'))
76
+ {
77
+ $shipping_arrival_date = $_order->getShippingArrivalDate();
78
+
79
  $date_format = Mage::getStoreConfig('deliverydate/deliverydate_general/deliverydate_format');
80
  $time_format = Mage::getStoreConfig('deliverydate/deliverydate_general/deliverytime_format');
81
+ if ($date_format==''){
82
  $date_format='d/M/Y';
83
+ }
84
+ if($time_format==''){
85
  $date_format.=" ,g:i a";
86
+ }else{
87
+ $is_time = Mage::getStoreConfig('deliverydate/deliverydate_general/deliverytime_enable_time');
88
+ if($is_time){
89
+ $date_format.=" ".$time_format;
90
+ }else{
91
+ $date_format.=" ";
92
+ }
93
+ }
94
  if ($shipping_arrival_date!='')
95
  echo "Shipping Arrival Date :- ".$currentDate = date ($date_format,strtotime($shipping_arrival_date));
96
  else
97
  echo "Shipping Arrival Date :- N/A";
98
+ ?>
99
+ <br/>
100
+ <?php
101
+ if ($_order->getShippingArrivalComments()!='')
102
+ echo $_order->getShippingArrivalComments();
103
+ }
104
  ?>
105
  <?php else: ?>
106
  <p><?php echo $this->helper('sales')->__('No shipping information available'); ?></p>
app/design/frontend/default/default/template/deliverydate/review/info.phtml CHANGED
@@ -1,88 +1,88 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package base_default
23
- * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- ?>
27
- <?php echo $this->getChildHtml('items_before'); ?>
28
- <div id="checkout-review-table-wrapper">
29
- <table class="data-table" id="checkout-review-table">
30
- <?php if ($this->helper('tax')->displayCartBothPrices()): $colspan = $rowspan = 2; else: $colspan = $rowspan = 1; endif; ?>
31
- <col />
32
- <col width="1" />
33
- <col width="1" />
34
- <col width="1" />
35
- <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
36
- <col width="1" />
37
- <col width="1" />
38
- <?php endif; ?>
39
- <thead>
40
- <tr>
41
- <th rowspan="<?php echo $rowspan ?>"><?php echo $this->__('Product Name') ?></th>
42
- <th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Price') ?></th>
43
- <th rowspan="<?php echo $rowspan ?>" class="a-center"><?php echo $this->__('Qty') ?></th>
44
- <th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
45
- </tr>
46
- <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
47
- <tr>
48
- <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
49
- <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
50
- <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
51
- <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
52
- </tr>
53
- <?php endif; ?>
54
- </thead>
55
- <?php echo $this->getChildHtml('totals'); ?>
56
- <tbody>
57
- <?php foreach($this->getItems() as $_item): ?>
58
- <?php echo $this->getItemHtml($_item)?>
59
- <?php endforeach ?>
60
- </tbody>
61
- </table>
62
- </div>
63
- <?php echo $this->getChildHtml('items_after'); ?>
64
- <script type="text/javascript">
65
- //<![CDATA[
66
- decorateTable('checkout-review-table');
67
- truncateOptions();
68
- //]]>
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>
76
-
77
- <?php echo $this->getChildHtml('button') ?>
78
- <span class="please-wait" id="review-please-wait" style="display:none;">
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', array('form_key' => Mage::getSingleton('core/session')->getFormKey())) ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
86
- //]]>
87
- </script>
88
- </div>
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php echo $this->getChildHtml('items_before'); ?>
28
+ <div id="checkout-review-table-wrapper">
29
+ <table class="data-table" id="checkout-review-table">
30
+ <?php if ($this->helper('tax')->displayCartBothPrices()): $colspan = $rowspan = 2; else: $colspan = $rowspan = 1; endif; ?>
31
+ <col />
32
+ <col width="1" />
33
+ <col width="1" />
34
+ <col width="1" />
35
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
36
+ <col width="1" />
37
+ <col width="1" />
38
+ <?php endif; ?>
39
+ <thead>
40
+ <tr>
41
+ <th rowspan="<?php echo $rowspan ?>"><?php echo $this->__('Product Name') ?></th>
42
+ <th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Price') ?></th>
43
+ <th rowspan="<?php echo $rowspan ?>" class="a-center"><?php echo $this->__('Qty') ?></th>
44
+ <th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
45
+ </tr>
46
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
47
+ <tr>
48
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
49
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
50
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
51
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
52
+ </tr>
53
+ <?php endif; ?>
54
+ </thead>
55
+ <?php echo $this->getChildHtml('totals'); ?>
56
+ <tbody>
57
+ <?php foreach($this->getItems() as $_item): ?>
58
+ <?php echo $this->getItemHtml($_item)?>
59
+ <?php endforeach ?>
60
+ </tbody>
61
+ </table>
62
+ </div>
63
+ <?php echo $this->getChildHtml('items_after'); ?>
64
+ <script type="text/javascript">
65
+ //<![CDATA[
66
+ decorateTable('checkout-review-table');
67
+ truncateOptions();
68
+ //]]>
69
+ </script>
70
+ <div id="checkout-review-submit">
71
+ <?php echo $this->getChildHtml('agreements') ?>
72
+ <?php if (version_compare(Mage::getVersion(), '1.5.1.0', '>')) { ?>
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>
76
+
77
+ <?php echo $this->getChildHtml('button') ?>
78
+ <span class="please-wait" id="review-please-wait" style="display:none;">
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', array('form_key' => Mage::getSingleton('core/session')->getFormKey())) ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
86
+ //]]>
87
+ </script>
88
+ </div>
app/design/frontend/default/default/template/deliverydate/shipping_method/available.phtml CHANGED
@@ -71,8 +71,10 @@
71
  </dd>
72
  <?php endforeach; ?>
73
  <?php
74
- if (Mage::getStoreConfig('deliverydate/deliverydate_general/on_which_page')==1){
75
- echo $this->getLayout()->createBlock('deliverydate/deliverydate')->setTemplate('deliverydate/deliverydate.phtml')->toHtml();
 
 
76
  }
77
  ?>
78
  </dl>
71
  </dd>
72
  <?php endforeach; ?>
73
  <?php
74
+ if ( Mage::getStoreConfig('deliverydate/deliverydate_general/on_which_page')==1){
75
+ if(Mage::helper('deliverydate')->isEnable()){
76
+ echo $this->getLayout()->createBlock('deliverydate/deliverydate')->setTemplate('deliverydate/deliverydate.phtml')->toHtml();
77
+ }
78
  }
79
  ?>
80
  </dl>
app/etc/modules/Bc_Deliverydate.xml CHANGED
@@ -1,16 +1,16 @@
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
- <active>true</active>
14
  <codePool>local</codePool>
15
  </Bc_Deliverydate>
16
  </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>
12
  <Bc_Deliverydate>
13
+ <active>false</active>
14
  <codePool>local</codePool>
15
  </Bc_Deliverydate>
16
  </modules>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>order_delivery_date</name>
4
- <version>0.1.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -15,9 +15,9 @@ Extension provide advance configuration for admin to decide where to capture del
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</notes>
17
  <authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
18
- <date>2014-01-11</date>
19
- <time>10:34:07</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="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="8dffb9eb280e9bd296481b1c52cecd35"/><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="f183feb12abae30c216a9b592fd67b9b"/></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.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
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</notes>
17
  <authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
18
+ <date>2014-02-13</date>
19
+ <time>09:23:38</time>
20
+ <contents><target name="mageetc"><dir name="modules"><file name="Bc_Deliverydate.xml" hash="7c3dd8ea42adb062f4aaac56d0c78550"/></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="74682746aa005bdbb4d0d54fdaef57a7"/><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="a6e7f5f5178ed57c93526438570b79a6"/><file name="deliverydate.phtml" hash="8fa6f2d1edf70b5913c46819713370bd"/><dir><dir name="email"><file name="info.phtml" hash="4a54dc7772f26d11baba7d9e55113320"/></dir><dir name="js"><file name="calendar.phtml" hash="0cf736ac3f11475c3b20ce008791ce30"/></dir><dir name="order"><file name="info.phtml" hash="d66ad7b6c47129e83fe281e9c5e980dc"/></dir><dir name="review"><file name="info.phtml" hash="f0441e7fc92ca517686fc6a818167c29"/></dir><dir name="shipping_method"><file name="available.phtml" hash="9c000ba93f6bfe6983ef7c84d524b664"/></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>