Ced_LayBuy - Version 2.1.7

Version Notes

1. New secure communication protocal,
.

Download this release

Release Info

Developer Warrin
Extension Ced_LayBuy
Version 2.1.7
Comparing to
See all releases


Code changes from version 2.1.6.1 to 2.1.7

app/code/local/Ced/LayBuy/Block/Adminhtml/Orders.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Lay-Buys
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * @category Ced
23
+ * @package Ced_LayBuy
24
+ * @author Asheesh Singh<asheeshsingh@cedcoss.com>
25
+ * @copyright Copyright LAY-BUYS (2011). (http://lay-buys.com/)
26
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
+ */
28
+ /**
29
+ * Block for LayBuy orders
30
+ */
31
+ class Ced_LayBuy_Block_Adminhtml_Orders extends Mage_Adminhtml_Block_Widget_Grid_Container
32
+ {
33
+ public function __construct() {
34
+ $this->_controller = 'adminhtml_orders';
35
+ $this->_blockGroup = 'laybuy';
36
+ $this->_headerText = Mage::helper('sales')->__('Lay-Buy Orders');
37
+ parent::__construct();
38
+ $this->_removeButton('add');
39
+ }
40
+ }
app/code/local/Ced/LayBuy/Block/Adminhtml/Orders/Grid.php ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Lay-Buys
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * @category Ced
23
+ * @package Ced_LayBuy
24
+ * @author Asheesh Singh<asheeshsingh@cedcoss.com>
25
+ * @copyright Copyright LAY-BUYS (2011). (http://lay-buys.com/)
26
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
+ */
28
+ /**
29
+ * Block for LayBuy order grid
30
+ */
31
+
32
+ class Ced_LayBuy_Block_Adminhtml_Orders_Grid extends Mage_Adminhtml_Block_Widget_Grid
33
+ {
34
+
35
+ public function __construct()
36
+ {
37
+
38
+ $this->setId('sales_laybuy_order_grid');
39
+ $this->setUseAjax(true);
40
+ $this->setDefaultSort('created_at');
41
+ $this->setDefaultDir('ASC');
42
+ $this->setSaveParametersInSession(true);
43
+ parent::__construct();
44
+ }
45
+
46
+ /**
47
+ * Retrieve collection class
48
+ *
49
+ * @return string
50
+ */
51
+ protected function _getCollectionClass()
52
+ {
53
+ return 'sales/order_grid_collection';
54
+ }
55
+
56
+ protected function _prepareCollection() {
57
+ $allIds = Mage::helper('laybuy')->getPaidOrders();
58
+ $collection = Mage::getResourceModel($this->_getCollectionClass())->addFieldToFilter('entity_id',array('in'=>$allIds));
59
+ //$collection->addFieldToFilter('total_due',array('lteq'=>0));
60
+ //echo $collection->getSelect();die;
61
+ //print_r($collection->getLastItem()->getData());die;
62
+ $this->setCollection($collection);
63
+ return parent::_prepareCollection();
64
+ }
65
+
66
+ protected function _prepareColumns()
67
+ {
68
+
69
+ $this->addColumn('real_order_id', array(
70
+ 'header'=> Mage::helper('sales')->__('Order #'),
71
+ 'width' => '80px',
72
+ 'type' => 'text',
73
+ 'index' => 'increment_id',
74
+ ));
75
+
76
+ if (!Mage::app()->isSingleStoreMode()) {
77
+ $this->addColumn('store_id', array(
78
+ 'header' => Mage::helper('sales')->__('Purchased From (Store)'),
79
+ 'index' => 'store_id',
80
+ 'type' => 'store',
81
+ 'store_view'=> true,
82
+ 'display_deleted' => true,
83
+ ));
84
+ }
85
+
86
+ $this->addColumn('created_at', array(
87
+ 'header' => Mage::helper('sales')->__('Purchased On'),
88
+ 'index' => 'created_at',
89
+ 'type' => 'datetime',
90
+ 'width' => '100px',
91
+ ));
92
+
93
+ $this->addColumn('billing_name', array(
94
+ 'header' => Mage::helper('sales')->__('Bill to Name'),
95
+ 'index' => 'billing_name',
96
+ ));
97
+
98
+ $this->addColumn('shipping_name', array(
99
+ 'header' => Mage::helper('sales')->__('Ship to Name'),
100
+ 'index' => 'shipping_name',
101
+ ));
102
+
103
+ $this->addColumn('base_grand_total', array(
104
+ 'header' => Mage::helper('sales')->__('G.T. (Base)'),
105
+ 'index' => 'base_grand_total',
106
+ 'type' => 'currency',
107
+ 'currency' => 'base_currency_code',
108
+ ));
109
+
110
+ $this->addColumn('grand_total', array(
111
+ 'header' => Mage::helper('sales')->__('G.T. (Purchased)'),
112
+ 'index' => 'grand_total',
113
+ 'type' => 'currency',
114
+ 'currency' => 'order_currency_code',
115
+ ));
116
+
117
+ $this->addColumn('status', array(
118
+ 'header' => Mage::helper('sales')->__('Status'),
119
+ 'index' => 'status',
120
+ 'type' => 'options',
121
+ 'width' => '70px',
122
+ 'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
123
+ ));
124
+
125
+ if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
126
+ $this->addColumn('action',
127
+ array(
128
+ 'header' => Mage::helper('sales')->__('Action'),
129
+ 'width' => '50px',
130
+ 'type' => 'action',
131
+ 'getter' => 'getId',
132
+ 'actions' => array(
133
+ array(
134
+ 'caption' => Mage::helper('sales')->__('View'),
135
+ 'url' => array('base'=>'adminhtml/sales_order/view'),
136
+ 'field' => 'order_id'
137
+ )
138
+ ),
139
+ 'filter' => false,
140
+ 'sortable' => false,
141
+ 'index' => 'stores',
142
+ 'is_system' => true,
143
+ ));
144
+ }
145
+
146
+ return parent::_prepareColumns();
147
+ }
148
+
149
+ public function getRowUrl($row)
150
+ {
151
+ if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
152
+ return $this->getUrl('adminhtml/sales_order/view', array('order_id' => $row->getId()));
153
+ }
154
+ return false;
155
+ }
156
+
157
+ public function getGridUrl()
158
+ {
159
+ return $this->getUrl('*/*/grid', array('_current'=>true));
160
+ }
161
+
162
+ }
app/code/local/Ced/LayBuy/Block/Adminhtml/Orders/Grid.php.bkp ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Lay-Buys
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * @category Ced
23
+ * @package Ced_LayBuy
24
+ * @author Asheesh Singh<asheeshsingh@cedcoss.com>
25
+ * @copyright Copyright LAY-BUYS (2011). (http://lay-buys.com/)
26
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
+ */
28
+ /**
29
+ * Block for LayBuy order grid
30
+ */
31
+
32
+ class Ced_LayBuy_Block_Adminhtml_Orders_Grid extends Mage_Adminhtml_Block_Widget_Grid
33
+ {
34
+
35
+ public function __construct()
36
+ {
37
+
38
+ $this->setId('sales_laybuy_order_grid');
39
+ $this->setUseAjax(true);
40
+ $this->setDefaultSort('created_at');
41
+ $this->setDefaultDir('DESC');
42
+ $this->setSaveParametersInSession(true);
43
+ parent::__construct();
44
+ }
45
+
46
+ /**
47
+ * Retrieve collection class
48
+ *
49
+ * @return string
50
+ */
51
+ protected function _getCollectionClass()
52
+ {
53
+ return 'sales/order_grid_collection';
54
+ }
55
+
56
+ protected function _prepareCollection() {
57
+ $code = Mage::getModel('laybuy/standard')->_code;
58
+ $collection = Mage::getResourceModel($this->_getCollectionClass());
59
+ $collection->join(array('payment'=>'sales/order_payment'),'main_table.entity_id=parent_id','method');
60
+ //echo $collection->getSelect();die;
61
+ //$collection->joinLeft('invoice', 'main_table.entity_id = invoice.entity_id', 'subtotal');
62
+
63
+ $collection->addFieldToFilter('method',$code);
64
+ //echo $collection->getSelect();die;
65
+ //print_r($collection->getFirstItem()->getData());die;
66
+ $this->setCollection($collection);
67
+ return $this;
68
+ }
69
+
70
+ protected function _prepareColumns()
71
+ {
72
+
73
+ $this->addColumn('real_order_id', array(
74
+ 'header'=> Mage::helper('sales')->__('Order #'),
75
+ 'width' => '80px',
76
+ 'type' => 'text',
77
+ 'index' => 'increment_id',
78
+ ));
79
+
80
+ if (!Mage::app()->isSingleStoreMode()) {
81
+ $this->addColumn('store_id', array(
82
+ 'header' => Mage::helper('sales')->__('Purchased From (Store)'),
83
+ 'index' => 'store_id',
84
+ 'type' => 'store',
85
+ 'store_view'=> true,
86
+ 'display_deleted' => true,
87
+ ));
88
+ }
89
+
90
+ $this->addColumn('created_at', array(
91
+ 'header' => Mage::helper('sales')->__('Purchased On'),
92
+ 'index' => 'created_at',
93
+ 'type' => 'datetime',
94
+ 'width' => '100px',
95
+ ));
96
+
97
+ $this->addColumn('billing_name', array(
98
+ 'header' => Mage::helper('sales')->__('Bill to Name'),
99
+ 'index' => 'billing_name',
100
+ ));
101
+
102
+ $this->addColumn('shipping_name', array(
103
+ 'header' => Mage::helper('sales')->__('Ship to Name'),
104
+ 'index' => 'shipping_name',
105
+ ));
106
+
107
+ $this->addColumn('base_grand_total', array(
108
+ 'header' => Mage::helper('sales')->__('G.T. (Base)'),
109
+ 'index' => 'base_grand_total',
110
+ 'type' => 'currency',
111
+ 'currency' => 'base_currency_code',
112
+ ));
113
+
114
+ $this->addColumn('grand_total', array(
115
+ 'header' => Mage::helper('sales')->__('G.T. (Purchased)'),
116
+ 'index' => 'grand_total',
117
+ 'type' => 'currency',
118
+ 'currency' => 'order_currency_code',
119
+ ));
120
+
121
+ $this->addColumn('status', array(
122
+ 'header' => Mage::helper('sales')->__('Status'),
123
+ 'index' => 'status',
124
+ 'type' => 'options',
125
+ 'width' => '70px',
126
+ 'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
127
+ ));
128
+
129
+ if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
130
+ $this->addColumn('action',
131
+ array(
132
+ 'header' => Mage::helper('sales')->__('Action'),
133
+ 'width' => '50px',
134
+ 'type' => 'action',
135
+ 'getter' => 'getId',
136
+ 'actions' => array(
137
+ array(
138
+ 'caption' => Mage::helper('sales')->__('View'),
139
+ 'url' => array('base'=>'*/sales_order/view'),
140
+ 'field' => 'order_id'
141
+ )
142
+ ),
143
+ 'filter' => false,
144
+ 'sortable' => false,
145
+ 'index' => 'stores',
146
+ 'is_system' => true,
147
+ ));
148
+ }
149
+
150
+ return parent::_prepareColumns();
151
+ }
152
+
153
+ public function getRowUrl($row)
154
+ {
155
+ if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
156
+ return $this->getUrl('adminhtml/sales_order/view', array('order_id' => $row->getId()));
157
+ }
158
+ return false;
159
+ }
160
+
161
+ public function getGridUrl()
162
+ {
163
+ return $this->getUrl('*/*/grid', array('_current'=>true));
164
+ }
165
+
166
+ }
app/code/local/Ced/LayBuy/Block/Adminhtml/Report.php CHANGED
@@ -1,47 +1 @@
1
- <?php
2
- /**
3
- * Lay-Buys
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-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 Ced
22
- * @package Ced_LayBuy
23
- * @author Asheesh Singh<asheeshsingh@cedcoss.com>
24
- * @copyright Copyright LAY-BUYS (2011). (http://lay-buys.com/)
25
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
- */
27
-
28
- /**
29
- * Block for LayBuy report
30
- */
31
- class Ced_LayBuy_Block_Adminhtml_Report extends Mage_Adminhtml_Block_Widget_Grid_Container
32
- {
33
- public function __construct()
34
- {
35
- $this->_controller = 'adminhtml_report';
36
- $this->_blockGroup = 'laybuy';
37
- $this->_headerText = Mage::helper('laybuy')->__('Lay-Buy Instalment Reports');
38
- parent::__construct();
39
- $this->_removeButton('add');
40
- $message = Mage::helper('laybuy')->__('Connecting to Lay-Buy server to fetch transaction updates. Are you sure you want to proceed?');
41
- $this->_addButton('fetch', array(
42
- 'label' => Mage::helper('laybuy')->__('Fetch Updates'),
43
- 'onclick' => "confirmSetLocation('{$message}', '{$this->getUrl('*/*/fetch',array('_secure' => true))}')",
44
- 'class' => 'task'
45
- ));
46
- }
47
- }
48
  * Lay-Buys
