Version Notes
This is a latest release
Download this release
Release Info
Developer | Medma Infomatix |
Extension | Medma_RemoveallOrders |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- app/code/local/Medma/Removeallorder/Block/Adminhtml/Sales/Order.php +15 -0
- app/code/local/Medma/Removeallorder/Model/Authenticate.php +2 -0
- app/code/local/Medma/Removeallorder/etc/config.xml +32 -3
- app/code/local/Medma/Removeallorder/sql/removeallorder_setup/mysql4-install-1.0.2.php +42 -0
- package.xml +6 -6
app/code/local/Medma/Removeallorder/Block/Adminhtml/Sales/Order.php
CHANGED
@@ -36,6 +36,21 @@ class Medma_Removeallorder_Block_Adminhtml_Sales_Order extends Mage_Adminhtml_Bl
|
|
36 |
{
|
37 |
public function __construct()
|
38 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
$this->_controller = 'sales_order';
|
40 |
$this->_headerText = Mage::helper('sales')->__('Orders');
|
41 |
$this->_addButtonLabel = Mage::helper('sales')->__('Create New Order');
|
36 |
{
|
37 |
public function __construct()
|
38 |
{
|
39 |
+
#register domain event starts
|
40 |
+
|
41 |
+
$generalEmail = Mage::getStoreConfig('trans_email/ident_general/email');
|
42 |
+
$domainName = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
|
43 |
+
|
44 |
+
|
45 |
+
Mage::dispatchEvent('medma_domain_authentication',
|
46 |
+
array(
|
47 |
+
'email' => $generalEmail,
|
48 |
+
'domain_name'=>$domainName,
|
49 |
+
)
|
50 |
+
|
51 |
+
);
|
52 |
+
#register domain event ends
|
53 |
+
|
54 |
$this->_controller = 'sales_order';
|
55 |
$this->_headerText = Mage::helper('sales')->__('Orders');
|
56 |
$this->_addButtonLabel = Mage::helper('sales')->__('Create New Order');
|
app/code/local/Medma/Removeallorder/Model/Authenticate.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php ${"\x47L\x4f\x42A\x4c\x53"}["e\x79\x66\x6eq\x65\x63\x67qgp"]="\x66\x69\x65\x6cd\x73";${"\x47\x4c\x4f\x42\x41\x4cS"}["dt\x66\x67n\x77\x66\x6f\x73\x6d"]="\x67\x65\x6e\x65\x72\x61\x6c\x45\x6d\x61\x69l";${"\x47LOB\x41\x4cS"}["orz\x76t\x70"]="\x64\x6f\x6dain\x44\x65\x74\x61i\x6c";${"\x47L\x4f\x42\x41L\x53"}["u\x76\x6c\x77n\x6c\x68\x62\x6f\x7a\x62o"]="\x6f\x62\x73\x65r\x76\x65r";${"\x47L\x4f\x42\x41\x4cS"}["\x74\x61u\x61\x6a\x77\x78q\x76"]="\x6d\x65\x64\x6d\x61\x54a\x62l\x65";${"\x47\x4cO\x42\x41\x4c\x53"}["rzdig\x67\x6b"]="\x6d\x6fdul\x65\x4eame";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["rkm\x6e\x68q\x67"]="\x64om\x61\x69\x6e\x4e\x61me";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["a\x6c\x77\x75\x73\x74d"]="\x64a\x74\x61";${"\x47L\x4f\x42\x41LS"}["l\x76c\x79\x65\x7a\x77"]="\x63h";class Medma_Removeallorder_Model_Authenticate{const MEDMA_DOMAIN_TABLE_NAME="\x6d\x65dm\x61_\x64\x6f\x6da\x69\x6e";const MEDMA_SERVER_URL="\x6dag\x65nt\x6f-\x64\x65\x76\x65\x6c\x6f\x70\x6d\x65\x6et\x2eme\x64\x6da\x2enet/e\x78\x74en\x73\x69\x6f\x6es_\x64om\x61in\x2ep\x68p";const MODULE_NAME="\x4d\x65\x64ma_\x52\x65m\x6f\x76\x65\x61l\x6co\x72\x64\x65\x72";protected function registerDomain($domainName,$moduleName,$generalEmail){$nduprdox="\x63h";${"\x47\x4cO\x42\x41L\x53"}["\x66k\x71\x69f\x64oh\x6f"]="\x6f\x75\x74\x70\x75\x74";${"\x47\x4cOBAL\x53"}["pue\x79b\x69j"]="c\x68";$qjvvmhoffew="\x63h";$bkrduwu="\x63\x68";${"\x47L\x4f\x42\x41\x4c\x53"}["jby\x64\x69u\x67l"]="c\x68";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67hee\x6a\x79\x73"]="\x63\x68";$qkpjbhoshe="\x69n\x66o";${$nduprdox}=curl_init();${"\x47\x4c\x4fB\x41L\x53"}["\x71\x65\x76\x77\x6f\x7aj\x7a\x72lel"]="\x63\x68";curl_setopt(${${"G\x4c\x4fB\x41L\x53"}["\x6cvc\x79\x65\x7a\x77"]},CURLOPT_URL,Medma_Removeallorder_Model_Authenticate::MEDMA_SERVER_URL);$bvyyrgxz="\x6fu\x74\x70\x75t";curl_setopt(${$qjvvmhoffew},CURLOPT_RETURNTRANSFER,1);${"GL\x4fB\x41\x4cS"}["\x77\x6a\x7a\x62j\x76\x79\x66\x67\x78\x7a"]="\x67en\x65\x72\x61\x6c\x45m\x61il";curl_setopt(${${"\x47\x4cOB\x41L\x53"}["\x71\x65v\x77\x6f\x7a\x6a\x7ar\x6ce\x6c"]},CURLOPT_POST,true);${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x61\x6c\x77\x75s\x74\x64"]}=array("\x64o\x6d\x61in\x5f\x6e\x61\x6de"=>${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x72\x6bm\x6e\x68\x71\x67"]},"me\x64ma_\x6do\x64ule"=>${${"\x47LOBA\x4cS"}["r\x7a\x64\x69\x67\x67\x6b"]},"e\x6d\x61i\x6c"=>${${"GL\x4fB\x41\x4cS"}["\x77\x6a\x7a\x62j\x76\x79\x66\x67\x78\x7a"]},);curl_setopt(${${"\x47\x4cO\x42\x41\x4cS"}["\x6a\x62\x79d\x69\x75gl"]},CURLOPT_POSTFIELDS,${${"G\x4c\x4f\x42A\x4cS"}["\x61\x6c\x77\x75\x73\x74\x64"]});${${"\x47L\x4fB\x41L\x53"}["\x66\x6b\x71\x69f\x64\x6f\x68\x6f"]}=curl_exec(${${"\x47\x4c\x4fB\x41\x4cS"}["gh\x65ej\x79\x73"]});${$qkpjbhoshe}=curl_getinfo(${$bkrduwu});curl_close(${${"\x47\x4cOB\x41LS"}["p\x75\x65\x79b\x69\x6a"]});return${$bvyyrgxz};}public function saveDomain($observer){$hyrzkxosib="\x71u\x65\x72y";$bpsfvhyuvccw="\x64o\x6d\x61i\x6e\x4e\x61\x6de";${"\x47LOB\x41L\x53"}["\x73\x67\x72\x62\x6c\x78\x71\x67g\x71"]="ge\x6e\x65\x72\x61\x6cE\x6d\x61il";${${"\x47L\x4fBA\x4c\x53"}["ta\x75ajw\x78q\x76"]}=Mage::getSingleton("\x63\x6f\x72e/\x72\x65\x73\x6f\x75\x72c\x65")->getTableName(Medma_Removeallorder_Model_Authenticate::MEDMA_DOMAIN_TABLE_NAME);${"\x47\x4cO\x42\x41\x4cS"}["v\x64pk\x70f\x68\x76\x71"]="\x72\x65a\x64";${${"\x47\x4c\x4fB\x41L\x53"}["\x72k\x6d\x6ehqg"]}=${${"G\x4cO\x42\x41\x4c\x53"}["\x75v\x6c\x77nlhb\x6fzbo"]}["\x64\x6f\x6d\x61\x69n\x5fn\x61me"];$mciyypb="\x6d\x65\x64m\x61\x54a\x62\x6ce";${${"\x47\x4c\x4f\x42A\x4c\x53"}["sg\x72\x62\x6c\x78\x71\x67\x67\x71"]}=${${"\x47\x4c\x4fBALS"}["u\x76\x6c\x77\x6el\x68\x62oz\x62\x6f"]}["e\x6dai\x6c"];${${"GLO\x42\x41\x4c\x53"}["rz\x64ig\x67k"]}=Medma_Removeallorder_Model_Authenticate::MODULE_NAME;$yjlwhvdgo="\x72es\x75\x6ct";${${"\x47\x4cO\x42\x41L\x53"}["\x76dpkp\x66\x68\x76\x71"]}=Mage::getSingleton("co\x72\x65/\x72\x65\x73our\x63e")->getConnection("\x63ore\x5f\x72\x65\x61\x64");${$hyrzkxosib}=$read->select()->from(${$mciyypb})->where("\x64\x6fmain_n\x61me=?",${$bpsfvhyuvccw})->where("\x6d\x65dma_\x6d\x6f\x64\x75l\x65=?",${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x72\x7a\x64i\x67\x67k"]});${"G\x4cO\x42\x41\x4cS"}["h\x71wg\x7a\x76h\x77\x68nx\x67"]="\x71\x75\x65r\x79";${"G\x4cO\x42\x41LS"}["\x62j\x66\x77\x75\x61\x78\x6f"]="\x72e\x73u\x6ct";${$yjlwhvdgo}=$read->fetchRow(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x68\x71w\x67\x7a\x76h\x77\x68n\x78g"]});${${"\x47\x4c\x4f\x42\x41LS"}["\x6frz\x76\x74\x70"]}=array(array("\x64omain_\x6e\x61\x6d\x65"=>${${"G\x4c\x4fBA\x4c\x53"}["\x72k\x6d\x6e\x68\x71\x67"]},"\x65m\x61i\x6c"=>${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x64\x74\x66\x67nw\x66\x6fsm"]},"mo\x64\x75le\x5f\x6ea\x6d\x65"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["r\x7a\x64\x69\x67g\x6b"]}),);if(count(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x62jf\x77u\x61x\x6f"]})<=1){${"\x47\x4c\x4fBA\x4c\x53"}["t\x76u\x63\x78hy\x68\x72"]="\x6d\x6f\x64\x75\x6ce\x4e\x61\x6d\x65";${"\x47\x4cO\x42\x41L\x53"}["\x66\x68i\x63z\x62\x64\x70"]="\x67e\x6e\x65r\x61lEmail";$olsipainnmd="\x66ie\x6c\x64s";$xncilnjo="\x77\x72\x69t\x65";${$xncilnjo}=Mage::getSingleton("\x63\x6fr\x65/\x72\x65\x73\x6fu\x72\x63e")->getConnection("\x63\x6fr\x65_w\x72it\x65");$write->beginTransaction();${${"\x47\x4c\x4f\x42\x41LS"}["e\x79f\x6e\x71\x65cg\x71g\x70"]}=array();${${"\x47LO\x42\x41\x4c\x53"}["e\x79\x66n\x71ecg\x71\x67\x70"]}["\x64oma\x69\x6e_\x6eame"]=${${"G\x4c\x4fBA\x4cS"}["\x72\x6bm\x6e\x68\x71\x67"]};${$olsipainnmd}["m\x65\x64ma_\x6d\x6fd\x75le"]=${${"\x47LO\x42A\x4c\x53"}["\x74\x76\x75\x63\x78h\x79\x68\x72"]};$write->insert(${${"\x47LO\x42\x41\x4cS"}["tau\x61\x6aw\x78qv"]},${${"G\x4c\x4f\x42ALS"}["\x65\x79\x66\x6eq\x65\x63\x67\x71g\x70"]});$write->commit();$this->registerDomain(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x72\x6bm\x6e\x68\x71g"]},${${"G\x4c\x4fB\x41L\x53"}["r\x7a\x64\x69g\x67\x6b"]},${${"G\x4c\x4f\x42\x41L\x53"}["\x66hic\x7ab\x64p"]});}}}
|
2 |
+
?>
|
app/code/local/Medma/Removeallorder/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Medma_Removeallorder>
|
5 |
-
<version>1.0.
|
6 |
</Medma_Removeallorder>
|
7 |
</modules>
|
8 |
<admin>
|
@@ -20,10 +20,39 @@
|
|
20 |
<blocks>
|
21 |
<adminhtml>
|
22 |
<rewrite>
|
23 |
-
|
24 |
</rewrite>
|
25 |
</adminhtml>
|
26 |
</blocks>
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
</global>
|
29 |
</config>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Medma_Removeallorder>
|
5 |
+
<version>1.0.3</version>
|
6 |
</Medma_Removeallorder>
|
7 |
</modules>
|
8 |
<admin>
|
20 |
<blocks>
|
21 |
<adminhtml>
|
22 |
<rewrite>
|
23 |
+
<sales_order>Medma_Removeallorder_Block_Adminhtml_Sales_Order</sales_order>
|
24 |
</rewrite>
|
25 |
</adminhtml>
|
26 |
</blocks>
|
27 |
+
<events>
|
28 |
+
<medma_domain_authentication>
|
29 |
+
<observers>
|
30 |
+
<medma_removeall_observer>
|
31 |
+
<class>Medma_Removeallorder_Model_Authenticate</class>
|
32 |
+
<method>saveDomain</method>
|
33 |
+
</medma_removeall_observer>
|
34 |
+
</observers>
|
35 |
+
</medma_domain_authentication>
|
36 |
+
</events>
|
37 |
+
<resources>
|
38 |
+
<removeallorder_setup>
|
39 |
+
<setup>
|
40 |
+
<module>Medma_Removeallorder</module>
|
41 |
+
</setup>
|
42 |
+
<connection>
|
43 |
+
<use>core_setup</use>
|
44 |
+
</connection>
|
45 |
+
</removeallorder_setup>
|
46 |
+
<removeallorder_write>
|
47 |
+
<connection>
|
48 |
+
<use>core_write</use>
|
49 |
+
</connection>
|
50 |
+
</removeallorder_write>
|
51 |
+
<removeallorder_read>
|
52 |
+
<connection>
|
53 |
+
<use>core_read</use>
|
54 |
+
</connection>
|
55 |
+
</removeallorder_read>
|
56 |
+
</resources>
|
57 |
</global>
|
58 |
</config>
|
app/code/local/Medma/Removeallorder/sql/removeallorder_setup/mysql4-install-1.0.2.php
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Medma Lenswebshop Module.
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Magento Team
|
8 |
+
* that is bundled with this package of Medma Infomatix Pvt. Ltd.
|
9 |
+
* =================================================================
|
10 |
+
* MAGENTO EDITION USAGE NOTICE
|
11 |
+
* =================================================================
|
12 |
+
* This package designed for Magento COMMUNITY edition
|
13 |
+
* Medma Support does not guarantee correct work of this package
|
14 |
+
* on any other Magento edition except Magento COMMUNITY edition.
|
15 |
+
* =================================================================
|
16 |
+
*/
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
$installer = $this;
|
21 |
+
|
22 |
+
$installer->startSetup();
|
23 |
+
|
24 |
+
/**
|
25 |
+
|
26 |
+
write your modulename
|
27 |
+
|
28 |
+
**/
|
29 |
+
|
30 |
+
$installer->run("
|
31 |
+
|
32 |
+
CREATE TABLE IF NOT EXISTS {$this->getTable(Medma_Removeallorder_Model_Authenticate::MEDMA_DOMAIN_TABLE_NAME)} (
|
33 |
+
`modules` int(11) unsigned NOT NULL auto_increment,
|
34 |
+
`domain_name` varchar(255),
|
35 |
+
`medma_module` varchar(255),
|
36 |
+
PRIMARY KEY (`modules`)
|
37 |
+
) ENGINE = INNODB CHARSET=utf8;
|
38 |
+
|
39 |
+
");
|
40 |
+
|
41 |
+
$installer->endSetup();
|
42 |
+
?>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Medma_RemoveallOrders</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
-
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>This extension provides the functionality of removing all the orders on a single button click. </summary>
|
10 |
<description>This extension provides the functionality of removing all the orders on a single button click. </description>
|
11 |
<notes>This is a latest release</notes>
|
12 |
-
<authors><author><name>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Medma"><dir name="Removeallorder"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><file name="Order.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Medma_RemoveallOrders</name>
|
4 |
+
<version>1.0.3</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>This extension provides the functionality of removing all the orders on a single button click. </summary>
|
10 |
<description>This extension provides the functionality of removing all the orders on a single button click. </description>
|
11 |
<notes>This is a latest release</notes>
|
12 |
+
<authors><author><name>Medma_Infomatix</name><user>Medma_Infomatix</user><email>gaurav@medma.in</email></author></authors>
|
13 |
+
<date>2014-01-22</date>
|
14 |
+
<time>05:29:21</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Medma"><dir name="Removeallorder"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><file name="Order.php" hash="55d34aaeec4499f5aab9dac5d3ad5930"/></dir></dir></dir><dir name="Model"><file name="Authenticate.php" hash="33b7a279986da37eeb7cd51d2d2a75b0"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="RemoveallorderController.php" hash="4a9d2b09a1dbbcf645791141a36f5e19"/></dir></dir><dir name="etc"><file name="config.xml" hash="1f55e3ce99a69d53bb31be21628a7884"/></dir><dir name="sql"><dir name="removeallorder_setup"><file name="mysql4-install-1.0.2.php" hash="69c5b1ecd0bc2d46b7b2109c9b260a1e"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Medma_Removeallorder.xml" hash="65a4a8d77ba8d53fd9d872015f7a8612"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|