Version Notes
1. Order page modified with installment plans details in payment information section.
2. Customer can view there installment plans of a order from account panel for detail read the user guide
3. Enhance the payment association with order
4. Installment plan can be canceled on order cancellation
5. admin Interfaces are modified.
6. payment method only active at checkout per:
- min. checkout cart total
- allowed categories
- allowed customer groups
- excluded by product ids
Download this release
Release Info
Developer | Warrin |
Extension | Ced_LayBuy |
Version | 2.0.5 |
Comparing to | |
See all releases |
Code changes from version 2.0.4 to 2.0.5
- app/code/local/Ced/LayBuy/Helper/Data.php +3 -2
- app/code/local/Ced/LayBuy/Model/Standard.php +1 -1
- app/code/local/Ced/LayBuy/controllers/Adminhtml/ReportController.php +9 -0
- app/code/local/Ced/LayBuy/etc/config.xml +0 -9
- app/design/frontend/base/default/template/laybuy/info/default.phtml +8 -1
- package.xml +4 -4
app/code/local/Ced/LayBuy/Helper/Data.php
CHANGED
@@ -49,7 +49,8 @@ class Ced_LayBuy_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
49 |
$data .= "mid=".$config['username']."&";
|
50 |
/* $data .= "custom=".$orderIds."&"; */
|
51 |
$data .= "profileIds=".$profileIds;
|
52 |
-
/*
|
|
|
53 |
$ch = curl_init();
|
54 |
curl_setopt($ch, CURLOPT_URL,$url);
|
55 |
curl_setopt($ch, CURLOPT_POST, 1);
|
@@ -58,7 +59,7 @@ class Ced_LayBuy_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
58 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false); /* tell cURL to graciously accept an SSL certificate */
|
59 |
$result = curl_exec ($ch);
|
60 |
curl_close ($ch);
|
61 |
-
/* print_r($result); die; */
|
62 |
return json_decode($result);
|
63 |
}
|
64 |
|
49 |
$data .= "mid=".$config['username']."&";
|
50 |
/* $data .= "custom=".$orderIds."&"; */
|
51 |
$data .= "profileIds=".$profileIds;
|
52 |
+
/* $data .= "&test=1"; */
|
53 |
+
/* echo $data;die; */
|
54 |
$ch = curl_init();
|
55 |
curl_setopt($ch, CURLOPT_URL,$url);
|
56 |
curl_setopt($ch, CURLOPT_POST, 1);
|
59 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false); /* tell cURL to graciously accept an SSL certificate */
|
60 |
$result = curl_exec ($ch);
|
61 |
curl_close ($ch);
|
62 |
+
/* print_r(json_decode($result)); die; */
|
63 |
return json_decode($result);
|
64 |
}
|
65 |
|
app/code/local/Ced/LayBuy/Model/Standard.php
CHANGED
@@ -33,7 +33,7 @@ class Ced_LayBuy_Model_Standard extends Mage_Payment_Model_Method_Abstract
|
|
33 |
{
|
34 |
public $_code = 'laybuy';
|
35 |
protected $_formBlockType = 'laybuy/form_laybuy';
|
36 |
-
protected $_infoBlockType = 'laybuy/info_laybuy';
|
37 |
protected $_isInitializeNeeded = true;
|
38 |
protected $_canUseInternal = false;
|
39 |
protected $_canUseForMultishipping = false;
|
33 |
{
|
34 |
public $_code = 'laybuy';
|
35 |
protected $_formBlockType = 'laybuy/form_laybuy';
|
36 |
+
//protected $_infoBlockType = 'laybuy/info_laybuy';
|
37 |
protected $_isInitializeNeeded = true;
|
38 |
protected $_canUseInternal = false;
|
39 |
protected $_canUseForMultishipping = false;
|
app/code/local/Ced/LayBuy/controllers/Adminhtml/ReportController.php
CHANGED
@@ -79,6 +79,15 @@ class Ced_LayBuy_Adminhtml_ReportController extends Mage_Adminhtml_Controller_Ac
|
|
79 |
*/
|
80 |
public function fetchAction()
|
81 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
try {
|
83 |
$reports = Mage::getModel('laybuy/report');
|
84 |
/* @var $reports Mage_laybuy_Model_Report_Instalment */
|
79 |
*/
|
80 |
public function fetchAction()
|
81 |
{
|
82 |
+
/* $tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y"));
|
83 |
+
echo date('Y-m-d h:i:s',$tomorrow);
|
84 |
+
echo "<br/>";
|
85 |
+
$nextmonth = mktime(0, 0, 0, date("m")+1, date("d"), date("Y"));
|
86 |
+
echo date('Y-m-d h:i:s',$nextmonth);
|
87 |
+
echo "<br/>";
|
88 |
+
$nextyear = mktime(0, 0, 0, date("m"), date("d"), date("Y")+1);
|
89 |
+
echo date('Y-m-d h:i:s',$nextyear);
|
90 |
+
die; */
|
91 |
try {
|
92 |
$reports = Mage::getModel('laybuy/report');
|
93 |
/* @var $reports Mage_laybuy_Model_Report_Instalment */
|
app/code/local/Ced/LayBuy/etc/config.xml
CHANGED
@@ -98,15 +98,6 @@
|
|
98 |
<class>Ced_LayBuy_Block</class>
|
99 |
</laybuy>
|
100 |
</blocks>
|
101 |
-
<template>
|
102 |
-
<email>
|
103 |
-
<revise_plan_email_template module="Ced_LayBuy">
|
104 |
-
<label>Message from Lay-Buy Financial Solutions Pty Ltd</label>
|
105 |
-
<file>revise_plan_email_template.html</file>
|
106 |
-
<type>html</type>
|
107 |
-
</revise_plan_email_template>
|
108 |
-
</email>
|
109 |
-
</template>
|
110 |
<events>
|
111 |
<payment_info_block_prepare_specific_information>
|
112 |
<observers>
|
98 |
<class>Ced_LayBuy_Block</class>
|
99 |
</laybuy>
|
100 |
</blocks>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
<events>
|
102 |
<payment_info_block_prepare_specific_information>
|
103 |
<observers>
|
app/design/frontend/base/default/template/laybuy/info/default.phtml
CHANGED
@@ -40,6 +40,13 @@
|
|
40 |
</tbody>
|
41 |
</table>
|
42 |
<?php else:?>
|
43 |
-
<p
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
<?php endif;?>
|
45 |
<?php echo $this->getChildHtml()?>
|
40 |
</tbody>
|
41 |
</table>
|
42 |
<?php else:?>
|
43 |
+
<p>
|
44 |
+
<?php
|
45 |
+
$laybuy = $this->getInfo()->getAdditionalInformation();
|
46 |
+
echo "<b>Down Payment % : </b>".$laybuy['INIT'];
|
47 |
+
echo "<br/>";
|
48 |
+
echo "<b>Months : </b>".$laybuy['MONTHS'];
|
49 |
+
?>
|
50 |
+
</p>
|
51 |
<?php endif;?>
|
52 |
<?php echo $this->getChildHtml()?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Ced_LayBuy</name>
|
4 |
-
<version>2.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -29,9 +29,9 @@ This effectively increases sales and radically improves cash flow where all the
|
|
29 |
- allowed customer groups
|
30 |
- excluded by product ids </notes>
|
31 |
<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>
|
32 |
-
<date>2014-
|
33 |
-
<time>
|
34 |
-
<contents><target name="magelocal"><dir name="Ced"><dir name="LayBuy"><dir name="Block"><dir name="Adminhtml"><dir name="Report"><dir name="Details"><file name="Form.php" hash="80d28e9b0e19ccab233ea9f18041e364"/></dir><file name="Details.php" hash="f701acdd96fc4f02e8eb878a283449b1"/><dir name="Edit"><file name="Form.php" hash="a2611910f2363eec55531dbf552ed37c"/></dir><file name="Edit.php" hash="04d67bf341a8b7619a79605654b7713f"/><file name="Grid.php" hash="6038eda0c8c2bd17a8da71208011e8e0"/><dir name="Renderer"><file name="Email.php" hash="8e6c0938d80f629cd285303018945ea1"/><file name="Order.php" hash="d89e20aa07fd18a39a1cd881ec9f4995"/><file name="Record.php" hash="95eb9f836a50f3f80d254a7cdd8e1d6e"/></dir></dir><file name="Report.php" hash="9275aca45974105321eed5e06de54e88"/></dir><dir name="Customer"><dir name="Account"><file name="Details.php" hash="64434830be63218157c53a860ab7f48e"/><file name="Grid.php" hash="41d9e28477936ca27f5031e920ee7cfb"/></dir></dir><dir name="Form"><file name="Laybuy.php" hash="f48e5db65ff1b62730e642eada837ec7"/></dir><dir name="Info"><file name="Laybuy.php" hash="00dca1578594e6ec2d5f3ee9004d12fe"/></dir><dir name="Revise"><file name="Redirect.php" hash="6f63613d0fe5540a296804c14263a614"/></dir><dir name="Standard"><file name="Redirect.php" hash="306a88ff75d35c18157dc5dceb02c06f"/></dir></dir><dir name="Helper"><file name="Config.php" hash="f0e99e4baff0db77a27938c071dd26fa"/><file name="Data.php" hash="
|
35 |
<compatible/>
|
36 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
37 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Ced_LayBuy</name>
|
4 |
+
<version>2.0.5</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>
|
29 |
- allowed customer groups
|
30 |
- excluded by product ids </notes>
|
31 |
<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>
|
32 |
+
<date>2014-02-12</date>
|
33 |
+
<time>05:40:51</time>
|
34 |
+
<contents><target name="magelocal"><dir name="Ced"><dir name="LayBuy"><dir name="Block"><dir name="Adminhtml"><dir name="Report"><dir name="Details"><file name="Form.php" hash="80d28e9b0e19ccab233ea9f18041e364"/></dir><file name="Details.php" hash="f701acdd96fc4f02e8eb878a283449b1"/><dir name="Edit"><file name="Form.php" hash="a2611910f2363eec55531dbf552ed37c"/></dir><file name="Edit.php" hash="04d67bf341a8b7619a79605654b7713f"/><file name="Grid.php" hash="6038eda0c8c2bd17a8da71208011e8e0"/><dir name="Renderer"><file name="Email.php" hash="8e6c0938d80f629cd285303018945ea1"/><file name="Order.php" hash="d89e20aa07fd18a39a1cd881ec9f4995"/><file name="Record.php" hash="95eb9f836a50f3f80d254a7cdd8e1d6e"/></dir></dir><file name="Report.php" hash="9275aca45974105321eed5e06de54e88"/></dir><dir name="Customer"><dir name="Account"><file name="Details.php" hash="64434830be63218157c53a860ab7f48e"/><file name="Grid.php" hash="41d9e28477936ca27f5031e920ee7cfb"/></dir></dir><dir name="Form"><file name="Laybuy.php" hash="f48e5db65ff1b62730e642eada837ec7"/></dir><dir name="Info"><file name="Laybuy.php" hash="00dca1578594e6ec2d5f3ee9004d12fe"/></dir><dir name="Revise"><file name="Redirect.php" hash="6f63613d0fe5540a296804c14263a614"/></dir><dir name="Standard"><file name="Redirect.php" hash="306a88ff75d35c18157dc5dceb02c06f"/></dir></dir><dir name="Helper"><file name="Config.php" hash="f0e99e4baff0db77a27938c071dd26fa"/><file name="Data.php" hash="8d468775f4b7bc2cdd8136b939a2d015"/></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="6a077f545a9f16f5702d783205da1935"/><file name="Report.php" hash="d910a81e6b242cba1d4b58c72929f25e"/><file name="Revise.php" hash="225c67ee5ff3e9646785ee4342822c82"/><file name="Standard.php" hash="c2628245114595738be5bb9a7e71aea0"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Cron.php" hash="8d6e6dc1c3265307eed7a829031dd5f3"/></dir><dir name="Source"><file name="Categories.php" hash="92c61dba3c23e7838cddbaaee8f21d05"/><file name="FetchingSchedule.php" 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="7ace4fa9fffdf2ad93ded4487e3d4a40"/></dir><file name="ReportController.php" hash="0ae0fee6659f30a811f151c5007abaf8"/><file name="ReviseController.php" hash="e1abafbdeaa5cb13315a3e679487df06"/><file name="StandardController.php" hash="bbcb30a1ed084e31aed1f4c3fabb30e7"/></dir><dir name="etc"><file name="adminhtml.xml" hash="d6be666f723ef84014bdcc0501bf09fb"/><file name="config.xml" hash="b26bab2810d7384160c3481f8a1db316"/><file name="system.xml" hash="5dbf398d7c13be1f181a0214c45cb43d"/></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"/></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="06a129b1976e1bffe665b6857a7692f1"/></dir><dir name="template"><dir name="laybuy"><dir name="checkout"><dir name="onepage"><dir name="review"><file name="button.phtml" hash="df735c2e0c07a664717dc4cd3ea62c99"/></dir></dir></dir><dir name="customer"><dir name="account"><file name="details.phtml" hash="b2014625326522e477ffc2e5163bf9d9"/><file name="grid.phtml" hash="a4997c40900f4a927b9bfb564938e202"/></dir></dir><dir name="form"><file name="extra.phtml" hash="457bbd674b69b4866bf834cb67d79dcd"/><file name="laybuy.phtml" hash="250a2e47b647830dde0a1c511cc2d959"/><file name="laybuy.phtml.original" hash="39aacfc3f3f6ada9e20bbaefef843bab"/></dir><dir name="info"><file name="default.phtml" hash="9ac03ad197e0a0163d9cd72bf1b6deb1"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="laybuy.xml" hash="daf3f1e61e17f4d16c64e34c0b6a0e7b"/></dir><dir name="template"><dir name="laybuy"><dir name="info"><file name="default.phtml" hash="0c8d53885be3931bb9af881a8b4f9906"/></dir><file name="notification.phtml" hash="37f0ece7fa9ee89f2d0bcbe3a836c019"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ced_LayBuy.xml" hash="0299a80e1539c73b4edd1fb0df41c28d"/></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="check_jquery.js" hash="3f463b1398dd1d46ed3b25726dada9b9"/><file name="jquery.atooltip.js" hash="7ef69b27dfeaff3038e5a3fb1f1ed1ea"/><file name="jquery.min.js" hash="d2f9865f4b390d655e9a7d67aa34c477"/></dir></dir></target></contents>
|
35 |
<compatible/>
|
36 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
37 |
</package>
|