49
  *
50
  * NOTICE OF LICENSE
51
  *
52
  * This source file is subject to the Open Software License (OSL 3.0)
53
  * that is bundled with this package in the file LICENSE.txt.
54
  * It is also available through the world-wide-web at this URL:
55
  * http://opensource.org/licenses/osl-3.0.php
56
  * If you did not receive a copy of the license and are unable to
57
  * obtain it through the world-wide-web, please send an email
58
  * to license@magentocommerce.com so we can send you a copy immediately.
59
  *
60
  * DISCLAIMER
61
  *
62
  * Do not edit or add to this file if you wish to upgrade Magento to newer
63
  * versions in the future. If you wish to customize Magento for your
64
  * needs please refer to http://www.magentocommerce.com for more information.
65
  *
66
  * @category Ced
67
  * @package Ced_LayBuy
68
  * @author Asheesh Singh<asheeshsingh@cedcoss.com>
69
  * @copyright Copyright LAY-BUYS (2011). (http://lay-buys.com/)
70
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
71
  */
72
  * Block for LayBuy report
73
  */
74
  public function __construct()
75
  {
76
  $this->_controller = 'adminhtml_report';
77
  $this->_blockGroup = 'laybuy';
78
  $this->_headerText = Mage::helper('laybuy')->__('Lay-Buy Instalment Reports');
79
  parent::__construct();
80
  $message = Mage::helper('laybuy')->__('Connecting to Lay-Buy server to fetch transaction updates. Are you sure you want to proceed?');
81
  $this->_addButton('fetch', array(
82
  'label' => Mage::helper('laybuy')->__('Fetch Updates'),
83
  'onclick' => "confirmSetLocation('{$message}', '{$this->getUrl('*/*/fetch',array('_secure' => true))}')",
84
  'class' => 'task'
85
  ));
86
  }
1
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  * Lay-Buys
3
  *
4
  * NOTICE OF LICENSE
5
  *
6
  * This source file is subject to the Open Software License (OSL 3.0)
7
  * that is bundled with this package in the file LICENSE.txt.
8
  * It is also available through the world-wide-web at this URL:
9
  * http://opensource.org/licenses/osl-3.0.php
10
  * If you did not receive a copy of the license and are unable to
11
  * obtain it through the world-wide-web, please send an email
12
  * to license@magentocommerce.com so we can send you a copy immediately.
13
  *
14
  * DISCLAIMER
15
  *
16
  * Do not edit or add to this file if you wish to upgrade Magento to newer
17
  * versions in the future. If you wish to customize Magento for your
18
  * needs please refer to http://www.magentocommerce.com for more information.
19
  *
20
  * @category Ced
21
  * @package Ced_LayBuy
22
  * @author Asheesh Singh<asheeshsingh@cedcoss.com>
23
  * @copyright Copyright LAY-BUYS (2011). (http://lay-buys.com/)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
  * Block for LayBuy report
27
  */
28
  public function __construct()
29
  {
30
  $this->_controller = 'adminhtml_report';
31
  $this->_blockGroup = 'laybuy';
32
  $this->_headerText = Mage::helper('laybuy')->__('Lay-Buy Instalment Reports');
33
  parent::__construct();
34
  $message = Mage::helper('laybuy')->__('Connecting to Lay-Buy server to fetch transaction updates. Are you sure you want to proceed?');
35
  $this->_addButton('fetch', array(
36
  'label' => Mage::helper('laybuy')->__('Fetch Updates'),
37
  'onclick' => "confirmSetLocation('{$message}', '{$this->getUrl('*/*/fetch',array('_secure' => true))}')",
38
  'class' => 'task'
39
  ));
40
  }
app/code/local/Ced/LayBuy/Helper/Data.php CHANGED
@@ -286,4 +286,13 @@ class Ced_LayBuy_Helper_Data extends Mage_Core_Helper_Abstract{
286
  return false;
287
  }
288
  }
 
 
 
 
 
 
 
 
 
289
  }
