Version Notes
1. New secure communication protocal,
.
Download this release
Release Info
| Developer | Warrin |
| Extension | Ced_LayBuy |
| Version | 2.1.6.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.1.6 to 2.1.6.1
- app/code/local/Ced/LayBuy/Block/Adminhtml/Report/Edit/Form.php +19 -10
- app/code/local/Ced/LayBuy/Block/Info/Laybuy.php +12 -0
- app/code/local/Ced/LayBuy/Helper/Data.php +9 -12
- app/code/local/Ced/LayBuy/Model/Observer.php +2 -1
- app/code/local/Ced/LayBuy/Model/Report.php +5 -4
- app/code/local/Ced/LayBuy/Model/Revise.php +1 -0
- app/code/local/Ced/LayBuy/Model/Standard.php +2 -1
- app/code/local/Ced/LayBuy/Model/System/Config/Backend/Cron.php +15 -4
- app/code/local/Ced/LayBuy/Model/System/Config/Backend/Cron.php.bkp +54 -0
- app/code/local/Ced/LayBuy/Model/System/Config/Source/FetchingSchedule.php +4 -6
- app/code/local/Ced/LayBuy/Model/System/Config/Source/FetchingSchedule.php.bkp +46 -0
- app/code/local/Ced/LayBuy/controllers/ReviseController.php +8 -14
- app/code/local/Ced/LayBuy/etc/config.xml +9 -5
- app/code/local/Ced/LayBuy/etc/system.xml +1 -1
- app/design/adminhtml/default/default/template/laybuy/info/pdf/laybuy.phtml +45 -0
- app/design/frontend/base/default/template/laybuy/form/laybuy.phtml +1 -0
- app/design/frontend/base/default/template/laybuy/info/default.phtml +5 -3
- package.xml +4 -4
app/code/local/Ced/LayBuy/Block/Adminhtml/Report/Edit/Form.php
CHANGED
|
@@ -52,8 +52,9 @@ class Ced_LayBuy_Block_Adminhtml_Report_Edit_Form extends Mage_Adminhtml_Block_W
|
|
| 52 |
$model = $revised;
|
| 53 |
$newAmount = $model->getData('amount');
|
| 54 |
$isRevised = $model->getId();
|
| 55 |
-
}
|
| 56 |
}
|
|
|
|
| 57 |
/* print_r($model->getData());die; */
|
| 58 |
/* @var $model Mage_Paypal_Model_Report_Settlement_Row */
|
| 59 |
$settlement = Mage::getSingleton('laybuy/report');
|
|
@@ -61,7 +62,8 @@ class Ced_LayBuy_Block_Adminhtml_Report_Edit_Form extends Mage_Adminhtml_Block_W
|
|
| 61 |
$order_id = $model->getData('order_id');
|
| 62 |
$order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
|
| 63 |
$storeId = $order->getStoreId();
|
| 64 |
-
|
|
|
|
| 65 |
$fieldsets = array(
|
| 66 |
'reference_fieldset' => array(
|
| 67 |
'fields' => array(
|
|
@@ -117,6 +119,7 @@ class Ced_LayBuy_Block_Adminhtml_Report_Edit_Form extends Mage_Adminhtml_Block_W
|
|
| 117 |
'value' => 1,
|
| 118 |
'type' => 'radio',
|
| 119 |
'onclick'=> 'methodChange(1)',
|
|
|
|
| 120 |
!$isRevised || ($isRevised && $model->getPaymentType())?'checked':'' => !$isRevised || ($isRevised && $model->getPaymentType())?'checked':'',
|
| 121 |
'after_element_html' => '<label for="lay-buy" class="inline">Lay-Buy</label>',
|
| 122 |
),
|
|
@@ -275,7 +278,7 @@ class Ced_LayBuy_Block_Adminhtml_Report_Edit_Form extends Mage_Adminhtml_Block_W
|
|
| 275 |
'value' => isset($info['value']) ? $info['value'] : $model->getData($id),
|
| 276 |
'after_element_html' => isset($info['after_element_html']) ? $info['after_element_html'] : '',
|
| 277 |
isset($info['readonly'])?'readonly':'' => isset($info['readonly'])?$info['readonly']:false,
|
| 278 |
-
($isRevised && !isset($info['readonly']) && $info['type'] != 'hidden')? 'disabled':'' => ($isRevised && !$info['readonly'] && $info['type'] != 'hidden')?true:false,
|
| 279 |
isset($info['values'])?'values':'' => isset($info['values'])?$info['values']:'',
|
| 280 |
isset($info['onchange'])?'onchange':'' => isset($info['onchange'])?$info['onchange']:'',
|
| 281 |
isset($info['onclick'])?'onclick':'' => isset($info['onclick'])?$info['onclick']:'',
|
|
@@ -284,16 +287,22 @@ class Ced_LayBuy_Block_Adminhtml_Report_Edit_Form extends Mage_Adminhtml_Block_W
|
|
| 284 |
|
| 285 |
}
|
| 286 |
if(isset($info['dy']) && isset($info['onchange']) && $function = $info['onchange']){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
$id->setAfterElementHtml(
|
| 288 |
'<script type="text/javascript">
|
| 289 |
function '.$function.'{
|
| 290 |
-
|
| 291 |
-
document.getElementById("loading-mask").show();
|
| 292 |
-
var f = document.getElementById("preview-tbl");
|
| 293 |
-
f.src = "'.$calcUrl.'?currency="+document.laybuy_revise_plan.currency.value+"&amt="+document.laybuy_revise_plan.amount.value+"&init="+document.laybuy_revise_plan.dp_amount.value+"&mnth="+document.laybuy_revise_plan.months.value+"&rnd="+Math.random()+"&html=1";
|
| 294 |
-
|
| 295 |
-
data = "'.$calcUrl.'?currency="+document.laybuy_revise_plan.currency.value+"&amt="+document.laybuy_revise_plan.amount.value+"&init="+document.laybuy_revise_plan.dp_amount.value+"&mnth="+document.laybuy_revise_plan.months.value+"&rnd="+Math.random();
|
| 296 |
-
loadXMLDoc(data);
|
| 297 |
}
|
| 298 |
setTimeout("'.$function.';",200);
|
| 299 |
function loadXMLDoc(url)
|
| 52 |
$model = $revised;
|
| 53 |
$newAmount = $model->getData('amount');
|
| 54 |
$isRevised = $model->getId();
|
| 55 |
+
}
|
| 56 |
}
|
| 57 |
+
|
| 58 |
/* print_r($model->getData());die; */
|
| 59 |
/* @var $model Mage_Paypal_Model_Report_Settlement_Row */
|
| 60 |
$settlement = Mage::getSingleton('laybuy/report');
|
| 62 |
$order_id = $model->getData('order_id');
|
| 63 |
$order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
|
| 64 |
$storeId = $order->getStoreId();
|
| 65 |
+
//($isRevised && !$model->getPaymentType())?'checked':'' => ($isRevised && !$model->getPaymentType())?'checked':''
|
| 66 |
+
|
| 67 |
$fieldsets = array(
|
| 68 |
'reference_fieldset' => array(
|
| 69 |
'fields' => array(
|
| 119 |
'value' => 1,
|
| 120 |
'type' => 'radio',
|
| 121 |
'onclick'=> 'methodChange(1)',
|
| 122 |
+
|
| 123 |
!$isRevised || ($isRevised && $model->getPaymentType())?'checked':'' => !$isRevised || ($isRevised && $model->getPaymentType())?'checked':'',
|
| 124 |
'after_element_html' => '<label for="lay-buy" class="inline">Lay-Buy</label>',
|
| 125 |
),
|
| 278 |
'value' => isset($info['value']) ? $info['value'] : $model->getData($id),
|
| 279 |
'after_element_html' => isset($info['after_element_html']) ? $info['after_element_html'] : '',
|
| 280 |
isset($info['readonly'])?'readonly':'' => isset($info['readonly'])?$info['readonly']:false,
|
| 281 |
+
($isRevised && !isset($info['readonly']) && $info['type'] != 'hidden')? 'disabled':'' => ($isRevised && !$info['readonly'] && $info['type'] != 'hidden')?true:false,
|
| 282 |
isset($info['values'])?'values':'' => isset($info['values'])?$info['values']:'',
|
| 283 |
isset($info['onchange'])?'onchange':'' => isset($info['onchange'])?$info['onchange']:'',
|
| 284 |
isset($info['onclick'])?'onclick':'' => isset($info['onclick'])?$info['onclick']:'',
|
| 287 |
|
| 288 |
}
|
| 289 |
if(isset($info['dy']) && isset($info['onchange']) && $function = $info['onchange']){
|
| 290 |
+
|
| 291 |
+
if ($isRevised && !$model->getPaymentType()) {
|
| 292 |
+
$funtionData = 'methodChange(0);document.getElementById("buy-now").checked = true;';
|
| 293 |
+
} else {
|
| 294 |
+
$funtionData = 'document.getElementById("lay-buy").checked = true;
|
| 295 |
+
document.getElementById("loading-mask").show();
|
| 296 |
+
var f = document.getElementById("preview-tbl");
|
| 297 |
+
f.src = "'.$calcUrl.'?currency="+document.laybuy_revise_plan.currency.value+"&amt="+document.laybuy_revise_plan.amount.value+"&init="+document.laybuy_revise_plan.dp_amount.value+"&mnth="+document.laybuy_revise_plan.months.value+"&rnd="+Math.random()+"&html=1";
|
| 298 |
+
|
| 299 |
+
data = "'.$calcUrl.'?currency="+document.laybuy_revise_plan.currency.value+"&amt="+document.laybuy_revise_plan.amount.value+"&init="+document.laybuy_revise_plan.dp_amount.value+"&mnth="+document.laybuy_revise_plan.months.value+"&rnd="+Math.random();
|
| 300 |
+
loadXMLDoc(data);';
|
| 301 |
+
}
|
| 302 |
$id->setAfterElementHtml(
|
| 303 |
'<script type="text/javascript">
|
| 304 |
function '.$function.'{
|
| 305 |
+
'.$funtionData.'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 306 |
}
|
| 307 |
setTimeout("'.$function.';",200);
|
| 308 |
function loadXMLDoc(url)
|
app/code/local/Ced/LayBuy/Block/Info/Laybuy.php
CHANGED
|
@@ -44,6 +44,18 @@ class Ced_LayBuy_Block_Info_Laybuy extends Mage_Payment_Block_Info
|
|
| 44 |
parent::_construct();
|
| 45 |
$this->setTemplate('laybuy/info/default.phtml');
|
| 46 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
/**
|
| 49 |
* Prepare information specific to current payment method
|
| 44 |
parent::_construct();
|
| 45 |
$this->setTemplate('laybuy/info/default.phtml');
|
| 46 |
}
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* Prepare information specific to current payment method
|
| 50 |
+
*
|
| 51 |
+
* @param Varien_Object|array $transport
|
| 52 |
+
* @return Varien_Object
|
| 53 |
+
*/
|
| 54 |
+
public function toPdf()
|
| 55 |
+
{
|
| 56 |
+
$this->setTemplate('laybuy/info/pdf/laybuy.phtml');
|
| 57 |
+
return $this->toHtml();
|
| 58 |
+
}
|
| 59 |
|
| 60 |
/**
|
| 61 |
* Prepare information specific to current payment method
|
app/code/local/Ced/LayBuy/Helper/Data.php
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
-
<?php
|
|
|
|
| 2 |
/**
|
| 3 |
* Lay-Buys
|
| 4 |
*
|
|
@@ -93,11 +94,8 @@ class Ced_LayBuy_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
| 93 |
$data .= "mid=".$config['username']."&";
|
| 94 |
/* $data .= "custom=".$orderIds."&"; */
|
| 95 |
$data .= "profileIds=".$profileIds;
|
| 96 |
-
$data .= "&showall=1";
|
| 97 |
$ch = curl_init();
|
| 98 |
curl_setopt($ch, CURLOPT_URL,$url);
|
| 99 |
-
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
| 100 |
-
curl_setopt($ch, CURLOPT_USERPWD, "laybuy:cedcoss123");
|
| 101 |
curl_setopt($ch, CURLOPT_POST, 1);
|
| 102 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
| 103 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); /* use this to suppress output */
|
|
@@ -165,15 +163,11 @@ class Ced_LayBuy_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
| 165 |
return true;
|
| 166 |
Mage::log('cancel paypal profile called',null,'laybuy_success.log');
|
| 167 |
$url = 'https://lay-buys.com/vtmob/deal5cancel.php';
|
| 168 |
-
/* $url = 'http://192.168.1.101/ced/index.php/vtmob/deal5cancel.php';
|
| 169 |
-
$url = 'http://www.lay-buys.com.au/ced/index.php/vtmob/deal5cancel.php'; */
|
| 170 |
$data ='';
|
| 171 |
$data .= "&mid=".Mage::getStoreConfig('payment/laybuy/membership_number',$storeId);
|
| 172 |
$data .= "&paypal_profile_id=".$paypalProfileId;
|
| 173 |
$ch = curl_init();
|
| 174 |
curl_setopt($ch, CURLOPT_URL,$url);
|
| 175 |
-
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
| 176 |
-
curl_setopt($ch, CURLOPT_USERPWD, "laybuy:cedcoss123");
|
| 177 |
curl_setopt($ch, CURLOPT_POST, 1);
|
| 178 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
| 179 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); /* use this to suppress output */
|
|
@@ -243,8 +237,6 @@ class Ced_LayBuy_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
| 243 |
$storeId = $revise->getStoreId();
|
| 244 |
|
| 245 |
$url = 'https://lay-buys.com/vtmob/deal5.php';
|
| 246 |
-
/* $url = 'http://192.168.1.101/ced/index.php/vtmob/deal5.php';
|
| 247 |
-
$url = 'http://www.lay-buys.com.au/ced/index.php/vtmob/deal5.php'; */
|
| 248 |
$data ='';
|
| 249 |
$data .= "eml=".$revise->getEmail();
|
| 250 |
$data .= "&prc=".$revise->getAmount();
|
|
@@ -265,12 +257,17 @@ class Ced_LayBuy_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
| 265 |
$data .= "&id=".$revise->getId()."-".$revise->getOrderId();
|
| 266 |
$data .="&CANCELURL=".Mage::getUrl('laybuy/revise/cancel/',array('_secure'=>true));
|
| 267 |
$data .="&RETURNURL=".Mage::getUrl('laybuy/revise/success/',array('_secure'=>true));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 268 |
/* $arr = explode('&',$data);
|
| 269 |
print_r($arr);die; */
|
| 270 |
$ch = curl_init();
|
| 271 |
curl_setopt($ch, CURLOPT_URL,$url);
|
| 272 |
-
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
| 273 |
-
curl_setopt($ch, CURLOPT_USERPWD, "laybuy:cedcoss123");
|
| 274 |
curl_setopt($ch, CURLOPT_POST, 1);
|
| 275 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
| 276 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); /* use this to suppress output */
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
/**
|
| 4 |
* Lay-Buys
|
| 5 |
*
|
| 94 |
$data .= "mid=".$config['username']."&";
|
| 95 |
/* $data .= "custom=".$orderIds."&"; */
|
| 96 |
$data .= "profileIds=".$profileIds;
|
|
|
|
| 97 |
$ch = curl_init();
|
| 98 |
curl_setopt($ch, CURLOPT_URL,$url);
|
|
|
|
|
|
|
| 99 |
curl_setopt($ch, CURLOPT_POST, 1);
|
| 100 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
| 101 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); /* use this to suppress output */
|
| 163 |
return true;
|
| 164 |
Mage::log('cancel paypal profile called',null,'laybuy_success.log');
|
| 165 |
$url = 'https://lay-buys.com/vtmob/deal5cancel.php';
|
|
|
|
|
|
|
| 166 |
$data ='';
|
| 167 |
$data .= "&mid=".Mage::getStoreConfig('payment/laybuy/membership_number',$storeId);
|
| 168 |
$data .= "&paypal_profile_id=".$paypalProfileId;
|
| 169 |
$ch = curl_init();
|
| 170 |
curl_setopt($ch, CURLOPT_URL,$url);
|
|
|
|
|
|
|
| 171 |
curl_setopt($ch, CURLOPT_POST, 1);
|
| 172 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
| 173 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); /* use this to suppress output */
|
| 237 |
$storeId = $revise->getStoreId();
|
| 238 |
|
| 239 |
$url = 'https://lay-buys.com/vtmob/deal5.php';
|
|
|
|
|
|
|
| 240 |
$data ='';
|
| 241 |
$data .= "eml=".$revise->getEmail();
|
| 242 |
$data .= "&prc=".$revise->getAmount();
|
| 257 |
$data .= "&id=".$revise->getId()."-".$revise->getOrderId();
|
| 258 |
$data .="&CANCELURL=".Mage::getUrl('laybuy/revise/cancel/',array('_secure'=>true));
|
| 259 |
$data .="&RETURNURL=".Mage::getUrl('laybuy/revise/success/',array('_secure'=>true));
|
| 260 |
+
$IMAGE = Mage::getStoreConfig('payment/laybuy/image',$storeId);
|
| 261 |
+
if($IMAGE){
|
| 262 |
+
$IMAGE = Mage::getBaseUrl('media')."laybuy/".$IMAGE;
|
| 263 |
+
}else{
|
| 264 |
+
$IMAGE = 'http://lay-buys.com/lb2.jpg';
|
| 265 |
+
}
|
| 266 |
+
$data .="&IMAGE=".$IMAGE;
|
| 267 |
/* $arr = explode('&',$data);
|
| 268 |
print_r($arr);die; */
|
| 269 |
$ch = curl_init();
|
| 270 |
curl_setopt($ch, CURLOPT_URL,$url);
|
|
|
|
|
|
|
| 271 |
curl_setopt($ch, CURLOPT_POST, 1);
|
| 272 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
| 273 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); /* use this to suppress output */
|
app/code/local/Ced/LayBuy/Model/Observer.php
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
-
<?php
|
|
|
|
| 2 |
/**
|
| 3 |
* Lay-Buys
|
| 4 |
*
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
/**
|
| 4 |
* Lay-Buys
|
| 5 |
*
|
app/code/local/Ced/LayBuy/Model/Report.php
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
-
<?php
|
|
|
|
| 2 |
/**
|
| 3 |
* Lay-Buys
|
| 4 |
*
|
|
@@ -126,10 +127,10 @@ class Ced_LayBuy_Model_Report extends Mage_Core_Model_Abstract
|
|
| 126 |
}
|
| 127 |
|
| 128 |
}
|
| 129 |
-
if($pending_flag)
|
| 130 |
$startIndex = $month+1;
|
| 131 |
-
else
|
| 132 |
-
$startIndex = $month+2;
|
| 133 |
if($month<$months){
|
| 134 |
for($month=$startIndex;$month<=$months;$month++){
|
| 135 |
$newStr .= '<tr ';
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
/**
|
| 4 |
* Lay-Buys
|
| 5 |
*
|
| 127 |
}
|
| 128 |
|
| 129 |
}
|
| 130 |
+
//if($pending_flag)
|
| 131 |
$startIndex = $month+1;
|
| 132 |
+
// else
|
| 133 |
+
// $startIndex = $month+2;
|
| 134 |
if($month<$months){
|
| 135 |
for($month=$startIndex;$month<=$months;$month++){
|
| 136 |
$newStr .= '<tr ';
|
app/code/local/Ced/LayBuy/Model/Revise.php
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
<?php
|
|
|
|
| 2 |
/**
|
| 3 |
* Lay-Buys
|
| 4 |
*
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
/**
|
| 4 |
* Lay-Buys
|
| 5 |
*
|
app/code/local/Ced/LayBuy/Model/Standard.php
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
-
<?php
|
|
|
|
| 2 |
/**
|
| 3 |
* Lay-Buys
|
| 4 |
*
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
/**
|
| 4 |
* Lay-Buys
|
| 5 |
*
|
app/code/local/Ced/LayBuy/Model/System/Config/Backend/Cron.php
CHANGED
|
@@ -40,15 +40,26 @@ class Ced_LayBuy_Model_System_Config_Backend_Cron extends Mage_Core_Model_Config
|
|
| 40 |
$time = explode(',', Mage::getModel('core/config_data')->load('laybuy/fetch_reports/time', 'path')->getValue());
|
| 41 |
if (Mage::getModel('core/config_data')->load('laybuy/fetch_reports/active', 'path')->getValue()) {
|
| 42 |
$interval = Mage::getModel('core/config_data')->load(self::CRON_MODEL_PATH_INTERVAL, 'path')->getValue();
|
| 43 |
-
$cronExprString =
|
| 44 |
}
|
| 45 |
-
|
| 46 |
Mage::getModel('core/config_data')
|
| 47 |
-
->load(
|
| 48 |
->setValue($cronExprString)
|
| 49 |
-
->setPath(
|
| 50 |
->save();
|
| 51 |
|
| 52 |
return parent::_afterSave();
|
| 53 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
}
|
| 40 |
$time = explode(',', Mage::getModel('core/config_data')->load('laybuy/fetch_reports/time', 'path')->getValue());
|
| 41 |
if (Mage::getModel('core/config_data')->load('laybuy/fetch_reports/active', 'path')->getValue()) {
|
| 42 |
$interval = Mage::getModel('core/config_data')->load(self::CRON_MODEL_PATH_INTERVAL, 'path')->getValue();
|
| 43 |
+
$cronExprString = $this->getSchedule($time,$interval);
|
| 44 |
}
|
| 45 |
+
|
| 46 |
Mage::getModel('core/config_data')
|
| 47 |
+
->load(self::CRON_STRING_PATH, 'path')
|
| 48 |
->setValue($cronExprString)
|
| 49 |
+
->setPath(self::CRON_STRING_PATH)
|
| 50 |
->save();
|
| 51 |
|
| 52 |
return parent::_afterSave();
|
| 53 |
}
|
| 54 |
+
|
| 55 |
+
protected function getSchedule($time=array(),$interval)
|
| 56 |
+
{
|
| 57 |
+
switch ($interval) {
|
| 58 |
+
case 2: return "{$time[1]} {$time[0]} */2 * *"; break;
|
| 59 |
+
case 7: return "{$time[1]} {$time[0]} * * 0"; break;
|
| 60 |
+
case 30: return "{$time[1]} {$time[0]} 1 * *"; break;
|
| 61 |
+
case 1:
|
| 62 |
+
default : return "{$time[1]} {$time[0]} * * *"; break;
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
}
|
app/code/local/Ced/LayBuy/Model/System/Config/Backend/Cron.php.bkp
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
class Ced_LayBuy_Model_System_Config_Backend_Cron extends Mage_Core_Model_Config_Data
|
| 29 |
+
{
|
| 30 |
+
const CRON_STRING_PATH = 'crontab/jobs/LayBuy_Automated_Fetch_Updates/schedule/cron_expr';
|
| 31 |
+
const CRON_MODEL_PATH_INTERVAL = 'laybuy/fetch_reports/schedule';
|
| 32 |
+
|
| 33 |
+
/**
|
| 34 |
+
* Cron settings after save
|
| 35 |
+
* @return void
|
| 36 |
+
*/
|
| 37 |
+
protected function _afterSave()
|
| 38 |
+
{
|
| 39 |
+
$cronExprString = '';
|
| 40 |
+
$time = explode(',', Mage::getModel('core/config_data')->load('laybuy/fetch_reports/time', 'path')->getValue());
|
| 41 |
+
if (Mage::getModel('core/config_data')->load('laybuy/fetch_reports/active', 'path')->getValue()) {
|
| 42 |
+
$interval = Mage::getModel('core/config_data')->load(self::CRON_MODEL_PATH_INTERVAL, 'path')->getValue();
|
| 43 |
+
$cronExprString = "{$time[1]} {$time[0]} */{$interval} * *";
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
Mage::getModel('core/config_data')
|
| 47 |
+
->load('path_name', 'path')
|
| 48 |
+
->setValue($cronExprString)
|
| 49 |
+
->setPath('path_name')
|
| 50 |
+
->save();
|
| 51 |
+
|
| 52 |
+
return parent::_afterSave();
|
| 53 |
+
}
|
| 54 |
+
}
|
app/code/local/Ced/LayBuy/Model/System/Config/Source/FetchingSchedule.php
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
*
|
| 21 |
* @category Ced
|
| 22 |
* @package Ced_LayBuy
|
| 23 |
-
* @author
|
| 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 |
*/
|
|
@@ -35,12 +35,10 @@ class Ced_LayBuy_Model_System_Config_Source_FetchingSchedule
|
|
| 35 |
{
|
| 36 |
return array (
|
| 37 |
1 => Mage::helper('laybuy')->__("Daily"),
|
| 38 |
-
|
| 39 |
7 => Mage::helper('laybuy')->__("Every 7 days"),
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
30 => Mage::helper('laybuy')->__("Every 30 days"),
|
| 43 |
-
40 => Mage::helper('laybuy')->__("Every 40 days"),
|
| 44 |
);
|
| 45 |
}
|
| 46 |
}
|
| 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 |
*/
|
| 35 |
{
|
| 36 |
return array (
|
| 37 |
1 => Mage::helper('laybuy')->__("Daily"),
|
| 38 |
+
2 => Mage::helper('laybuy')->__("Every 2 days"),
|
| 39 |
7 => Mage::helper('laybuy')->__("Every 7 days"),
|
| 40 |
+
30 => Mage::helper('laybuy')->__("Every 30 days"),
|
| 41 |
+
|
|
|
|
|
|
|
| 42 |
);
|
| 43 |
}
|
| 44 |
}
|
app/code/local/Ced/LayBuy/Model/System/Config/Source/FetchingSchedule.php.bkp
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
/**
|
| 30 |
+
* Source model for available instalment report fetching intervals
|
| 31 |
+
*/
|
| 32 |
+
class Ced_LayBuy_Model_System_Config_Source_FetchingSchedule
|
| 33 |
+
{
|
| 34 |
+
public function toOptionArray()
|
| 35 |
+
{
|
| 36 |
+
return array (
|
| 37 |
+
1 => Mage::helper('laybuy')->__("Daily"),
|
| 38 |
+
3 => Mage::helper('laybuy')->__("Every 3 days"),
|
| 39 |
+
7 => Mage::helper('laybuy')->__("Every 7 days"),
|
| 40 |
+
10 => Mage::helper('laybuy')->__("Every 10 days"),
|
| 41 |
+
14 => Mage::helper('laybuy')->__("Every 14 days"),
|
| 42 |
+
30 => Mage::helper('laybuy')->__("Every 30 days"),
|
| 43 |
+
40 => Mage::helper('laybuy')->__("Every 40 days"),
|
| 44 |
+
);
|
| 45 |
+
}
|
| 46 |
+
}
|
app/code/local/Ced/LayBuy/controllers/ReviseController.php
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
-
<?php
|
|
|
|
| 2 |
/**
|
| 3 |
* Lay-Buys
|
| 4 |
*
|
|
@@ -59,7 +60,7 @@ class Ced_LayBuy_ReviseController extends Mage_Core_Controller_Front_Action
|
|
| 59 |
}
|
| 60 |
$session = Mage::getSingleton('checkout/session');
|
| 61 |
try{
|
| 62 |
-
$currentDate = date('Y-m-d h:i:s'
|
| 63 |
$status['_secure'] = true;
|
| 64 |
$str = print_r($status, true);
|
| 65 |
$revise = Mage::getModel('laybuy/revise')->load($status['merchants_ref_no']);
|
|
@@ -71,7 +72,7 @@ class Ced_LayBuy_ReviseController extends Mage_Core_Controller_Front_Action
|
|
| 71 |
$status['payment_amounts'] = 0;
|
| 72 |
$status['first_payment_due'] = $currentDate;
|
| 73 |
$status['last_payment_due'] = $currentDate;
|
| 74 |
-
$status['paypal_profile_id'] = '';
|
| 75 |
if(Mage::helper('laybuy')->processOrder($status['custom'],1))
|
| 76 |
$state = 1;
|
| 77 |
}
|
|
@@ -84,21 +85,14 @@ class Ced_LayBuy_ReviseController extends Mage_Core_Controller_Front_Action
|
|
| 84 |
$order = Mage::getModel('sales/order');
|
| 85 |
$order->loadByIncrementId($status['custom']);
|
| 86 |
|
| 87 |
-
if($order && $order->getId()){
|
|
|
|
| 88 |
$createdAt = Mage::helper('core')->formatDate($currentDate, Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true);
|
| 89 |
$payment_info = $order->getPayment()->getData('additional_information');
|
| 90 |
|
| 91 |
|
| 92 |
-
$
|
| 93 |
-
|
| 94 |
-
'type' => 'd',
|
| 95 |
-
'paymentStatus' => 'Completed',
|
| 96 |
-
'paymentDate' => $createdAt,
|
| 97 |
-
'amount' => $status['downpayment_amount']
|
| 98 |
-
);
|
| 99 |
-
|
| 100 |
-
$order->getPayment()->setData('additional_information',$payment_info);
|
| 101 |
-
|
| 102 |
$order->save();
|
| 103 |
|
| 104 |
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
/**
|
| 4 |
* Lay-Buys
|
| 5 |
*
|
| 60 |
}
|
| 61 |
$session = Mage::getSingleton('checkout/session');
|
| 62 |
try{
|
| 63 |
+
$currentDate = Mage::getModel('core/date')->date('Y-m-d h:i:s');
|
| 64 |
$status['_secure'] = true;
|
| 65 |
$str = print_r($status, true);
|
| 66 |
$revise = Mage::getModel('laybuy/revise')->load($status['merchants_ref_no']);
|
| 72 |
$status['payment_amounts'] = 0;
|
| 73 |
$status['first_payment_due'] = $currentDate;
|
| 74 |
$status['last_payment_due'] = $currentDate;
|
| 75 |
+
$status['paypal_profile_id'] = 'n/a';
|
| 76 |
if(Mage::helper('laybuy')->processOrder($status['custom'],1))
|
| 77 |
$state = 1;
|
| 78 |
}
|
| 85 |
$order = Mage::getModel('sales/order');
|
| 86 |
$order->loadByIncrementId($status['custom']);
|
| 87 |
|
| 88 |
+
if($order && $order->getId()){
|
| 89 |
+
if($order->getCreatedAt() > $currentDate) $currentDate = $order->getCreatedAt();
|
| 90 |
$createdAt = Mage::helper('core')->formatDate($currentDate, Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true);
|
| 91 |
$payment_info = $order->getPayment()->getData('additional_information');
|
| 92 |
|
| 93 |
|
| 94 |
+
$order->getPayment()->setData('laybuy_init',$status['downpayment'])
|
| 95 |
+
->setData('laybuy_months',$status['months']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
$order->save();
|
| 97 |
|
| 98 |
|
app/code/local/Ced/LayBuy/etc/config.xml
CHANGED
|
@@ -165,19 +165,23 @@
|
|
| 165 |
</default>
|
| 166 |
<crontab>
|
| 167 |
<jobs>
|
| 168 |
-
|
| 169 |
<schedule>
|
| 170 |
<cron_expr>* * * * *</cron_expr>
|
| 171 |
</schedule>
|
| 172 |
<run>
|
| 173 |
-
<model>laybuy/Observer</model>
|
| 174 |
-
|
| 175 |
</run>
|
| 176 |
</LayBuy_Cron_Check>
|
| 177 |
<LayBuy_Automated_Fetch_Updates>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
<run>
|
| 179 |
-
<model>laybuy/Observer</model>
|
| 180 |
-
|
| 181 |
</run>
|
| 182 |
</LayBuy_Automated_Fetch_Updates>
|
| 183 |
</jobs>
|
| 165 |
</default>
|
| 166 |
<crontab>
|
| 167 |
<jobs>
|
| 168 |
+
<LayBuy_Cron_Check>
|
| 169 |
<schedule>
|
| 170 |
<cron_expr>* * * * *</cron_expr>
|
| 171 |
</schedule>
|
| 172 |
<run>
|
| 173 |
+
<model>laybuy/Observer::checkCron</model>
|
| 174 |
+
|
| 175 |
</run>
|
| 176 |
</LayBuy_Cron_Check>
|
| 177 |
<LayBuy_Automated_Fetch_Updates>
|
| 178 |
+
<schedule>
|
| 179 |
+
|
| 180 |
+
<config_path>crontab/jobs/LayBuy_Automated_Fetch_Updates/schedule/cron_expr</config_path>
|
| 181 |
+
</schedule>
|
| 182 |
<run>
|
| 183 |
+
<model>laybuy/Observer::fetchUpdates</model>
|
| 184 |
+
|
| 185 |
</run>
|
| 186 |
</LayBuy_Automated_Fetch_Updates>
|
| 187 |
</jobs>
|
app/code/local/Ced/LayBuy/etc/system.xml
CHANGED
|
@@ -100,7 +100,7 @@
|
|
| 100 |
<comment>Maximum Number of Months to pay Balance (defaults to 3)</comment>
|
| 101 |
</months>
|
| 102 |
<adminfee translate="label comment">
|
| 103 |
-
<label>Lay-Buy
|
| 104 |
<frontend_type>select</frontend_type>
|
| 105 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 106 |
<sort_order>65</sort_order>
|
| 100 |
<comment>Maximum Number of Months to pay Balance (defaults to 3)</comment>
|
| 101 |
</months>
|
| 102 |
<adminfee translate="label comment">
|
| 103 |
+
<label>Show Lay-Buy Fee in Description</label>
|
| 104 |
<frontend_type>select</frontend_type>
|
| 105 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 106 |
<sort_order>65</sort_order>
|
app/design/adminhtml/default/default/template/laybuy/info/pdf/laybuy.phtml
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 default_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_Info_Laybuy
|
| 31 |
+
*/
|
| 32 |
+
?>
|
| 33 |
+
|
| 34 |
+
<p><strong><?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?></strong></p>
|
| 35 |
+
<p>
|
| 36 |
+
<?php
|
| 37 |
+
$laybuy = Mage::helper('laybuy')->getInstalmentData($this->getInfo());
|
| 38 |
+
if(isset($laybuy['INIT']) && isset($laybuy['MONTHS']) && $laybuy['INIT'] && $laybuy['MONTHS']) {
|
| 39 |
+
echo "<b>Down Payment % : </b>".$laybuy['INIT'];
|
| 40 |
+
echo "<br/>";
|
| 41 |
+
echo "<b>Months : </b>".$laybuy['MONTHS'];
|
| 42 |
+
}
|
| 43 |
+
?>
|
| 44 |
+
</p>
|
| 45 |
+
<?php echo $this->getChildHtml()?>
|
app/design/frontend/base/default/template/laybuy/form/laybuy.phtml
CHANGED
|
@@ -32,6 +32,7 @@
|
|
| 32 |
*/
|
| 33 |
?>
|
| 34 |
<?php
|
|
|
|
| 35 |
$adminFeeDescription = '';
|
| 36 |
if(Mage::getStoreConfig('payment/laybuy/adminfee',$storeId)) {
|
| 37 |
$adminFeeDescription = " A 0.9% admin fee is payable to Lay-Buys.";
|
| 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.";
|
app/design/frontend/base/default/template/laybuy/info/default.phtml
CHANGED
|
@@ -43,9 +43,11 @@
|
|
| 43 |
<p>
|
| 44 |
<?php
|
| 45 |
$laybuy = Mage::helper('laybuy')->getInstalmentData($this->getInfo());
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
| 49 |
?>
|
| 50 |
</p>
|
| 51 |
<?php endif; ?>
|
| 43 |
<p>
|
| 44 |
<?php
|
| 45 |
$laybuy = Mage::helper('laybuy')->getInstalmentData($this->getInfo());
|
| 46 |
+
if(isset($laybuy['INIT']) && isset($laybuy['MONTHS']) && $laybuy['INIT'] && $laybuy['MONTHS']) {
|
| 47 |
+
echo "<b>Down Payment % : </b>".$laybuy['INIT'];
|
| 48 |
+
echo "<br/>";
|
| 49 |
+
echo "<b>Months : </b>".$laybuy['MONTHS'];
|
| 50 |
+
}
|
| 51 |
?>
|
| 52 |
</p>
|
| 53 |
<?php endif; ?>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Ced_LayBuy</name>
|
| 4 |
-
<version>2.1.6</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,
|
| 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-
|
| 25 |
-
<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="
|
| 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.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 |
<notes>1. New secure communication protocal,
|
| 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>
|
