Version Notes
Change Log:
* HC-156 Finance offer on product lists - compatibility fix
Download this release
Release Info
Developer | Sandor Czettner |
Extension | HC_PayByFinance |
Version | 1.0.5.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.5.1 to 1.0.5.2
- app/code/local/HC/PayByFinance/Block/Adminhtml/Version.php +1 -1
- app/code/local/HC/PayByFinance/sql/paybyfinance_setup/mysql4-install-1.0.5.php +12 -1
- app/code/local/HC/PayByFinance/sql/paybyfinance_setup/mysql4-upgrade-1.0.4-1.0.5.php +0 -1
- app/design/frontend/base/default/layout/paybyfinance.xml +8 -2
- package.xml +5 -11
app/code/local/HC/PayByFinance/Block/Adminhtml/Version.php
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
*/
|
29 |
class HC_PayByFinance_Block_Adminhtml_Version extends Mage_Adminhtml_Block_Template
|
30 |
{
|
31 |
-
const PATCH_LEVEL =
|
32 |
|
33 |
protected $_template = "paybyfinance/version.phtml";
|
34 |
|
28 |
*/
|
29 |
class HC_PayByFinance_Block_Adminhtml_Version extends Mage_Adminhtml_Block_Template
|
30 |
{
|
31 |
+
const PATCH_LEVEL = 2;
|
32 |
|
33 |
protected $_template = "paybyfinance/version.phtml";
|
34 |
|
app/code/local/HC/PayByFinance/sql/paybyfinance_setup/mysql4-install-1.0.5.php
CHANGED
@@ -190,13 +190,24 @@ $setup->addAttribute(
|
|
190 |
'comparable' => true,
|
191 |
'visible_on_front' => false,
|
192 |
'visible_in_advanced_search' => false,
|
193 |
-
'used_in_product_listing' =>
|
194 |
'used_for_sort_by' => false,
|
195 |
'unique' => false,
|
196 |
'apply_to' => '',
|
197 |
)
|
198 |
);
|
199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
/**
|
201 |
* Add 'paybyfinance_enable' attribute for entities.
|
202 |
*/
|
190 |
'comparable' => true,
|
191 |
'visible_on_front' => false,
|
192 |
'visible_in_advanced_search' => false,
|
193 |
+
'used_in_product_listing' => 1,
|
194 |
'used_for_sort_by' => false,
|
195 |
'unique' => false,
|
196 |
'apply_to' => '',
|
197 |
)
|
198 |
);
|
199 |
|
200 |
+
$entityTypeId = $setup->getEntityTypeId('catalog_product');
|
201 |
+
|
202 |
+
$idAttribute = $setup->getAttribute($entityTypeId, 'paybyfinance_enable', 'attribute_id');
|
203 |
+
$setup->updateAttribute(
|
204 |
+
$entityTypeId,
|
205 |
+
$idAttribute,
|
206 |
+
array(
|
207 |
+
'used_in_product_listing' => 1
|
208 |
+
)
|
209 |
+
);
|
210 |
+
|
211 |
/**
|
212 |
* Add 'paybyfinance_enable' attribute for entities.
|
213 |
*/
|
app/code/local/HC/PayByFinance/sql/paybyfinance_setup/mysql4-upgrade-1.0.4-1.0.5.php
CHANGED
@@ -21,7 +21,6 @@ $updater->startSetup();
|
|
21 |
$installer = Mage::getModel('eav/entity_setup', 'core_setup');
|
22 |
$entityTypeId = $installer->getEntityTypeId('catalog_product');
|
23 |
|
24 |
-
// replace <my_attribute_code> with your attribute code
|
25 |
$idAttribute = $installer->getAttribute($entityTypeId, 'paybyfinance_enable', 'attribute_id');
|
26 |
$installer->updateAttribute(
|
27 |
$entityTypeId,
|
21 |
$installer = Mage::getModel('eav/entity_setup', 'core_setup');
|
22 |
$entityTypeId = $installer->getEntityTypeId('catalog_product');
|
23 |
|
|
|
24 |
$idAttribute = $installer->getAttribute($entityTypeId, 'paybyfinance_enable', 'attribute_id');
|
25 |
$installer->updateAttribute(
|
26 |
$entityTypeId,
|
app/design/frontend/base/default/layout/paybyfinance.xml
CHANGED
@@ -39,11 +39,17 @@
|
|
39 |
</reference>
|
40 |
</default>
|
41 |
|
42 |
-
<
|
43 |
<reference name="product_list.name.after">
|
44 |
<block type="paybyfinance/product_list_finance" name="product_list.paybyfinance" template="paybyfinance/catalog/product/list/finance.phtml"/>
|
45 |
</reference>
|
46 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
<catalog_product_view>
|
49 |
<reference name="product.info">
|
39 |
</reference>
|
40 |
</default>
|
41 |
|
42 |
+
<catalogsearch_result_index>
|
43 |
<reference name="product_list.name.after">
|
44 |
<block type="paybyfinance/product_list_finance" name="product_list.paybyfinance" template="paybyfinance/catalog/product/list/finance.phtml"/>
|
45 |
</reference>
|
46 |
+
</catalogsearch_result_index>
|
47 |
+
|
48 |
+
<catalog_category_default>
|
49 |
+
<reference name="product_list.name.after">
|
50 |
+
<block type="paybyfinance/product_list_finance" name="product_list.paybyfinance" template="paybyfinance/catalog/product/list/finance.phtml"/>
|
51 |
+
</reference>
|
52 |
+
</catalog_category_default>
|
53 |
|
54 |
<catalog_product_view>
|
55 |
<reference name="product.info">
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>HC_PayByFinance</name>
|
4 |
-
<version>1.0.5.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.healthywebsites.co.uk/license.html">Healthy Websites</license>
|
7 |
<channel>community</channel>
|
@@ -9,17 +9,11 @@
|
|
9 |
<summary>Hitachi Capital Pay By Finance</summary>
|
10 |
<description>Hitachi Capital Pay By Finance</description>
|
11 |
<notes>Change Log:
|
12 |
-
*
|
13 |
-
* HC-195 Deposit rounding issue
|
14 |
-
* HC-188 Rounding Down the finance amount
|
15 |
-
* HC-175 Fix illegal chars in product name
|
16 |
-
* HC-156 Finance offer on product lists
|
17 |
-
* HC-173 implement changes according to updated specification (notification url)
|
18 |
-
* HC-201 Invoice base_grand_total calculation fix</notes>
|
19 |
<authors><author><name>Sandor Czettner</name><user>MAG000003395</user><email>support@healthywebsites.co.uk</email></author><author><name>Alistair Macneil</name><user>MAG000006529</user><email>support@healthywebsites.co.uk</email></author><author><name>Rhuaridh Clark</name><user>MAG002562063</user><email>support@healthywebsites.co.uk</email></author></authors>
|
20 |
-
<date>2015-06-
|
21 |
-
<time>
|
22 |
-
<contents><target name="magelocal"><dir><dir name="HC"><dir name="PayByFinance"><dir name="Block"><dir name="Adminhtml"><dir name="Paybyfinance"><file name="Redirect.php" hash="b7aadc98068529d4fb08219a83b2e69b"/><dir name="Service"><dir name="Edit"><file name="Form.php" hash="19f94b6405f5ec45510022c5aff868c2"/><dir name="Tab"><file name="Form.php" hash="77316baf7e8d387037007b97067fff8b"/></dir><file name="Tabs.php" hash="5af9151c310841d8dd0b6f7e8f984625"/></dir><file name="Edit.php" hash="d73f958b0abaebff8aff703f650c5a01"/><file name="Grid.php" hash="38f482f561c0be60b8a7ac6f49e74df9"/></dir><file name="Service.php" hash="26112ba2733a9db951addfef4e0152e8"/></dir><file name="Version.php" hash="
|
23 |
<compatible/>
|
24 |
<dependencies><required><php><min>5.4.26</min><max>5.6.7</max></php></required></dependencies>
|
25 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>HC_PayByFinance</name>
|
4 |
+
<version>1.0.5.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.healthywebsites.co.uk/license.html">Healthy Websites</license>
|
7 |
<channel>community</channel>
|
9 |
<summary>Hitachi Capital Pay By Finance</summary>
|
10 |
<description>Hitachi Capital Pay By Finance</description>
|
11 |
<notes>Change Log:
|
12 |
+
* HC-156 Finance offer on product lists - compatibility fix</notes>
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
<authors><author><name>Sandor Czettner</name><user>MAG000003395</user><email>support@healthywebsites.co.uk</email></author><author><name>Alistair Macneil</name><user>MAG000006529</user><email>support@healthywebsites.co.uk</email></author><author><name>Rhuaridh Clark</name><user>MAG002562063</user><email>support@healthywebsites.co.uk</email></author></authors>
|
14 |
+
<date>2015-06-16</date>
|
15 |
+
<time>16:05:24</time>
|
16 |
+
<contents><target name="magelocal"><dir><dir name="HC"><dir name="PayByFinance"><dir name="Block"><dir name="Adminhtml"><dir name="Paybyfinance"><file name="Redirect.php" hash="b7aadc98068529d4fb08219a83b2e69b"/><dir name="Service"><dir name="Edit"><file name="Form.php" hash="19f94b6405f5ec45510022c5aff868c2"/><dir name="Tab"><file name="Form.php" hash="77316baf7e8d387037007b97067fff8b"/></dir><file name="Tabs.php" hash="5af9151c310841d8dd0b6f7e8f984625"/></dir><file name="Edit.php" hash="d73f958b0abaebff8aff703f650c5a01"/><file name="Grid.php" hash="38f482f561c0be60b8a7ac6f49e74df9"/></dir><file name="Service.php" hash="26112ba2733a9db951addfef4e0152e8"/></dir><file name="Version.php" hash="cbef813d735a8c97baecaf5009682f78"/></dir><dir name="Checkout"><file name="Redirect.php" hash="30f1cf1f682abc985e872619b67a86d7"/></dir><dir name="Product"><dir name="List"><file name="Finance.php" hash="a9dd554c1c95fc4c912f71ab3ac94d2c"/></dir></dir><dir name="Sales"><dir name="Order"><file name="Totals.php" hash="1fe522dd0d6a4c890374b2602b840d3b"/></dir></dir><file name="Selector.php" hash="cec4b9a148b8b06458bddc03f3a7747d"/><file name="Status.php" hash="338f52aa781e3e7703862e180339a1aa"/></dir><dir name="Helper"><file name="Cart.php" hash="121aa99b2d5ceb953a1e790e244d02eb"/><file name="Checkout.php" hash="2e5c242b333cda10fa0993b036b9cbf4"/><file name="Data.php" hash="4a3797487c6128b07f3502266e2862eb"/><file name="Notification.php" hash="a72c5a8885a83051e28fe77d6a8f36a7"/></dir><dir name="Model"><file name="Calculator.php" hash="a81e3a8a548a349660d513e79ba521f2"/><dir name="Config"><dir name="Source"><dir name="Catalog"><dir name="Product"><file name="Finance.php" hash="68dfc0233403f61c82aa62009cdd2da7"/><file name="Type.php" hash="4494b3f46eddc7455e363281072df315"/></dir></dir><dir name="Cms"><file name="Block.php" hash="a4302b47926c40f480ea84f81420070f"/></dir><file name="Connectionmode.php" hash="a734e5ae89d3dd72ba80c97b358d3923"/><dir name="Notification"><file name="Status.php" hash="0e9792c4ea7e27e61472d60e07227c5e"/></dir><file name="Type.php" hash="ce4604dccb55c6ce450fd34d4fa8ad4d"/></dir></dir><file name="Log.php" hash="446fc48510a09b279ad725bf87b839ff"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="6ebe6b95b2565601cd77f1d4db264ff4"/></dir><file name="Log.php" hash="914cb47c3274c2cce6a3913302a2d4e3"/><dir name="Service"><file name="Collection.php" hash="c68147d484d42d4b6b6f4fedc2ac6cc7"/></dir><file name="Service.php" hash="3dac2e956f57c9a1467e52a0f008fefd"/></dir><file name="Observer.php" hash="3e51b9b64e9f7882478d43d4500ea89a"/><dir name="Paypal"><dir name="Api"><file name="Nvp.php" hash="5d1f7b687e2ca293ac1dc0c0425d1b8f"/></dir><dir name="Hostedpro"><file name="Request.php" hash="11ba073df9037d899eecb211c062d5f5"/></dir></dir><dir name="PaypalUk"><dir name="Api"><file name="Nvp.php" hash="49ba8cbd3145939a3d78e4964d1fe27e"/></dir></dir><dir name="Post"><file name="Abstract.php" hash="f6eeda7e77637957a68071f10b9954ce"/><file name="Live.php" hash="dd7b6a145f11ac7e5521541ba9a04111"/><file name="Simulation.php" hash="cb9b14475150e9303cd92831bb1eff6d"/><file name="Test.php" hash="749fb1a3384695e9f24f2fbf5fd82d47"/><file name="Unittest.php" hash="fe5d5590d720d4d2c824bcaf3ca83e55"/></dir><file name="Post.php" hash="c45665581817d711048d37bed0ecb67b"/><dir name="Resource"><file name="Setup.php" hash="c20cba205135fbfb01055518102b4681"/></dir><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Financeamount.php" hash="d21bf32738a9cd371cfd2140c5e8d5d6"/></dir><dir name="Invoice"><file name="Financeamount.php" hash="f6515a9330b30eab9254f2f34e6d1cfb"/></dir></dir><dir name="Quote"><file name="Financeamount.php" hash="6ab0b4a17a0e2b09cc17e4bf58f080e1"/><file name="Totalcost.php" hash="54d35aa594ede6d873b17ef3df180b9b"/></dir></dir><file name="Service.php" hash="5cc3d5959b8e08b11ca754da67776efd"/><file name="Session.php" hash="c2cdc285f6297ad2dc100973022ec6d4"/><file name="Sessionobserver.php" hash="b7ec4aa8a95845dd731522eb7f66196a"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Paybyfinance"><file name="RedirectController.php" hash="8098982cfa01371e3427d0b7a8da6829"/><file name="ServiceController.php" hash="0f394469d41e6b37f9f39d3e666a719f"/></dir></dir><file name="CheckoutController.php" hash="8597b8ce4ce0b3564996e636358ac693"/><file name="NotificationController.php" hash="3a1ad67da91acc34a623ad52d12fcf44"/><file name="SelectorController.php" hash="42a24424f721f425fca70de6dbeff767"/><file name="SessionController.php" hash="b3756993e0d8e6e49434354c824f837e"/><file name="StatusController.php" hash="9e8681654954590f2694780f18ab0675"/></dir><dir name="etc"><file name="adminhtml.xml" hash="216df222a5f5d9fdcf29c238cfd78bd5"/><file name="config.xml" hash="8b67383c26c3856e76b2b1bd0bfee0a8"/><file name="system.xml" hash="f399289f1632bd5476543ff47e61359a"/></dir><dir name="sql"><dir name="paybyfinance_setup"><dir name="html"><file name="abandoned.html" hash="424f900dbddc267f7dac72e67752df25"/><file name="accepted.html" hash="5a12318275410a8bf62d7508422d9503"/><file name="declined.html" hash="bd3e7565c3d98645629d9f6274e4bf24"/><file name="error.html" hash="4a448b052f101b2648dfe84423ad1313"/><file name="information.html" hash="b364458ba3d9ad7579fa4935e3449b46"/><file name="page-finance-options.html" hash="d6786a27e4bf82a73e3134df0f98888b"/><file name="referred.html" hash="5955befddbb2e274f350ba71458b6151"/></dir><file name="mysql4-install-1.0.5.php" hash="80b3cacf2011248d9e283b8cc9130ccc"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="35e40e56f4eaa482cf76861bf268b9d7"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="f88bb5dae696c130c0038c05e86dfd9c"/><file name="mysql4-upgrade-1.0.3-1.0.4.php" hash="abd3f7c7e68120a6bcad82470f62db25"/><file name="mysql4-upgrade-1.0.4-1.0.5.php" hash="2cc09a77b0c36f2f0a2bdce97ba0f50d"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="paybyfinance"><dir><dir name="catalog"><dir name="product"><dir name="list"><file name="finance.phtml" hash="30f6500bc535bdf851ff6d5768e383dc"/></dir></dir></dir><dir name="sales"><dir name="order"><file name="totals.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><file name="form.phtml" hash="6f583d5629e39fe564d4b86535242c7a"/><file name="selector-no.phtml" hash="b54c570f68254a2e879464a0b761c7db"/><file name="selector.phtml" hash="2a4c293be0ec3b13d40a6080725dd8eb"/><file name="status.phtml" hash="9e02cb668c470d72612bccc09e34c51a"/></dir><dir name="checkout"><dir name="cart"><file name="totals-pbf.phtml" hash="f14878e618aa3c8943f3728128aadaa6"/></dir><dir name="onepage"><dir name="review"><file name="info-pbf.phtml" hash="e4c7c70c798f1956ae7aaa5c09114fab"/><file name="totals-pbf.phtml" hash="f26e488359433c3814a1cd416006869a"/></dir></dir><file name="cart-pbf.phtml" hash="9f6b1873ed02e5e2ae1966e3e5a1910d"/></dir></dir><dir name="layout"><file name="paybyfinance.xml" hash="bd1de4f3db77701e8dc3b84895fd18c0"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="paybyfinance.xml" hash="6dd419ed31a10c3fc409a5a58f89fe01"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><dir name="paybyfinance"><file name="checkout.js" hash="21051d8691dd773427d3e761403896ab"/><file name="functions.js" hash="98c27381b3f7eaeaa845271dbe763f05"/><file name="slider.js" hash="16d83f4f0faa449276c926d2afac75fb"/></dir></dir><dir name="css"><file name="paybyfinance.css" hash="25d02dc5cf228662c30d908d7c2f1356"/><file name="paybyfinance-ie8.css" hash="a6be9c7af8b95300bc62e4fe9ef252ac"/></dir><dir name="images"><dir name="paybyfinance"><file name="bullet.png" hash="ea2baab34b2eb7d0aacb7a67d5b080f1"/><file name="pointer-toggle.png" hash="e661d42aed7a5562f75828312c7a635a"/><file name="pointer.png" hash="68c58b28d6ebd77d415f8666c301a199"/><file name="progress.png" hash="6d46a109cc9e38a663678918142d89f2"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="HC_PayByFinance.xml" hash="7cbf54af53b5b2fe9047988444fd407c"/></dir></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.4.26</min><max>5.6.7</max></php></required></dependencies>
|
19 |
</package>
|