286
  return false;
287
  }
288
  }
289
+
290
+ public function getPaidOrders() {
291
+ $code = Mage::getModel('laybuy/standard')->_code;
292
+ $collection = Mage::getResourceModel('sales/order_grid_collection');
293
+ $collection->join(array('payment'=>'sales/order_payment'),'main_table.entity_id=parent_id && main_table.status = "processing"','method');
294
+ $collection->join(array('order'=>'sales/order'),'payment.parent_id = order.entity_id','*');
295
+ $collection->addFieldToFilter('method',$code);
296
+ return $collection->getAllIds();
297
+ }
298
  }
app/code/local/Ced/LayBuy/controllers/Adminhtml/OrdersController.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Lay-Buys
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-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 Ced
22
+ * @package Ced_LayBuy
23
+ * @author Asheesh Singh<asheeshsingh@cedcoss.com>
24
+ * @copyright Copyright LAY-BUYS (2011). (http://lay-buys.com/)
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+
28
+ /**
29
+ * LayBuy Instalment Reports Controller
30
+ *
31
+ * @category Ced
32
+ * @package Ced_LayBuy
33
+ * @author Asheesh Singh<asheeshsingh@cedcoss.com>
34
+ */
35
+ class Ced_LayBuy_Adminhtml_OrdersController extends Mage_Adminhtml_Controller_Action
36
+ {
37
+
38
+ /**
39
+ * Grid action
40
+ */
41
+ public function indexAction() {
42
+ $this->_title($this->__('Sales'))->_title(Mage::helper('laybuy')->__('Lay-Buy Orders'));
43
+ $this->loadLayout()
44
+ ->_setActiveMenu('sales/laybuyorders')
45
+ ->_addBreadcrumb($this->__('Sales'), Mage::helper('laybuy')->__('Sales'))
46
+ ->_addBreadcrumb(Mage::helper('laybuy')->__('Lay-Buy Orders'), Mage::helper('laybuy')->__('Lay-Buy Orders'))
47
+ ->_addContent($this->getLayout()->createBlock('laybuy/adminhtml_orders'))
48
+ ->renderLayout();
49
+ }
50
+
51
+ /**
52
+ * Ajax callback for grid actions
53
+ */
54
+ public function gridAction() {
55
+ $this->loadLayout();
56
+ $this->getResponse()->setBody(
57
+ $this->getLayout()->createBlock('laybuy/adminhtml_orders_grid')->toHtml()
58
+ );
59
+ }
60
+
61
+ }
app/code/local/Ced/LayBuy/controllers/Adminhtml/ReportController.php CHANGED
@@ -338,4 +338,14 @@ class Ced_LayBuy_Adminhtml_ReportController extends Mage_Adminhtml_Controller_Ac
338
  );
339
  }
340
 
 
 
 
 
 
 
 
 
 
 
341
  }
338
  );
339
  }
340
 
341
+ public function ordersAction() {
342
+ $this->_title($this->__('Sales'))->_title(Mage::helper('laybuy')->__('Lay-Buy Orders'));
343
+ $this->loadLayout()
344
+ ->_setActiveMenu('sales/laybuyorders')
345
+ ->_addBreadcrumb($this->__('Sales'), Mage::helper('laybuy')->__('Sales'))
346
+ ->_addBreadcrumb(Mage::helper('laybuy')->__('Lay-Buy Orders'), Mage::helper('laybuy')->__('Lay-Buy Orders'))
347
+ ->_addContent($this->getLayout()->createBlock('laybuy/adminhtml_orders'))
348
+ ->renderLayout();
349
+ }
350
+
351
  }
app/code/local/Ced/LayBuy/etc/adminhtml.xml CHANGED
@@ -8,7 +8,16 @@
8
  </children>
9
  </salesroot>
10
  </children>
11
- </report>
 
 
 
 
 
 
 
 
 
12
  </menu>
13
  <acl>
14
  <resources>
8
  </children>
9
  </salesroot>
10
  </children>
11
+ </report>
12
+ <sales>
13
+ <children>
14
+ <laybuyorders module="laybuy" translate="title">
15
+ <title>Lay-Buy Orders</title>
16
+ <action>laybuy/adminhtml_orders</action>
17
+ <sort_order>20</sort_order>
18
+ </laybuyorders>
19
+ </children>
20
+ </sales>
21
  </menu>
