Version Notes
First preview release
Download this release
Release Info
Developer | Alexander |
Extension | Altima_BetterCreditCardForm |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/local/Altima/BetterCreditCardForm/Block/Bettercreditcardformjs.php +80 -0
- app/code/local/Altima/BetterCreditCardForm/Helper/Data.php +27 -0
- app/code/local/Altima/BetterCreditCardForm/Model/Layout/Generate/Observer.php +48 -0
- app/code/local/Altima/BetterCreditCardForm/controllers/Adminhtml/BettercreditcartformController.php +35 -0
- app/code/local/Altima/BetterCreditCardForm/etc/config.xml +109 -0
- app/code/local/Altima/BetterCreditCardForm/etc/system.xml +64 -0
- app/code/local/Altima/BetterCreditCardForm/sql/altima_bettercreditcardform_setup/install-1.0.0.php +22 -0
- app/etc/modules/Altima_BetterCreditCardForm.xml +32 -0
- app/locale/en_US/Altima_BetterCreditCardForm.csv +43 -0
- js/altima/bettercreditcardform/card.js +1980 -0
- js/altima/bettercreditcardform/check_jquery.js +9 -0
- js/altima/bettercreditcardform/check_jquery.js~ +16 -0
- js/altima/bettercreditcardform/jquery-migrate-1.2.1.min.js +2 -0
- js/altima/bettercreditcardform/jquery.card.js +2023 -0
- js/altima/bettercreditcardform/jquery.noconflict.js +1 -0
- package.xml +18 -0
app/code/local/Altima/BetterCreditCardForm/Block/Bettercreditcardformjs.php
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Altima Better Credit Card Form Extension
|
5 |
+
*
|
6 |
+
* Altima web systems.
|
7 |
+
*
|
8 |
+
* NOTICE OF LICENSE
|
9 |
+
*
|
10 |
+
* This source file is subject to the EULA
|
11 |
+
* that is available through the world-wide-web at this URL:
|
12 |
+
* http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
13 |
+
*
|
14 |
+
* @category Altima
|
15 |
+
* @package Altima_BetterCreditCardForm
|
16 |
+
* @author Altima Web Systems http://altimawebsystems.com/
|
17 |
+
* @license http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
18 |
+
* @email support@altima.net.au
|
19 |
+
* @copyright Copyright (c) 2012 Altima Web Systems (http://altimawebsystems.com/)
|
20 |
+
*/
|
21 |
+
class Altima_BetterCreditCardForm_Block_BetterCreditCardFormjs extends Mage_Core_Block_Template {
|
22 |
+
|
23 |
+
public function _toHtml() {
|
24 |
+
$helper = Mage::helper('altima_bettercreditcardform');
|
25 |
+
$message = false;
|
26 |
+
|
27 |
+
$output = '
|
28 |
+
<script type="text/javascript">
|
29 |
+
|
30 |
+
jQuery("#checkout-payment-method-load").bind("DOMNodeInserted DOMNodeRemoved", function() {
|
31 |
+
if (!jQuery("div").is(".card-wrapper")) {
|
32 |
+
jQuery( "#payment_form_ccsave" ).prepend( "<div class=\'card-wrapper\'></div>" );
|
33 |
+
jQuery( "#payment_form_ccsave" ).append( "<input id=\'card-expiry\' name=\'card-expiry\' type=\'hidden\' />" );
|
34 |
+
var card_img = jQuery("#co-payment-form");
|
35 |
+
var card = new Card({
|
36 |
+
form: "#co-payment-form",
|
37 |
+
container: ".card-wrapper",
|
38 |
+
formSelectors: {
|
39 |
+
numberInput: "input#ccsave_cc_number",
|
40 |
+
expiryInput: "input#card-expiry",
|
41 |
+
cvcInput: "input#ccsave_cc_cid",
|
42 |
+
nameInput: "input#ccsave_cc_owner"
|
43 |
+
},
|
44 |
+
width: 200,
|
45 |
+
formatting: true,
|
46 |
+
debug: false
|
47 |
+
});
|
48 |
+
var exp_m = "**";
|
49 |
+
var exp_y = "**";
|
50 |
+
jQuery("#ccsave_expiration").change(function () {
|
51 |
+
jQuery( "select#ccsave_expiration option:selected" ).each(function() {
|
52 |
+
exp_m = jQuery( this ).val();
|
53 |
+
});
|
54 |
+
|
55 |
+
jQuery("input[name=\'card-expiry\']").val(exp_m+"/"+exp_y).change();
|
56 |
+
jQuery(".jp-card-expiry").html(exp_m+"/"+exp_y);
|
57 |
+
jQuery(".jp-card-expiry").addClass("jp-card-focused");
|
58 |
+
});
|
59 |
+
|
60 |
+
jQuery("#ccsave_expiration_yr").change(function () {
|
61 |
+
jQuery( "select#ccsave_expiration_yr option:selected" ).each(function() {
|
62 |
+
exp_y = jQuery( this ).val();
|
63 |
+
});
|
64 |
+
|
65 |
+
jQuery("input[name=\'card-expiry\']").val(exp_m+"/"+exp_y).change();
|
66 |
+
jQuery(".jp-card-expiry").html(exp_m+"/"+exp_y);
|
67 |
+
jQuery(".jp-card-expiry").addClass("jp-card-focused");
|
68 |
+
});
|
69 |
+
|
70 |
+
}
|
71 |
+
});
|
72 |
+
|
73 |
+
</script>
|
74 |
+
<script src="/js/altima/bettercreditcardform/jquery.card.js"></script>
|
75 |
+
';
|
76 |
+
|
77 |
+
return $output;
|
78 |
+
}
|
79 |
+
|
80 |
+
}
|
app/code/local/Altima/BetterCreditCardForm/Helper/Data.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Altima Better Credit Card Form Extension
|
5 |
+
*
|
6 |
+
* Altima web systems.
|
7 |
+
*
|
8 |
+
* NOTICE OF LICENSE
|
9 |
+
*
|
10 |
+
* This source file is subject to the EULA
|
11 |
+
* that is available through the world-wide-web at this URL:
|
12 |
+
* http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
13 |
+
*
|
14 |
+
* @category Altima
|
15 |
+
* @package Altima_BetterCreditCardForm
|
16 |
+
* @author Altima Web Systems http://altimawebsystems.com/
|
17 |
+
* @license http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
18 |
+
* @email support@altima.net.au
|
19 |
+
* @copyright Copyright (c) 2012 Altima Web Systems (http://altimawebsystems.com/)
|
20 |
+
*/
|
21 |
+
class Altima_BetterCreditCardForm_Helper_Data extends Mage_Core_Helper_Abstract {
|
22 |
+
|
23 |
+
public function getEnabled() {
|
24 |
+
return Mage::getStoreConfig('altima_bettercreditcardform/general/enabled');
|
25 |
+
}
|
26 |
+
|
27 |
+
}
|
app/code/local/Altima/BetterCreditCardForm/Model/Layout/Generate/Observer.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Altima Better Credit Card Form Extension
|
5 |
+
*
|
6 |
+
* Altima web systems.
|
7 |
+
*
|
8 |
+
* NOTICE OF LICENSE
|
9 |
+
*
|
10 |
+
* This source file is subject to the EULA
|
11 |
+
* that is available through the world-wide-web at this URL:
|
12 |
+
* http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
13 |
+
*
|
14 |
+
* @category Altima
|
15 |
+
* @package Altima_BetterCreditCardForm
|
16 |
+
* @author Altima Web Systems http://altimawebsystems.com/
|
17 |
+
* @license http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
18 |
+
* @email support@altima.net.au
|
19 |
+
* @copyright Copyright (c) 2012 Altima Web Systems (http://altimawebsystems.com/)
|
20 |
+
*/
|
21 |
+
class Altima_BetterCreditCardForm_Model_Layout_Generate_Observer {
|
22 |
+
|
23 |
+
public function __construct() {
|
24 |
+
|
25 |
+
}
|
26 |
+
|
27 |
+
public function includeJavascripts($observer) {
|
28 |
+
|
29 |
+
$helper = Mage::helper('altima_bettercreditcardform');
|
30 |
+
if ($helper->getEnabled()) {
|
31 |
+
|
32 |
+
|
33 |
+
$layout = Mage::app()->getLayout();
|
34 |
+
$content = $layout->getBlock('footer');
|
35 |
+
|
36 |
+
$_head = $layout->getBlock('head');
|
37 |
+
if ($_head) {
|
38 |
+
$_head->addJs('altima/bettercreditcardform/check_jquery.js');
|
39 |
+
$_head->addJs('altima/bettercreditcardform/jquery.noconflict.js');
|
40 |
+
}
|
41 |
+
if ($content = $layout->getBlock('footer')) {
|
42 |
+
$block = $layout->createBlock('altima_bettercreditcardform/bettercreditcardformjs');
|
43 |
+
$content->insert($block);
|
44 |
+
}
|
45 |
+
}
|
46 |
+
}
|
47 |
+
|
48 |
+
}
|
app/code/local/Altima/BetterCreditCardForm/controllers/Adminhtml/BettercreditcartformController.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Altima BetterCreditCardForm Conversion Optimisation Extension
|
5 |
+
*
|
6 |
+
* Altima web systems.
|
7 |
+
*
|
8 |
+
* NOTICE OF LICENSE
|
9 |
+
*
|
10 |
+
* This source file is subject to the EULA
|
11 |
+
* that is available through the world-wide-web at this URL:
|
12 |
+
* http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
13 |
+
*
|
14 |
+
* @category Altima
|
15 |
+
* @package Altima_BetterCreditCardForm
|
16 |
+
* @author Altima Web Systems http://altimawebsystems.com/
|
17 |
+
* @license http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
18 |
+
* @email support@altima.net.au
|
19 |
+
* @copyright Copyright (c) 2012 Altima Web Systems (http://altimawebsystems.com/)
|
20 |
+
*/
|
21 |
+
class Altima_BetterCreditCardForm_Adminhtml_BetterCreditCardFormController extends Mage_Adminhtml_Controller_Action {
|
22 |
+
|
23 |
+
protected function _construct() {
|
24 |
+
$this->setUsedModuleName('Altima_BetterCreditCardForm');
|
25 |
+
}
|
26 |
+
|
27 |
+
public function indexAction() {
|
28 |
+
$this->loadLayout()->renderLayout();
|
29 |
+
}
|
30 |
+
|
31 |
+
protected function _isAllowed() {
|
32 |
+
return Mage::getSingleton('admin/session')->isAllowed('altima_bettercreditcardform/bettercreditcardform');
|
33 |
+
}
|
34 |
+
|
35 |
+
}
|
app/code/local/Altima/BetterCreditCardForm/etc/config.xml
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Altima Better Credit Card Form Extension
|
5 |
+
*
|
6 |
+
* Altima web systems.
|
7 |
+
*
|
8 |
+
* NOTICE OF LICENSE
|
9 |
+
*
|
10 |
+
* This source file is subject to the EULA
|
11 |
+
* that is available through the world-wide-web at this URL:
|
12 |
+
* http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
13 |
+
*
|
14 |
+
* @category Altima
|
15 |
+
* @package Altima_BetterCreditCardForm
|
16 |
+
* @author Altima Web Systems http://altimawebsystems.com/
|
17 |
+
* @license http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
18 |
+
* @email support@altima.net.au
|
19 |
+
* @copyright Copyright (c) 2012 Altima Web Systems (http://altimawebsystems.com/)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Altima_BetterCreditCardForm>
|
25 |
+
<version>1.0.0</version>
|
26 |
+
</Altima_BetterCreditCardForm>
|
27 |
+
</modules>
|
28 |
+
<global>
|
29 |
+
<models>
|
30 |
+
<altima_bettercreditcardform>
|
31 |
+
<class>Altima_BetterCreditCardForm_Model</class>
|
32 |
+
</altima_bettercreditcardform>
|
33 |
+
</models>
|
34 |
+
<extraconfig />
|
35 |
+
<blocks>
|
36 |
+
<altima_bettercreditcardform>
|
37 |
+
<class>Altima_BetterCreditCardForm_Block</class>
|
38 |
+
</altima_bettercreditcardform>
|
39 |
+
</blocks>
|
40 |
+
<resources>
|
41 |
+
<altima_bettercreditcardform_setup>
|
42 |
+
<setup>
|
43 |
+
<module>Altima_BetterCreditCardForm</module>
|
44 |
+
</setup>
|
45 |
+
<connection>
|
46 |
+
<use>core_setup</use>
|
47 |
+
</connection>
|
48 |
+
</altima_bettercreditcardform_setup>
|
49 |
+
<altima_bettercreditcardform_write>
|
50 |
+
<connection>
|
51 |
+
<use>core_write</use>
|
52 |
+
</connection>
|
53 |
+
</altima_bettercreditcardform_write>
|
54 |
+
<altima_bettercreditcardform_read>
|
55 |
+
<connection>
|
56 |
+
<use>core_read</use>
|
57 |
+
</connection>
|
58 |
+
</altima_bettercreditcardform_read>
|
59 |
+
</resources>
|
60 |
+
<helpers>
|
61 |
+
<altima_bettercreditcardform>
|
62 |
+
<class>Altima_BetterCreditCardForm_Helper</class>
|
63 |
+
</altima_bettercreditcardform>
|
64 |
+
</helpers>
|
65 |
+
<events>
|
66 |
+
<controller_action_layout_render_before_checkout_onepage_index>
|
67 |
+
<observers>
|
68 |
+
<bettercreditcardform_layout_generate_observer>
|
69 |
+
<type>singleton</type>
|
70 |
+
<class>altima_bettercreditcardform/layout_generate_observer</class>
|
71 |
+
<method>includeJavascripts</method>
|
72 |
+
</bettercreditcardform_layout_generate_observer>
|
73 |
+
</observers>
|
74 |
+
</controller_action_layout_render_before_checkout_onepage_index>
|
75 |
+
</events>
|
76 |
+
</global>
|
77 |
+
<adminhtml>
|
78 |
+
<acl>
|
79 |
+
<resources>
|
80 |
+
<admin>
|
81 |
+
<children>
|
82 |
+
<system>
|
83 |
+
<children>
|
84 |
+
<config>
|
85 |
+
<children>
|
86 |
+
<altima_bettercreditcardform>
|
87 |
+
<title>BetterCreditCartForm section</title>
|
88 |
+
</altima_bettercreditcardform>
|
89 |
+
</children>
|
90 |
+
</config>
|
91 |
+
</children>
|
92 |
+
</system>
|
93 |
+
</children>
|
94 |
+
</admin>
|
95 |
+
</resources>
|
96 |
+
</acl>
|
97 |
+
</adminhtml>
|
98 |
+
<admin>
|
99 |
+
<routers>
|
100 |
+
<adminhtml>
|
101 |
+
<args>
|
102 |
+
<modules>
|
103 |
+
<Altima_BetterCreditCardForm before="Mage_Adminhtml">Altima_BetterCreditCartForm_Adminhtml</Altima_BetterCreditCardForm>
|
104 |
+
</modules>
|
105 |
+
</args>
|
106 |
+
</adminhtml>
|
107 |
+
</routers>
|
108 |
+
</admin>
|
109 |
+
</config>
|
app/code/local/Altima/BetterCreditCardForm/etc/system.xml
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Altima Better Credit Card Form Extension
|
5 |
+
*
|
6 |
+
* Altima web systems.
|
7 |
+
*
|
8 |
+
* NOTICE OF LICENSE
|
9 |
+
*
|
10 |
+
* This source file is subject to the EULA
|
11 |
+
* that is available through the world-wide-web at this URL:
|
12 |
+
* http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
13 |
+
*
|
14 |
+
* @category Altima
|
15 |
+
* @package Altima_BetterCreditCardForm
|
16 |
+
* @author Altima Web Systems http://altimawebsystems.com/
|
17 |
+
* @license http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
18 |
+
* @email support@altima.net.au
|
19 |
+
* @copyright Copyright (c) 2012 Altima Web Systems (http://altimawebsystems.com/)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<tabs>
|
24 |
+
<altima translate="label comment" module="altima_bettercreditcardform">
|
25 |
+
<label>Altima</label>
|
26 |
+
<sort_order>500</sort_order>
|
27 |
+
<show_in_default>1</show_in_default>
|
28 |
+
<show_in_website>1</show_in_website>
|
29 |
+
<show_in_store>1</show_in_store>
|
30 |
+
</altima>
|
31 |
+
</tabs>
|
32 |
+
<sections>
|
33 |
+
<altima_bettercreditcardform translate="label comment" module="altima_bettercreditcardform">
|
34 |
+
<tab>altima</tab>
|
35 |
+
<label>Better Credit Card Form</label>
|
36 |
+
<frontend_type>text</frontend_type>
|
37 |
+
<sort_order>600</sort_order>
|
38 |
+
<show_in_default>1</show_in_default>
|
39 |
+
<show_in_website>1</show_in_website>
|
40 |
+
<show_in_store>1</show_in_store>
|
41 |
+
<groups>
|
42 |
+
<general translate="label comment" module="altima_bettercreditcardform">
|
43 |
+
<label>General Settings</label>
|
44 |
+
<frontend_type>text</frontend_type>
|
45 |
+
<sort_order>10</sort_order>
|
46 |
+
<show_in_default>1</show_in_default>
|
47 |
+
<show_in_website>1</show_in_website>
|
48 |
+
<show_in_store>1</show_in_store>
|
49 |
+
<fields>
|
50 |
+
<enabled translate="label">
|
51 |
+
<label>Enabled</label>
|
52 |
+
<frontend_type>select</frontend_type>
|
53 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
54 |
+
<sort_order>10</sort_order>
|
55 |
+
<show_in_default>1</show_in_default>
|
56 |
+
<show_in_website>1</show_in_website>
|
57 |
+
<show_in_store>1</show_in_store>
|
58 |
+
</enabled>
|
59 |
+
</fields>
|
60 |
+
</general>
|
61 |
+
</groups>
|
62 |
+
</altima_bettercreditcardform>
|
63 |
+
</sections>
|
64 |
+
</config>
|
app/code/local/Altima/BetterCreditCardForm/sql/altima_bettercreditcardform_setup/install-1.0.0.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Altima Better Credit Card Form Extension
|
5 |
+
*
|
6 |
+
* Altima web systems.
|
7 |
+
*
|
8 |
+
* NOTICE OF LICENSE
|
9 |
+
*
|
10 |
+
* This source file is subject to the EULA
|
11 |
+
* that is available through the world-wide-web at this URL:
|
12 |
+
* http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
13 |
+
*
|
14 |
+
* @category Altima
|
15 |
+
* @package Altima_BetterCreditCardForm
|
16 |
+
* @author Altima Web Systems http://altimawebsystems.com/
|
17 |
+
* @license http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
18 |
+
* @email support@altima.net.au
|
19 |
+
* @copyright Copyright (c) 2012 Altima Web Systems (http://altimawebsystems.com/)
|
20 |
+
*/
|
21 |
+
$this->startSetup();
|
22 |
+
$this->endSetup();
|
app/etc/modules/Altima_BetterCreditCardForm.xml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Altima Better Credit Card Form Extension
|
5 |
+
*
|
6 |
+
* Altima web systems.
|
7 |
+
*
|
8 |
+
* NOTICE OF LICENSE
|
9 |
+
*
|
10 |
+
* This source file is subject to the EULA
|
11 |
+
* that is available through the world-wide-web at this URL:
|
12 |
+
* http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
13 |
+
*
|
14 |
+
* @category Altima
|
15 |
+
* @package Altima_BetterCreditCardForm
|
16 |
+
* @author Altima Web Systems http://altimawebsystems.com/
|
17 |
+
* @license http://blog.altima.net.au/lookbook-magento-extension/lookbook-professional-licence/
|
18 |
+
* @email support@altima.net.au
|
19 |
+
* @copyright Copyright (c) 2012 Altima Web Systems (http://altimawebsystems.com/)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Altima_BetterCreditCardForm>
|
25 |
+
<active>true</active>
|
26 |
+
<codePool>local</codePool>
|
27 |
+
<depends>
|
28 |
+
<Mage_Catalog />
|
29 |
+
</depends>
|
30 |
+
</Altima_BetterCreditCardForm>
|
31 |
+
</modules>
|
32 |
+
</config>
|
app/locale/en_US/Altima_BetterCreditCardForm.csv
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"",""
|
2 |
+
"Action","Action"
|
3 |
+
"An error occurred while updating the Better credit cart form.","An error occurred while updating the Better credit cart form."
|
4 |
+
"Are you sure?","Are you sure?"
|
5 |
+
"Change status","Change status"
|
6 |
+
"Could not find Extension to delete.","Could not find Extension to delete."
|
7 |
+
"Created at","Created at"
|
8 |
+
"Declare attribute value saving scope","Declare attribute value saving scope"
|
9 |
+
"Default Values","Default Values"
|
10 |
+
"Delete File","Delete File"
|
11 |
+
"Delete Extension","Delete Extension"
|
12 |
+
"Delete","Delete"
|
13 |
+
"Disabled","Disabled"
|
14 |
+
"Edit","Edit"
|
15 |
+
"Enable WYSIWYG","Enable WYSIWYG"
|
16 |
+
"Enabled","Enabled"
|
17 |
+
"Error saving","Error saving"
|
18 |
+
"File","File"
|
19 |
+
"Frontend Properties","Frontend Properties"
|
20 |
+
"Global","Global"
|
21 |
+
"Home","Home"
|
22 |
+
"Id","Id"
|
23 |
+
"Image","Image"
|
24 |
+
"No","No"
|
25 |
+
"None","None"
|
26 |
+
"Note","Note"
|
27 |
+
"Better Credit Card Form","Better Credit Card Form"
|
28 |
+
"Position in the admin form","Position in the admin form"
|
29 |
+
"Position","Position"
|
30 |
+
"Properties","Properties"
|
31 |
+
"Reset","Reset"
|
32 |
+
"Save And Continue Edit","Save And Continue Edit"
|
33 |
+
"Scope","Scope"
|
34 |
+
"Status","Status"
|
35 |
+
"Store View","Store View"
|
36 |
+
"Store views","Store views"
|
37 |
+
"Text to appear below the input.","Text to appear below the input."
|
38 |
+
"Updated at","Updated at"
|
39 |
+
"Website","Website"
|
40 |
+
"Yes","Yes"
|
41 |
+
"[GLOBAL]","[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