Version Notes
Always backup before install. This extension is provided as is, no guarantees taken & installation at your own risk. I will try to provide support when I find the time.
Download this release
Release Info
Developer | Lindbaum |
Extension | lindbaum_backendpayment |
Version | 1.0.2 |
Comparing to | |
See all releases |
Version 1.0.2
- app/code/community/Lindbaum/BackendPayment/Helper/Data.php +6 -0
- app/code/community/Lindbaum/BackendPayment/Model/BackendPayment.php +14 -0
- app/code/community/Lindbaum/BackendPayment/etc/config.xml +55 -0
- app/code/community/Lindbaum/BackendPayment/etc/system.xml +44 -0
- app/etc/modules/Lindbaum_BackendPayment.xml +9 -0
- package.xml +20 -0
app/code/community/Lindbaum/BackendPayment/Helper/Data.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class Lindbaum_BackendPayment_Helper_Data extends Mage_Core_Helper_Abstract {
|
5 |
+
|
6 |
+
}
|
app/code/community/Lindbaum/BackendPayment/Model/BackendPayment.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Lindbaum_BackendPayment_Model_BackendPayment extends Mage_Payment_Model_Method_Abstract
|
4 |
+
{
|
5 |
+
protected $_code = 'backendpayment';
|
6 |
+
protected $_canUseInternal = true;
|
7 |
+
protected $_canUseCheckout = false;
|
8 |
+
protected $_canUseForMultishipping = false;
|
9 |
+
|
10 |
+
public function __construct()
|
11 |
+
{
|
12 |
+
parent::__construct();
|
13 |
+
}
|
14 |
+
}
|
app/code/community/Lindbaum/BackendPayment/etc/config.xml
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Lindbaum_BackendPayment>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</Lindbaum_BackendPayment>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
<blocks>
|
10 |
+
<backendpayment>
|
11 |
+
<class>Lindbaum_BackendPayment_Block</class>
|
12 |
+
</backendpayment>
|
13 |
+
</blocks>
|
14 |
+
<models>
|
15 |
+
<backendpayment>
|
16 |
+
<class>Lindbaum_BackendPayment_Model</class>
|
17 |
+
</backendpayment>
|
18 |
+
</models>
|
19 |
+
<helpers>
|
20 |
+
<backendpayment>
|
21 |
+
<class>Lindbaum_BackendPayment_Helper</class>
|
22 |
+
</backendpayment>
|
23 |
+
</helpers>
|
24 |
+
<resources>
|
25 |
+
<backendpayment_setup>
|
26 |
+
<setup>
|
27 |
+
<module>Lindbaum_BackendPayment</module>
|
28 |
+
</setup>
|
29 |
+
<connection>
|
30 |
+
<use>core_setup</use>
|
31 |
+
</connection>
|
32 |
+
</backendpayment_setup>
|
33 |
+
<backendpayment_write>
|
34 |
+
<connection>
|
35 |
+
<use>core_write</use>
|
36 |
+
</connection>
|
37 |
+
</backendpayment_write>
|
38 |
+
<backendpayment_read>
|
39 |
+
<connection>
|
40 |
+
<use>core_read</use>
|
41 |
+
</connection>
|
42 |
+
</backendpayment_read>
|
43 |
+
</resources>
|
44 |
+
</global>
|
45 |
+
<default>
|
46 |
+
<payment>
|
47 |
+
<backendpayment>
|
48 |
+
<active>0</active>
|
49 |
+
<model>backendpayment/backendPayment</model>
|
50 |
+
<order_status>pending</order_status>
|
51 |
+
<title>Payment as chosen</title>
|
52 |
+
</backendpayment>
|
53 |
+
</payment>
|
54 |
+
</default>
|
55 |
+
</config>
|
app/code/community/Lindbaum/BackendPayment/etc/system.xml
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
<payment>
|
5 |
+
<groups>
|
6 |
+
<backendpayment translate="label" module="payment">
|
7 |
+
<label>Lindbaum BackendPayment</label>
|
8 |
+
<sort_order>670</sort_order>
|
9 |
+
<show_in_default>1</show_in_default>
|
10 |
+
<show_in_website>1</show_in_website>
|
11 |
+
<show_in_store>0</show_in_store>
|
12 |
+
<fields>
|
13 |
+
<active translate="label">
|
14 |
+
<label>Enabled</label>
|
15 |
+
<frontend_type>select</frontend_type>
|
16 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
17 |
+
<sort_order>1</sort_order>
|
18 |
+
<show_in_default>1</show_in_default>
|
19 |
+
<show_in_website>1</show_in_website>
|
20 |
+
<show_in_store>0</show_in_store>
|
21 |
+
</active>
|
22 |
+
<order_status translate="label">
|
23 |
+
<label>New order status</label>
|
24 |
+
<frontend_type>select</frontend_type>
|
25 |
+
<source_model>adminhtml/system_config_source_order_status_processing</source_model>
|
26 |
+
<sort_order>5</sort_order>
|
27 |
+
<show_in_default>1</show_in_default>
|
28 |
+
<show_in_website>1</show_in_website>
|
29 |
+
<show_in_store>0</show_in_store>
|
30 |
+
</order_status>
|
31 |
+
<title translate="label">
|
32 |
+
<label>Title</label>
|
33 |
+
<frontend_type>text</frontend_type>
|
34 |
+
<sort_order>6</sort_order>
|
35 |
+
<show_in_default>1</show_in_default>
|
36 |
+
<show_in_website>1</show_in_website>
|
37 |
+
<show_in_store>0</show_in_store>
|
38 |
+
</title>
|
39 |
+
</fields>
|
40 |
+
</backendpayment>
|
41 |
+
</groups>
|
42 |
+
</payment>
|
43 |
+
</sections>
|
44 |
+
</config>
|
app/etc/modules/Lindbaum_BackendPayment.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Lindbaum_BackendPayment>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Lindbaum_BackendPayment>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>lindbaum_backendpayment</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Adds a payment method only available for admin orders</summary>
|
10 |
+
<description>This very simple extension adds a payment method to your shop that is only available in the backend, when an admin edits or creates orders.
|
11 |
+

|
12 |
+
The payment method can be customised in "name" (shown in invoices etc) and "New order status" (defaults to "Pending").</description>
|
13 |
+
<notes>Always backup before install. This extension is provided as is, no guarantees taken & installation at your own risk. I will try to provide support when I find the time.</notes>
|
14 |
+
<authors><author><name>Lindbaum</name><user>Lindbaum</user><email>s.lindner@lindbaum.de</email></author></authors>
|
15 |
+
<date>2013-03-08</date>
|
16 |
+
<time>23:37:49</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Lindbaum"><dir name="BackendPayment"><dir name="Helper"><file name="Data.php" hash="b92297eb0878d9e0275e081235a35a61"/></dir><dir name="Model"><file name="BackendPayment.php" hash="fe24649396823bbf521fb74c24631d4a"/></dir><dir name="etc"><file name="config.xml" hash="446fae7146108ddbf73551c3fa506eef"/><file name="system.xml" hash="a99203f8cada069761d15286bacd3202"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Lindbaum_BackendPayment.xml" hash="b9956cc86b50922d308376b43e787c77"/></dir></target></contents>
|
18 |
+
<compatible/>
|
19 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
+
</package>
|