22
  <acl>
23
  <resources>
app/design/adminhtml/default/default/template/laybuy/notification.phtml CHANGED
@@ -26,6 +26,12 @@
26
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
  */
28
  ?>
 
 
 
 
 
 
29
  <?php if(!Mage::getStoreConfig('payment/laybuy/cronenabled') && Mage::getStoreConfig('laybuy/fetch_reports/active')) { ?>
30
  <div class="notification-global">
31
  <strong class="label">Cron must be enabled for "Automated Fetch Updates".</strong>
26
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
27
  */
28
  ?>
29
+ <?php if(count(Mage::helper('laybuy')->getPaidOrders())) { ?>
30
+ <div class="notification-global">
31
+ <strong class="label">Congratulations: You have <span class="critical"><strong><?php echo count(Mage::helper('laybuy')->getPaidOrders()); ?></strong></span> full paid Lay-Buy Orders.</strong>
32
+ <a href="<?php echo Mage::helper("adminhtml")->getUrl("laybuy/adminhtml_orders/",array('_secure'=>true)); ?>">Go to Lay-Buys Orders Panel</a>.
33
+ </div>
34
+ <?php } ?>
35
  <?php if(!Mage::getStoreConfig('payment/laybuy/cronenabled') && Mage::getStoreConfig('laybuy/fetch_reports/active')) { ?>
36
  <div class="notification-global">
37
  <strong class="label">Cron must be enabled for "Automated Fetch Updates".</strong>
app/design/frontend/base/default/template/laybuy/form/extra.phtml CHANGED
@@ -66,7 +66,7 @@
66
  <li>
67
  <label for="preview-tbl1"><?php echo $this->__('Plan Preview') ?></label>
68
  <div id="preview-tbl1-wrapper" class="input-box" style="width:100% !important">
69
- <iframe src="<?php echo $this->getUrl('laybuy/standard/docalc',array('_secure'=>true)); ?>?currency=<?php echo Mage::app()->getStore()->getCurrentCurrencyCode(); ?>&amt=<?php echo $grandtotal; ?>&init=<?php if(isset($customerOptions['INIT']) && $customerOptions['INIT']){ echo $customerOptions['INIT']; } else { echo $this->getConfigData('mind'); } ?>&mnth=<?php echo $_recommendedMonth; ?>&html=1" name="preview-tbl1" id="preview-tbl1" style="width:100%; height:157px; border:0; margin:0; overflow:hidden" marginheight="0" marginwidth="0" noscroll></iframe>
70
 
71
  </div>
72
  </li>
66
  <li>
67
  <label for="preview-tbl1"><?php echo $this->__('Plan Preview') ?></label>
68
  <div id="preview-tbl1-wrapper" class="input-box" style="width:100% !important">
69
+ <iframe src="<?php echo $this->getUrl('laybuy/standard/docalc',array('_secure'=>true)); ?>?currency=<?php echo Mage::app()->getStore()->getCurrentCurrencyCode(); ?>&amt=<?php echo $grandtotal; ?>&init=<?php if(isset($customerOptions['INIT']) && $customerOptions['INIT']){ $a=$customerOptions['INIT'];$b=trim($a,"%");echo $b; } else { $c=$this->getConfigData('mind');$d=trim($c,"%");echo $d; } ?>&mnth=<?php echo $_recommendedMonth; ?>&html=1" name="preview-tbl1" id="preview-tbl1" style="width:100%; height:157px; border:0; margin:0; overflow:hidden" marginheight="0" marginwidth="0" noscroll></iframe>
70
 
71
  </div>
72
  </li>
app/design/frontend/base/default/template/laybuy/form/extra.phtml.bkp ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Lay-Buys
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-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
+ * @author Asheesh Singh<asheeshsingh@cedcoss.com>
24
+ * @copyright Copyright LAY-BUYS (2011). (http://lay-buys.com/)
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+ ?>
28
+ <?php
29
+ /**
30
+ * @see Ced_LayBuy_Block_Form_Laybuy
31
+ */
32
+ ?>
33
+ <?php $_code=$this->getMethodCode() ?>
34
+ <?php
35
+ $sessionPayment = Mage::getSingleton('checkout/session')->getQuote()->getPayment();
36
+ $customerOptions = Mage::helper('laybuy')->getInstalmentData($sessionPayment);
37
+ /* $customerOptions['INIT'] = $sessionPayment->getData('laybuy_init');
38
+ $customerOptions['MONTHS'] = $sessionPayment->getData('laybuy_months'); */
39
+
40
+ $totals = Mage::getSingleton('checkout/session')->getQuote()->getTotals();
41
+ $grandtotal = $totals["grand_total"]->getValue();
42
+ ?>
43
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
44
+ <li class="form-alt"><?php echo $this->getExtraMessage() ?></li>
45
+ <li>
46
+ <label for="<?php echo $_code ?>_init" class="required"><em>*</em><?php echo $this->__('Initial Payment') ?> : </label>
47
+ <div class="input-box">
48
+ <select onChange="document.getElementById('preview-tbl1').src = '<?php echo $this->getUrl('laybuy/standard/docalc',array('_secure'=>true)); ?>?currency=<?php echo Mage::app()->getStore()->getCurrentCurrencyCode(); ?>&amt=<?php echo $grandtotal; ?>&init='+document.getElementById('<?php echo $_code ?>_init').value+'&mnth='+document.getElementById('<?php echo $_code ?>_months').value+'&rnd='+Math.random()+'&html=1';" id="<?php echo $_code ?>_init" name="payment[laybuy_init]" title="<?php echo $this->__('Initial Payment') ?>" class="required-entry">
49
+ <?php foreach ($this->getArray('dp_amount') as $_data): ?>
50
+ <option value="<?php echo $_data['value'] ?>" <?php if(isset($customerOptions['INIT']) && $customerOptions['INIT'] && $customerOptions['INIT']==$_data['value']){ ?> selected="selected" <?php } ?>><?php echo $_data['label'] ?></option>
51
+ <?php endforeach ?>
52
+ </select>
53
+ </div>
54
+ </li>
55
+ <li>
56
+ <label for="<?php echo $_code ?>_months" class="required"><em>*</em><?php echo $this->__('Months to Pay') ?> : </label>
57
+ <div class="input-box">
58
+ <select onChange="document.getElementById('preview-tbl1').src = '<?php echo $this->getUrl('laybuy/standard/docalc',array('_secure'=>true)); ?>?currency=<?php echo Mage::app()->getStore()->getCurrentCurrencyCode(); ?>&amt=<?php echo $grandtotal; ?>&init='+document.getElementById('<?php echo $_code ?>_init').value+'&mnth='+document.getElementById('<?php echo $_code ?>_months').value+'&rnd='+Math.random()+'&html=1';" id="<?php echo $_code ?>_months" name="payment[laybuy_months]" title="<?php echo $this->__('Months to Pay') ?>" class="required-entry">
59
+ <?php $_recommendedMonth = isset($customerOptions['MONTHS']) && $customerOptions['MONTHS']?$customerOptions['MONTHS']:$this->getConfigData('months'); ?>
60
+ <?php foreach ($this->getArray('months') as $_data): ?>
61
+ <option value="<?php echo $_data['value'] ?>"<?php if($_data['value']==$_recommendedMonth): ?> selected="selected"<?php endif ?>><?php echo $_data['label'] ?></option>
62
+ <?php endforeach ?>
63
+ </select>
64
+ </div>
65
+ </li>
66
+ <li>
67
+ <label for="preview-tbl1"><?php echo $this->__('Plan Preview') ?></label>
68
+ <div id="preview-tbl1-wrapper" class="input-box" style="width:100% !important">
69
+ <iframe src="<?php echo $this->getUrl('laybuy/standard/docalc',array('_secure'=>true)); ?>?currency=<?php echo Mage::app()->getStore()->getCurrentCurrencyCode(); ?>&amt=<?php echo $grandtotal; ?>&init=<?php if(isset($customerOptions['INIT']) && $customerOptions['INIT']){ echo $customerOptions['INIT']; } else { echo $this->getConfigData('mind'); } ?>&mnth=<?php echo $_recommendedMonth; ?>&html=1" name="preview-tbl1" id="preview-tbl1" style="width:100%; height:157px; border:0; margin:0; overflow:hidden" marginheight="0" marginwidth="0" noscroll></iframe>
70
+
71
+ </div>
72
+ </li>
73
+ <li>
74
+ <label for="preview-tbl12"><?php echo $this->__('Your goods/services will be delivered once your final payment has been received.') ?></label>
75
+ </li>
76
+ </ul>
app/design/frontend/base/default/template/laybuy/form/laybuy.phtml CHANGED
@@ -31,18 +31,52 @@
31
  * @see Mage_Core_Block_Template
32
  */
33
  ?>
 
34
  <?php
35
  $storeId=Mage::app()->getStore()->getId();
36
  $adminFeeDescription = '';
37
  if(Mage::getStoreConfig('payment/laybuy/adminfee',$storeId)) {
38
  $adminFeeDescription = " A 0.9% admin fee is payable to Lay-Buys.";
39
  }
 
 
 
 
 
40
  ?>
 
41
  <link media="all" rel="stylesheet" href="<?php echo Mage::getBaseUrl('skin'); ?>frontend/base/default/css/laybuy/tooltip.css" type="text/css">
42
  <!--<script type="text/javascript" src="<?php //echo Mage::getBaseUrl('js'); ?>laybuy/jquery.min.js"></script>
43
  <script type="text/javascript" src="<?php //echo Mage::getBaseUrl('js'); ?>laybuy/jquery.atooltip.js"></script>-->
44
  <img src="<?php echo $this->escapeHtml($this->getPaymentAcceptanceMarkSrc())?>" alt="<?php echo Mage::helper('laybuy')->__('LAY-BUY') ?>" title="<?php echo $this->escapeHtml($this->getLayBuyTitle()) ?>" class="v-middle" />&nbsp;
45
- <a href="#" class="callBackTip" title="<?php echo Mage::helper('laybuy')->__('Lay-Buy is an affordable payment plan option that allows you to pay-off a product or service via one down payment, with the balance paid over 1, 2 or 3 monthly instalments. Your purchase is delivered to you after the final instalment payment is completed.'.$adminFeeDescription) ?>"><?php echo Mage::helper('laybuy')->__('What is LAY-BUY?') ?></a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  <script type="text/javscript">
47
  // initiate the plugin after DOM has loaded
48
  //var laybuy = jQuery.noConflict();
@@ -76,4 +110,4 @@
76
  });
77
 
78
  });
79
- </script>
31
  * @see Mage_Core_Block_Template
32
  */
33
  ?>
34
+
35
  <?php
36
  $storeId=Mage::app()->getStore()->getId();
37
  $adminFeeDescription = '';
38
  if(Mage::getStoreConfig('payment/laybuy/adminfee',$storeId)) {
39
  $adminFeeDescription = " A 0.9% admin fee is payable to Lay-Buys.";
40
  }
41
+ if(Mage::getStoreConfig('payment/laybuy/months',$storeId)) {
42
+ $paymentmonths=Mage::getStoreConfig('payment/laybuy/months',$storeId);
43
+ }
44
+
45
+
46
  ?>
47
+
48
  <link media="all" rel="stylesheet" href="<?php echo Mage::getBaseUrl('skin'); ?>frontend/base/default/css/laybuy/tooltip.css" type="text/css">
49
  <!--<script type="text/javascript" src="<?php //echo Mage::getBaseUrl('js'); ?>laybuy/jquery.min.js"></script>
50
  <script type="text/javascript" src="<?php //echo Mage::getBaseUrl('js'); ?>laybuy/jquery.atooltip.js"></script>-->
51
  <img src="<?php echo $this->escapeHtml($this->getPaymentAcceptanceMarkSrc())?>" alt="<?php echo Mage::helper('laybuy')->__('LAY-BUY') ?>" title="<?php echo $this->escapeHtml($this->getLayBuyTitle()) ?>" class="v-middle" />&nbsp;
52
+
53
+ <a href="#" class="callBackTip" title="<?php echo Mage::helper('laybuy')->__('Lay-Buy is an affordable payment plan option that allows you to pay-off a product or service via one down payment, with the balance paid over')?>
54
+ <?php
55
+ $secondlast=$paymentmonths-1;
56
+ for($i=1;$i<=$paymentmonths;$i++){
57
+
58
+ echo $i;
59
+ if($i==$paymentmonths){
60
+ }
61
+ else{
62
+ if($i==$secondlast){
63
+ echo " ";
64
+ }
65
+ else{
66
+ echo ",";
67
+ }
68
+
69
+ }
70
+
71
+ if($i==$secondlast){
72
+ echo "or"." ";
73
+ }
74
+
75
+ }
76
+
77
+ ?>
78
+ <?php echo Mage::helper('laybuy')->__('monthly instalments. Your purchase is delivered to you after the final instalment payment is completed.'.$adminFeeDescription) ?>">
79
+ <?php echo Mage::helper('laybuy')->__('What is LAY-BUY?') ?></a>
80
  <script type="text/javscript">
81
  // initiate the plugin after DOM has loaded
82
  //var laybuy = jQuery.noConflict();
110
  });
111
 
112
  });
113
+ </script>
app/design/frontend/base/default/template/laybuy/form/laybuy.phtml.bkp ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Lay-Buys
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-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
+ * @author Asheesh Singh<asheeshsingh@cedcoss.com>
24
+ * @copyright Copyright LAY-BUYS (2011). (http://lay-buys.com/)
25
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
+ */
27
+ ?>
28
+ <?php
29
+ /**
30
+ * @see Ced_LayBuy_Block_Form_Laybuy
31
+ * @see Mage_Core_Block_Template
32
+ */
33
+ ?>
34
+ <?php
35
+ $storeId=Mage::app()->getStore()->getId();
36
+ $adminFeeDescription = '';
37
+ if(Mage::getStoreConfig('payment/laybuy/adminfee',$storeId)) {
38
+ $adminFeeDescription = " A 0.9% admin fee is payable to Lay-Buys.";
39
+ }
40
+ ?>
41
+ <link media="all" rel="stylesheet" href="<?php echo Mage::getBaseUrl('skin'); ?>frontend/base/default/css/laybuy/tooltip.css" type="text/css">
42
+ <!--<script type="text/javascript" src="<?php //echo Mage::getBaseUrl('js'); ?>laybuy/jquery.min.js"></script>
43
+ <script type="text/javascript" src="<?php //echo Mage::getBaseUrl('js'); ?>laybuy/jquery.atooltip.js"></script>-->
44
+ <img src="<?php echo $this->escapeHtml($this->getPaymentAcceptanceMarkSrc())?>" alt="<?php echo Mage::helper('laybuy')->__('LAY-BUY') ?>" title="<?php echo $this->escapeHtml($this->getLayBuyTitle()) ?>" class="v-middle" />&nbsp;
45
+ <a href="#" class="callBackTip" title="<?php echo Mage::helper('laybuy')->__('Lay-Buy is an affordable payment plan option that allows you to pay-off a product or service via one down payment, with the balance paid over 1, 2 or 3 monthly instalments. Your purchase is delivered to you after the final instalment payment is completed.'.$adminFeeDescription) ?>"><?php echo Mage::helper('laybuy')->__('What is LAY-BUY?') ?></a>
46
+ <script type="text/javscript">
47
+ // initiate the plugin after DOM has loaded
48
+ //var laybuy = jQuery.noConflict();
49
+ var iframe = false;
50
+ laybuy(function(){
51
+ // List of all parameters and their default values:
52
+ laybuy('a.callBackTip').aToolTip({
53
+ // no need to change/override
54
+ closeTipBtn: 'aToolTipCloseBtn',
55
+ toolTipId: 'aToolTip',
56
+ // ok to override
57
+ fixed: false, // Set true to activate fixed position
58
+ clickIt: true, // set to true for click activated tooltip
59
+ inSpeed: 200, // Speed tooltip fades in
60
+ outSpeed: 100, // Speed tooltip fades out
61
+ tipContent: '<?php echo Mage::helper('laybuy')->__('Lay-Buy is an affordable payment plan option that allows you to pay-off a product or service via one down payment, with the balance paid over 1, 2 or 3 monthly instalments. Your purchase is delivered to you after the final instalment payment is completed.'.$adminFeeDescription) ?>', // Pass in content or it will use objects 'title' attribute
62
+ toolTipClass: 'defaultTheme', // Set class name for custom theme/styles
63
+ xOffset: 5, // x position
64
+ yOffset: 5, // y position
65
+ onShow: function(){}, // callback function that fires after atooltip has shown
66
+ onHide: function(){} // callback function that fires after atooltip has faded out
67
+ });
68
+
69
+ laybuy('input[name=\'shipping_method\'].radio').live('click',function(){
70
+ if(laybuy('#payment_form_laybuy')){
71
+ iframe = document.getElementById("preview-tbl1");
72
+ if(iframe){
73
+ setTimeout('laybuyReload();',500);
74
+ }
75
+ }
76
+ });
77
+
78
+ });
79
+ </script>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ced_LayBuy</name>
4
- <version>2.1.6.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -21,9 +21,9 @@ This effectively increases sales and radically improves cash flow where all the
21
  <notes>1. New secure communication protocal,&#xD;
22
  .</notes>
23
  <authors><author><name>Warrin</name><user>Warrin</user><email>warrin@lay-buys.com</email></author><author><name>Asheesh Singh</name><user>asheeshsingh</user><email>asheeshsingh@cedcoss.com</email></author></authors>
24
- <date>2014-10-27</date>
25
- <time>14:16:21</time>
26
- <contents><target name="magelocal"><dir name="Ced"><dir name="LayBuy"><dir name="Block"><dir name="Adminhtml"><file name="Docalc.php" hash="c12af05bee0d480ac49835b46ca8011e"/><dir name="Report"><dir name="Details"><file name="Form.php" hash="e0ce57d85efc14656d4294021e5f5257"/></dir><file name="Details.php" hash="c0762893abdbf1b2116fce3e53c44c6e"/><dir name="Edit"><file name="Form.php" hash="8605f9c1ad80584ca123fe7cb1404eb9"/></dir><file name="Edit.php" hash="c8ce824adb2cbea4f8d487b9618a50cb"/><file name="Grid.php" hash="66ce8aee59763c2aa430c3952c463701"/><dir name="Renderer"><file name="Email.php" hash="8e6c0938d80f629cd285303018945ea1"/><file name="Order.php" hash="51a2ba685b652f69df633ccfa4b5900a"/><file name="Record.php" hash="95eb9f836a50f3f80d254a7cdd8e1d6e"/></dir></dir><file name="Report.php" hash="addd972a4a28d141268f7cb3ad4a4ea6"/></dir><dir name="Customer"><dir name="Account"><file name="Details.php" hash="5bb9caf5b0a6e9584046f6af9ee4ae5f"/><file name="Grid.php" hash="3b170ed3f70422b3a64263535d3543e3"/></dir></dir><dir name="Form"><file name="Laybuy.php" hash="cbf8b96d0fa26d4b772bafd021e3fc83"/></dir><dir name="Info"><file name="Laybuy.php" hash="bced26100dc8bbadc334b54349734637"/></dir><dir name="Revise"><file name="Redirect.php" hash="6f63613d0fe5540a296804c14263a614"/></dir><dir name="Standard"><file name="Docalc.php" hash="42b2b63a23577c888cccc5f6c20b8867"/><file name="Redirect.php" hash="bdf403ef8c7c290ce0af83cdd172dcb7"/></dir></dir><dir name="Helper"><file name="Config.php" hash="360b6125612be9de5cd0e3b69f4422c2"/><file name="Data.php" hash="53068e682c3aa647af55870681a1102f"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Report"><file name="Collection.php" hash="a3e133f1128200662330a5e21a94c809"/></dir><file name="Report.php" hash="25568238c401ab5e5768596fb76f7ef8"/><dir name="Revise"><file name="Collection.php" hash="2a502f75e4634e4f231f93226ef49b8a"/></dir><file name="Revise.php" hash="cd1a424882417e0ec94561a8cca378e8"/><file name="Setup.php" hash="261838defadf805c7ee29768f6ea8cec"/></dir><file name="Observer.php" hash="e085e396516583f6685648f75d967a66"/><file name="Report.php" hash="8b27bd1af7e309803d1786c7ec255e54"/><file name="Revise.php" hash="b9bbea4b6760b464ec8ff66c872def7a"/><file name="Standard.php" hash="b991b733940156d1b24b6a0c813d68e0"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Cron.php" hash="955ae77c29ecbc063d8f779898d08472"/><file name="Cron.php.bkp" hash="24c8fcf93531c9877d03f2eebde2e2dd"/></dir><dir name="Source"><file name="Allowspecificcategory.php" hash="0463f2be60a2695e4f76411c979b6bc8"/><file name="Allowspecificgroup.php" hash="a27c9bf1231a59a8f38668b525c420ba"/><file name="Categories.php" hash="92c61dba3c23e7838cddbaaee8f21d05"/><file name="FetchingSchedule.php" hash="7ad862c46ec8f54299cc92ae87b61322"/><file name="FetchingSchedule.php.bkp" hash="4f3e5aec5a17991d1625d6f17c0f7d32"/><file name="Groups.php" hash="87a205676d93d59a26d1d7bb69266991"/></dir></dir></dir></dir><file name="README.txt" hash="7930d4ac1e8f9957bb2052983eab4340"/><dir name="controllers"><dir name="Adminhtml"><file name="ReportController.php" hash="fede1f1074b42ced99ec53b554b295ad"/></dir><file name="ReportController.php" hash="e2c5e9ce734b2c3320eb503e05baecae"/><file name="ReviseController.php" hash="39cf4f4031522b1cf0f623f51c186715"/><file name="StandardController.php" hash="0c4233798441091d6749766c0a894789"/></dir><dir name="etc"><file name="adminhtml.xml" hash="5bf10fdf706702d95790a1f72d94c27f"/><file name="config.xml" hash="b4989e2e7bc0e017b0202523cdc13097"/><file name="system.xml" hash="166bd65cd4f03b10cd879c5471c5ca6a"/></dir><dir name="sql"><dir name="laybuy_setup"><file name="mysql4-install-0.1.0.php" hash="68e359cd24b6051d0c2a91daad899d71"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="bec5e37090cb5a6da6c8ba3652a8bd32"/><file name="mysql4-upgrade-0.2.0-0.3.0.php" hash="97aa7a2a8c91e46c896a6d04d9554aeb"/><file name="mysql4-upgrade-0.3.0-0.4.0.php" hash="9b147158166b94d52e0cfff369ce965c"/><file name="mysql4-upgrade-0.4.0-0.5.0.php" hash="7626925b0cac03d0918eb6b1d51e6d19"/><file name="mysql4-upgrade-0.5.0-0.6.0.php" hash="bc96daed76ca1f04b1eb422508bc3a4b"/><file name="mysql4-upgrade-0.6.0-0.7.0.php" hash="6aa013f47e3b78e4d78e2cba9b471cd4"/><file name="mysql4-upgrade-0.7.0-0.8.0.php" hash="c2ea0f16c8f1e0dc7412a6a0fda1c622"/><file name="mysql4-upgrade-0.8.0-0.9.0.php" hash="d98ba6bef5f4f46ca741d5db014686f1"/><file name="mysql4-upgrade-0.9.0-1.0.0.php" hash="a20364c9f3a1b2a6a7e33a2e2f03bd60"/></dir></dir><file name="README.txt" hash="7930d4ac1e8f9957bb2052983eab4340"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="laybuy.xml" hash="963cc90317ac79c032f2530eca1813ba"/></dir><dir name="template"><dir name="laybuy"><dir name="checkout"><dir name="onepage"><dir name="review"><file name="button.phtml" hash="a1e678a76d674b223e944bdd4de0625a"/></dir></dir></dir><dir name="customer"><dir name="account"><file name="details.phtml" hash="965a58454b4b3cdcc115d78e595f7c33"/><file name="grid.phtml" hash="2dc802991a69b459f263f4e78c657549"/></dir></dir><dir name="form"><file name="extra.phtml" hash="e089ba0a3bd4ff1c0bc631c88ba32dd2"/><file name="laybuy.phtml" hash="a1c8dc8ff7ebd565d0100785ad089f64"/></dir><dir name="info"><file name="default.phtml" hash="b0bdfa731e4410c99a79c3b5b0a86cff"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="laybuy.xml" hash="b60d76e466dac9154654041350d5e829"/></dir><dir name="template"><dir name="laybuy"><dir name="info"><file name="default.phtml" hash="a9dfb322a83df7bc53bb2a64c6f192e3"/><dir name="pdf"><file name="laybuy.phtml" hash="e96cab97e4bd4ca32a022e90d5449eae"/></dir></dir><file name="notification.phtml" hash="87dfcd44b9900cef1a665b3debf22f96"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ced_LayBuy.xml" hash="394d4e115e1955ba12681f6a81cb118d"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Ced_LayBuy.csv" hash="f79a1a6ca61c5e7a7463c380eb00896d"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="laybuy"><file name="tooltip.css" hash="ece078bf3d8bb27db4a616fdad505671"/></dir></dir><dir name="images"><dir name="laybuy"><file name="closeBtn.png" hash="b0be9d9ef1053c79b0ebdcef83b53f44"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="laybuy"><file name="jquery.atooltip.js" hash="5ad78b7e8ac539053ff56a2ea25e4d4c"/><file name="jquery.min.js" hash="41ab3fafa358a66f764b91d072f16615"/></dir></dir></target></contents>
27
  <compatible/>
28
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
29
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ced_LayBuy</name>
4
+ <version>2.1.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
21
  <notes>1. New secure communication protocal,&#xD;
22
  .</notes>
23
  <authors><author><name>Warrin</name><user>Warrin</user><email>warrin@lay-buys.com</email></author><author><name>Asheesh Singh</name><user>asheeshsingh</user><email>asheeshsingh@cedcoss.com</email></author></authors>
24
+ <date>2014-10-29</date>
25
+ <time>14:12:34</time>
26
+ <contents><target name="magelocal"><dir name="Ced"><dir name="LayBuy"><dir name="Block"><dir name="Adminhtml"><file name="Docalc.php" hash="c12af05bee0d480ac49835b46ca8011e"/><dir name="Orders"><file name="Grid.php" hash="2fa09fb211cec09bc5eb895ea3ea6911"/><file name="Grid.php.bkp" hash="b37908e3e7f57787c4b3d441be869ba9"/></dir><file name="Orders.php" hash="aa89abe43868eedab8cb195b5dcbe77f"/><dir name="Report"><dir name="Details"><file name="Form.php" hash="e0ce57d85efc14656d4294021e5f5257"/></dir><file name="Details.php" hash="c0762893abdbf1b2116fce3e53c44c6e"/><dir name="Edit"><file name="Form.php" hash="8605f9c1ad80584ca123fe7cb1404eb9"/></dir><file name="Edit.php" hash="c8ce824adb2cbea4f8d487b9618a50cb"/><file name="Grid.php" hash="66ce8aee59763c2aa430c3952c463701"/><dir name="Renderer"><file name="Email.php" hash="8e6c0938d80f629cd285303018945ea1"/><file name="Order.php" hash="51a2ba685b652f69df633ccfa4b5900a"/><file name="Record.php" hash="95eb9f836a50f3f80d254a7cdd8e1d6e"/></dir></dir><file name="Report.php" hash="ff77fef080779db3a699cdb8a4703c49"/></dir><dir name="Customer"><dir name="Account"><file name="Details.php" hash="5bb9caf5b0a6e9584046f6af9ee4ae5f"/><file name="Grid.php" hash="3b170ed3f70422b3a64263535d3543e3"/></dir></dir><dir name="Form"><file name="Laybuy.php" hash="cbf8b96d0fa26d4b772bafd021e3fc83"/></dir><dir name="Info"><file name="Laybuy.php" hash="bced26100dc8bbadc334b54349734637"/></dir><dir name="Revise"><file name="Redirect.php" hash="6f63613d0fe5540a296804c14263a614"/></dir><dir name="Standard"><file name="Docalc.php" hash="42b2b63a23577c888cccc5f6c20b8867"/><file name="Redirect.php" hash="bdf403ef8c7c290ce0af83cdd172dcb7"/></dir></dir><dir name="Helper"><file name="Config.php" hash="360b6125612be9de5cd0e3b69f4422c2"/><file name="Data.php" hash="bdf0a8ac89eb925d68bacf13ac3c9ce8"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Report"><file name="Collection.php" hash="a3e133f1128200662330a5e21a94c809"/></dir><file name="Report.php" hash="25568238c401ab5e5768596fb76f7ef8"/><dir name="Revise"><file name="Collection.php" hash="2a502f75e4634e4f231f93226ef49b8a"/></dir><file name="Revise.php" hash="cd1a424882417e0ec94561a8cca378e8"/><file name="Setup.php" hash="261838defadf805c7ee29768f6ea8cec"/></dir><file name="Observer.php" hash="e085e396516583f6685648f75d967a66"/><file name="Report.php" hash="8b27bd1af7e309803d1786c7ec255e54"/><file name="Revise.php" hash="b9bbea4b6760b464ec8ff66c872def7a"/><file name="Standard.php" hash="b991b733940156d1b24b6a0c813d68e0"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Cron.php" hash="955ae77c29ecbc063d8f779898d08472"/><file name="Cron.php.bkp" hash="24c8fcf93531c9877d03f2eebde2e2dd"/></dir><dir name="Source"><file name="Allowspecificcategory.php" hash="0463f2be60a2695e4f76411c979b6bc8"/><file name="Allowspecificgroup.php" hash="a27c9bf1231a59a8f38668b525c420ba"/><file name="Categories.php" hash="92c61dba3c23e7838cddbaaee8f21d05"/><file name="FetchingSchedule.php" hash="7ad862c46ec8f54299cc92ae87b61322"/><file name="FetchingSchedule.php.bkp" hash="4f3e5aec5a17991d1625d6f17c0f7d32"/><file name="Groups.php" hash="87a205676d93d59a26d1d7bb69266991"/></dir></dir></dir></dir><file name="README.txt" hash="7930d4ac1e8f9957bb2052983eab4340"/><dir name="controllers"><dir name="Adminhtml"><file name="OrdersController.php" hash="b439600c08514fb9ada1ae0e75272e21"/><file name="ReportController.php" hash="b28c6c7efa0cf28670f1710cc1a723f9"/></dir><file name="ReportController.php" hash="e2c5e9ce734b2c3320eb503e05baecae"/><file name="ReviseController.php" hash="39cf4f4031522b1cf0f623f51c186715"/><file name="StandardController.php" hash="0c4233798441091d6749766c0a894789"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6bc550c65f0f65b11d6dbb38aafcb63d"/><file name="config.xml" hash="b4989e2e7bc0e017b0202523cdc13097"/><file name="system.xml" hash="166bd65cd4f03b10cd879c5471c5ca6a"/></dir><dir name="sql"><dir name="laybuy_setup"><file name="mysql4-install-0.1.0.php" hash="68e359cd24b6051d0c2a91daad899d71"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="bec5e37090cb5a6da6c8ba3652a8bd32"/><file name="mysql4-upgrade-0.2.0-0.3.0.php" hash="97aa7a2a8c91e46c896a6d04d9554aeb"/><file name="mysql4-upgrade-0.3.0-0.4.0.php" hash="9b147158166b94d52e0cfff369ce965c"/><file name="mysql4-upgrade-0.4.0-0.5.0.php" hash="7626925b0cac03d0918eb6b1d51e6d19"/><file name="mysql4-upgrade-0.5.0-0.6.0.php" hash="bc96daed76ca1f04b1eb422508bc3a4b"/><file name="mysql4-upgrade-0.6.0-0.7.0.php" hash="6aa013f47e3b78e4d78e2cba9b471cd4"/><file name="mysql4-upgrade-0.7.0-0.8.0.php" hash="c2ea0f16c8f1e0dc7412a6a0fda1c622"/><file name="mysql4-upgrade-0.8.0-0.9.0.php" hash="d98ba6bef5f4f46ca741d5db014686f1"/><file name="mysql4-upgrade-0.9.0-1.0.0.php" hash="a20364c9f3a1b2a6a7e33a2e2f03bd60"/></dir></dir><file name="README.txt" hash="7930d4ac1e8f9957bb2052983eab4340"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="laybuy.xml" hash="963cc90317ac79c032f2530eca1813ba"/></dir><dir name="template"><dir name="laybuy"><dir name="checkout"><dir name="onepage"><dir name="review"><file name="button.phtml" hash="a1e678a76d674b223e944bdd4de0625a"/></dir></dir></dir><dir name="customer"><dir name="account"><file name="details.phtml" hash="965a58454b4b3cdcc115d78e595f7c33"/><file name="grid.phtml" hash="2dc802991a69b459f263f4e78c657549"/></dir></dir><dir name="form"><file name="extra.phtml" hash="535609083ce3e06706ec30766b354d8a"/><file name="extra.phtml.bkp" hash="e089ba0a3bd4ff1c0bc631c88ba32dd2"/><file name="laybuy.phtml" hash="551ef401641d7d62c8d821279b13d72e"/><file name="laybuy.phtml.bkp" hash="a1c8dc8ff7ebd565d0100785ad089f64"/></dir><dir name="info"><file name="default.phtml" hash="b0bdfa731e4410c99a79c3b5b0a86cff"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="laybuy.xml" hash="b60d76e466dac9154654041350d5e829"/></dir><dir name="template"><dir name="laybuy"><dir name="info"><file name="default.phtml" hash="a9dfb322a83df7bc53bb2a64c6f192e3"/><dir name="pdf"><file name="laybuy.phtml" hash="e96cab97e4bd4ca32a022e90d5449eae"/></dir></dir><file name="notification.phtml" hash="efb99f36ea192d6bc8c60d53dec8a6e1"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ced_LayBuy.xml" hash="394d4e115e1955ba12681f6a81cb118d"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Ced_LayBuy.csv" hash="f79a1a6ca61c5e7a7463c380eb00896d"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="laybuy"><file name="tooltip.css" hash="ece078bf3d8bb27db4a616fdad505671"/></dir></dir><dir name="images"><dir name="laybuy"><file name="closeBtn.png" hash="b0be9d9ef1053c79b0ebdcef83b53f44"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="laybuy"><file name="jquery.atooltip.js" hash="5ad78b7e8ac539053ff56a2ea25e4d4c"/><file name="jquery.min.js" hash="41ab3fafa358a66f764b91d072f16615"/></dir></dir></target></contents>
27
  <compatible/>
28
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
29
  </package>