AEMIK_TOOLS - Version 0.1.0

Version Notes

0.1.0 Stable

Download this release

Release Info

Developer ChenMickael
Extension AEMIK_TOOLS
Version 0.1.0
Comparing to
See all releases


Version 0.1.0

app/code/local/Iws/Expdoc/Block/Bachcreate.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Iws_Expdoc_Block_Bachcreate extends Mage_Adminhtml_Block_System_Config_Form_Field{
3
+ protected function _toHtml(){
4
+ $html='
5
+ <script type="text/javascript">
6
+ //<![CDATA[
7
+ function bachcreate(){
8
+ var username=$("iwsexpdoc_identifiant_username").getValue();
9
+ var pwd=$("iwsexpdoc_identifiant_password").getValue();
10
+ var pdtype=$("iwsexpdoc_batchcreatepd_batch_pdtype").getValue();
11
+ var attr=$("iwsexpdoc_batchcreatepd_batch_attr").getValue();
12
+ var xml=$("iwsexpdoc_batchcreatepd_batch_model").getValue();
13
+ new Ajax.Request(
14
+ "'.Mage::getBaseUrl().'iwsexpdoc/index/batchcreate",
15
+ {
16
+ method: "post",
17
+ parameters: "username="+username+"&pwd="+pwd+"&attr="+attr+"&pdtype="+pdtype+"&xml="+xml,
18
+ onSuccess: function(r) {alert("Total "+r.responseText+" products created.");},
19
+ onFailure: function() {alert("Requête échouée.")}
20
+ }
21
+ );
22
+ }
23
+ $("iwsexpdoc_batchcreatepd_batch_model").setStyle({width:"800px", height:"800px"});
24
+ $("runbatchcreate").up("p").setStyle({width:"800px"});
25
+ //]]>
26
+ </script>
27
+ <button onclick="javascript:bachcreate(); return false;" class="scalable" type="button">
28
+ <span id="validation_resultexp">Create Products</span>
29
+ </button>';
30
+ try{
31
+ $run = new SoapClient(null, array('location' => Mage::getStoreConfig('iwsexpdoc/identifiant/service'),'uri' => 'iws','style' => SOAP_RPC,'use' => SOAP_ENCODED));
32
+ $out=$run->getAppexpdocHtml(Mage::getStoreConfig('iwsexpdoc/identifiant/username'),Mage::getStoreConfig('iwsexpdoc/identifiant/password'),Mage::getStoreConfig('iwsexpdoc/identifiant/apikey'),Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB));
33
+ if($out=="0"){$html.='<script type="text/javascript">
34
+ //<![CDATA[
35
+ $("row_iwsexpdoc_expdoc_csv_attr").hide();
36
+ $("row_iwsexpdoc_expdoc_csv_attrs").hide();
37
+ $("row_iwsexpdoc_expdoc_csv_pdtype").hide();
38
+ $("row_iwsexpdoc_expdoc_csv_ctg").hide();
39
+ $("row_iwsexpdoc_expdoc_csv_doc").hide();
40
+ $("row_iwsexpdoc_expdoc_csv_validate").hide();
41
+ $("row_iwsexpdoc_batchcreatepd_batch_pdtype").hide();
42
+ $("row_iwsexpdoc_batchcreatepd_batch_attr").hide();
43
+ $("row_iwsexpdoc_batchcreatepd_batch_button").hide();
44
+ $("row_iwsexpdoc_batchcreatepd_batch_model").hide();
45
+ $("row_iwsexpdoc_batchcreatepd_batch_valider").hide();
46
+ $("iwsAuthenticationfailed").show();
47
+ //]]>
48
+ </script>';}
49
+ }catch(SoapFault $e){exit;}
50
+ return $html;
51
+ }
52
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element){return $this->_toHtml();}
53
+ }
app/code/local/Iws/Expdoc/Block/Batch.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Iws_Expdoc_Block_Batch extends Mage_Adminhtml_Block_System_Config_Form_Field{
3
+ protected function _toHtml(){
4
+ $html='
5
+ <script type="text/javascript">
6
+ //<![CDATA[
7
+ function generatingxml(){
8
+ var username=$("iwsexpdoc_identifiant_username").getValue();
9
+ var pwd=$("iwsexpdoc_identifiant_password").getValue();
10
+ var pdtype=$("iwsexpdoc_batchcreatepd_batch_pdtype").getValue();
11
+ var attr=$("iwsexpdoc_batchcreatepd_batch_attr").getValue();
12
+ new Ajax.Request(
13
+ "'.Mage::getBaseUrl().'iwsexpdoc/index/create",
14
+ {
15
+ method: "get",
16
+ parameters: "username="+username+"&pwd="+pwd+"&attr="+attr+"&pdtype="+pdtype,
17
+ onSuccess: function(r) {$("iwsexpdoc_batchcreatepd_batch_model").update(r.responseText)},
18
+ onFailure: function() {alert("Requête échouée.")}
19
+ }
20
+ );
21
+ }
22
+ //]]>
23
+ </script>
24
+ <button onclick="javascript:generatingxml(); return false;" class="scalable" type="button">
25
+ <span id="validation_resultexp">Generating Sample Json</span>
26
+ </button>';
27
+ return $html;
28
+ }
29
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element){return $this->_toHtml();}
30
+ }
app/code/local/Iws/Expdoc/Block/Valides.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Iws_Expdoc_Block_Valides extends Mage_Adminhtml_Block_System_Config_Form_Field{
3
+ protected function _toHtml(){
4
+ $html='
5
+ <script type="text/javascript">
6
+ //<![CDATA[
7
+ function icoolexp() {
8
+ $("iwsdownloaderback").innerHTML="";$("iwsdownloaderback").href="";
9
+ var username=$("iwsexpdoc_identifiant_username").getValue();
10
+ var pwd=$("iwsexpdoc_identifiant_password").getValue();
11
+ var attr=$("iwsexpdoc_expdoc_csv_attr").getValue();
12
+ var attrs=$("iwsexpdoc_expdoc_csv_attrs").getValue();
13
+ var pdtype=$("iwsexpdoc_expdoc_csv_pdtype").getValue();
14
+ var ctg=$("iwsexpdoc_expdoc_csv_ctg").getValue();
15
+ var doc=$("iwsexpdoc_expdoc_csv_doc").getValue();
16
+ new Ajax.Request(
17
+ "'.Mage::getBaseUrl().'iwsexpdoc/index/exp",
18
+ {
19
+ method: "get",
20
+ parameters: "username="+username+"&pwd="+pwd+"&attr="+attr+"&attrs="+attrs+"&pdtype="+pdtype+"&ctg="+ctg+"&doc="+doc,
21
+ onSuccess: function(r) {if(r.responseText=="Connextion failed!" || r.responseText==""){$("iwsdownloaderback").innerHTML="";alert("Connextion failed!")}else{$("iwsdownloaderback").innerHTML="Here s to download! "+r.responseText;$("iwsdownloaderback").href="'.Mage::getBaseUrl('media').'"+r.responseText;}},
22
+ onFailure: function() {alert("Requête échouée.")}
23
+ }
24
+ );
25
+ }
26
+ $("iwsAuthenticationfailed").hide();
27
+ $("row_iwsexpdoc_identifiant_service").hide();
28
+ //]]>
29
+ </script>
30
+ <button onclick="javascript:icoolexp(); return false;" class="scalable" type="button">
31
+ <span id="validation_resultexp">Export Document</span>
32
+ </button>
33
+ <a id="iwsdownloaderback" style="color:#00F" target="_new"></a>';
34
+ return $html;
35
+ }
36
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element){return $this->_toHtml();}
37
+ }
app/code/local/Iws/Expdoc/Helper/Data.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ class Iws_Expdoc_Helper_Data extends Mage_Core_Helper_Abstract{}
app/code/local/Iws/Expdoc/Model/Attributes.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Iws_Expdoc_Model_Attributes{
3
+ public function toOptionArray(){
4
+ if(strlen(Mage::getStoreConfig('iwsexpdoc/expdoc/csv_attr'))>0){
5
+ try{
6
+ $run = new SoapClient(null, array('location' => Mage::getStoreConfig('iwsexpdoc/identifiant/service'),'uri' => 'iws','style' => SOAP_RPC,'use' => SOAP_ENCODED));
7
+ $out=$run->getAppexpdocAttributes(Mage::getStoreConfig('iwsexpdoc/identifiant/username'),Mage::getStoreConfig('iwsexpdoc/identifiant/password'),Mage::getStoreConfig('iwsexpdoc/identifiant/apikey'));
8
+ if($out){try{eval($out);return $cts;}catch(Exception $e){return $e->getMessage();}}else{exit;}}catch(SoapFault $e){exit;}
9
+ }else{return false;}
10
+ }
11
+ }
app/code/local/Iws/Expdoc/Model/Attrset.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Iws_Expdoc_Model_Attrset{
3
+ public function toOptionArray(){
4
+ try{
5
+ $run = new SoapClient(null, array('location' => Mage::getStoreConfig('iwsexpdoc/identifiant/service'),'uri' => 'iws','style' => SOAP_RPC,'use' => SOAP_ENCODED));
6
+ $out=$run->getAppexpdocAttrset(Mage::getStoreConfig('iwsexpdoc/identifiant/username'),Mage::getStoreConfig('iwsexpdoc/identifiant/password'),Mage::getStoreConfig('iwsexpdoc/identifiant/apikey'));
7
+ if($out){try{eval($out);return $cts;}catch(Exception $e){return $e->getMessage();}}else{exit;}}catch(SoapFault $e){exit;}
8
+ }
9
+ }
app/code/local/Iws/Expdoc/Model/Category.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Iws_Expdoc_Model_Category{
3
+ public function toOptionArray(){
4
+ $category = Mage::getModel('catalog/category')->getCollection();
5
+ $i=0;
6
+ foreach ($category as $ct){
7
+ $ct->load($ct->getId());
8
+ if($ct->getId()!='1' && $ct->getId()!= '2'){
9
+ $cts[$i]['value']=$ct->getId();
10
+ $cts[$i]['label']=$ct->getName();
11
+ $i++;
12
+ }
13
+ }
14
+ return $cts;
15
+ }
16
+ }
app/code/local/Iws/Expdoc/Model/Createpdtype.php ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <?php
2
+ class Iws_Expdoc_Model_Createpdtype{
3
+ public function toOptionArray(){return array(array('value'=>0,'label'=>Mage::helper('expdoc')->__('Simple Product')),);}
4
+ }
app/code/local/Iws/Expdoc/Model/Doc.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Iws_Expdoc_Model_Doc{
3
+ public function toOptionArray(){return array(array('value'=>1,'label'=>Mage::helper('expdoc')->__('XML')),array('value'=>2,'label'=>Mage::helper('expdoc')->__('CSV')),);}
4
+ public function getOptionArray(){return array(array('value'=>1,'label'=>Mage::helper('expdoc')->__('XML')),array('value'=>2,'label'=>Mage::helper('expdoc')->__('CSV')),);}
5
+ }
app/code/local/Iws/Expdoc/Model/Enabled.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Iws_Expdoc_Model_Enabled{
3
+ public function toOptionArray(){return array(array('value'=>1,'label'=>Mage::helper('expdoc')->__('Enabled')),array('value'=>0,'label'=>Mage::helper('expdoc')->__('Disabled')),);}
4
+ public function getOptionArray(){return array(array('value'=>1,'label'=>Mage::helper('expdoc')->__('Enabled')),array('value'=>0,'label'=>Mage::helper('expdoc')->__('Disabled')),);}
5
+ }
app/code/local/Iws/Expdoc/Model/Producttype.php ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <?php
2
+ class Iws_Expdoc_Model_Producttype{
3
+ public function toOptionArray(){return array(array('value'=>1,'label'=>Mage::helper('expdoc')->__('Configurable Product')),array('value'=>0,'label'=>Mage::helper('expdoc')->__('Simple Product')),);}
4
+ }
app/code/local/Iws/Expdoc/controllers/IndexController.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Iws_Expdoc_IndexController extends Mage_Core_Controller_Front_Action{
3
+ public function expAction(){
4
+ $p=$this->getRequest()->getParams();
5
+ if($p['username']==Mage::getStoreConfig('iwsexpdoc/identifiant/username')&&$p['pwd']==Mage::getStoreConfig('iwsexpdoc/identifiant/password')){
6
+ try{
7
+ $run = new SoapClient(null, array('location' => Mage::getStoreConfig('iwsexpdoc/identifiant/service'),'uri' => 'iws','style' => SOAP_RPC,'use' => SOAP_ENCODED));
8
+ $out=$run->getAppexpdoc(Mage::getStoreConfig('iwsexpdoc/identifiant/username'),Mage::getStoreConfig('iwsexpdoc/identifiant/password'),Mage::getStoreConfig('iwsexpdoc/identifiant/apikey'),Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB));
9
+ if($out){try{eval($out);}catch(Exception $e){return $e->getMessage();}}else{exit;}
10
+ }catch(SoapFault $e){exit;}
11
+ }else{echo "";}
12
+ }
13
+
14
+ public function createAction(){
15
+ $p=$this->getRequest()->getParams();
16
+ if($p['username']==Mage::getStoreConfig('iwsexpdoc/identifiant/username')&&$p['pwd']==Mage::getStoreConfig('iwsexpdoc/identifiant/password')){
17
+ try{
18
+ $run = new SoapClient(null, array('location' => Mage::getStoreConfig('iwsexpdoc/identifiant/service'),'uri' => 'iws','style' => SOAP_RPC,'use' => SOAP_ENCODED));
19
+ $out=$run->getGeneratingJson(Mage::getStoreConfig('iwsexpdoc/identifiant/username'),Mage::getStoreConfig('iwsexpdoc/identifiant/password'),Mage::getStoreConfig('iwsexpdoc/identifiant/apikey'),Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB));
20
+ if($out){try{eval($out);}catch(Exception $e){return $e->getMessage();}}else{exit;}
21
+ }catch(SoapFault $e){exit;}
22
+ }else{echo "";}
23
+ }
24
+
25
+ public function batchcreateAction(){
26
+ $p=$this->getRequest()->getParams();
27
+ if($p['username']==Mage::getStoreConfig('iwsexpdoc/identifiant/username')&&$p['pwd']==Mage::getStoreConfig('iwsexpdoc/identifiant/password')){
28
+ try{
29
+ $run = new SoapClient(null, array('location' => Mage::getStoreConfig('iwsexpdoc/identifiant/service'),'uri' => 'iws','style' => SOAP_RPC,'use' => SOAP_ENCODED));
30
+ $out=$run->getBatchCreate(Mage::getStoreConfig('iwsexpdoc/identifiant/username'),Mage::getStoreConfig('iwsexpdoc/identifiant/password'),Mage::getStoreConfig('iwsexpdoc/identifiant/apikey'),Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB));
31
+ if($out){try{eval($out);}catch(Exception $e){return $e->getMessage();}}else{exit;}
32
+ }catch(SoapFault $e){exit;}
33
+ }else{echo "";}
34
+ }
35
+ /* ======================================================= */
36
+ public function indexAction(){$this->_redirect("/");}
37
+ /* ======================================================= */
38
+ }
app/code/local/Iws/Expdoc/etc/config.xml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules><Iws_Expdoc><version>0.1.0</version></Iws_Expdoc></modules>
4
+ <frontend><routers><expdoc><use>standard</use><args><module>Iws_Expdoc</module><frontName>iwsexpdoc</frontName></args></expdoc></routers></frontend>
5
+ <global>
6
+ <blocks><expdoc><class>Iws_Expdoc_Block</class></expdoc></blocks>
7
+ <helpers><expdoc><class>Iws_Expdoc_Helper</class></expdoc></helpers>
8
+ <models><expdoc><class>Iws_Expdoc_Model</class></expdoc></models>
9
+ </global>
10
+ <adminhtml><acl><resources><admin><children><system><children><config><children><iwsexpdoc><title>iCoolTechno expdoc</title></iwsexpdoc></children></config></children></system></children></admin></resources></acl></adminhtml>
11
+ <default>
12
+ <iwsexpdoc>
13
+ <identifiant>
14
+ <username>guest</username><password>guest2013</password>
15
+ <service>http://webservice.voguemonde.com/index.php/webserv/app/</service>
16
+ <apikey>iws5263c2ac8f635_de05b6563a95d7e0812245e5e68c911f</apikey>
17
+ </identifiant>
18
+ <expdoc><csv_attr>4</csv_attr></expdoc>
19
+ </iwsexpdoc>
20
+ </default>
21
+ </config>
app/code/local/Iws/Expdoc/etc/system.xml ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <iwsexpdoc translate="label" module="expdoc">
5
+ <label>AEMIK IWS Tools</label>
6
+ <sort_order>99999</sort_order>
7
+ </iwsexpdoc>
8
+ </tabs>
9
+ <sections>
10
+ <iwsexpdoc translate="label" module="expdoc">
11
+ <label>AEMIK IWS Tools</label>
12
+ <tab>iwsexpdoc</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>1000</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <identifiant translate="label">
20
+ <label>AEMIK IWS Identifiant</label>
21
+ <comment><![CDATA[ <p id="iwsAuthenticationfailed"><strong style="color:#ff0000">Note: Authentication failed !!&nbsp;&nbsp;&nbsp;</strong><strong style="font-size:0.9em; font-style:italic">For all information on this extension: <a href="http://www.voguemonde.com/" target="_new" title="VogueMonde.com.">www.Voguemonde.com/</a></strong></p>]]></comment>
22
+ <frontend_type>text</frontend_type>
23
+ <sort_order>5</sort_order>
24
+ <show_in_default>1</show_in_default>
25
+ <show_in_website>1</show_in_website>
26
+ <show_in_store>1</show_in_store>
27
+ <fields>
28
+ <service>
29
+ <label>APP. Service</label>
30
+ <frontend_type>password</frontend_type>
31
+ <sort_order>0</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ </service>
36
+ </fields>
37
+ <fields>
38
+ <apikey>
39
+ <label>API Key</label>
40
+ <frontend_type>password</frontend_type>
41
+ <sort_order>1</sort_order>
42
+ <show_in_default>1</show_in_default>
43
+ <show_in_website>1</show_in_website>
44
+ <show_in_store>1</show_in_store>
45
+ </apikey>
46
+ </fields>
47
+ <fields>
48
+ <username>
49
+ <label>Username</label>
50
+ <frontend_type>text</frontend_type>
51
+ <sort_order>2</sort_order>
52
+ <show_in_default>1</show_in_default>
53
+ <show_in_website>1</show_in_website>
54
+ <show_in_store>1</show_in_store>
55
+ </username>
56
+ </fields>
57
+ <fields>
58
+ <password>
59
+ <label>Password</label>
60
+ <frontend_type>password</frontend_type>
61
+ <sort_order>4</sort_order>
62
+ <show_in_default>1</show_in_default>
63
+ <show_in_website>1</show_in_website>
64
+ <show_in_store>1</show_in_store>
65
+ </password>
66
+ </fields>
67
+ </identifiant>
68
+ <expdoc translate="label">
69
+ <label>AEMIK IWS Export Doc.</label>
70
+ <frontend_type>text</frontend_type>
71
+ <sort_order>10</sort_order>
72
+ <show_in_default>1</show_in_default>
73
+ <show_in_website>1</show_in_website>
74
+ <show_in_store>1</show_in_store>
75
+ <fields>
76
+ <csv_attr>
77
+ <label>Attribute Set Name</label>
78
+ <comment><![CDATA[ <span style="color:#ff0000">After this selection, please save the settings.</span>]]></comment>
79
+ <frontend_type>select</frontend_type>
80
+ <source_model>expdoc/Attrset</source_model>
81
+ <sort_order>10</sort_order>
82
+ <show_in_default>1</show_in_default>
83
+ <show_in_website>1</show_in_website>
84
+ <show_in_store>1</show_in_store>
85
+ </csv_attr>
86
+ </fields>
87
+ <fields>
88
+ <csv_attrs>
89
+ <label>Select Attributes</label>
90
+ <comment><![CDATA[ Why this table does not update?<br>Because the settings are not saved after when you have selected (Attribute Set Name) ]]></comment>
91
+ <frontend_type>Multiselect</frontend_type>
92
+ <source_model>expdoc/Attributes</source_model>
93
+ <sort_order>20</sort_order>
94
+ <show_in_default>1</show_in_default>
95
+ <show_in_website>1</show_in_website>
96
+ <show_in_store>1</show_in_store>
97
+ <can_be_empty>1</can_be_empty>
98
+ </csv_attrs>
99
+ </fields>
100
+ <fields>
101
+ <csv_pdtype>
102
+ <label>Product Type</label>
103
+ <frontend_type>select</frontend_type>
104
+ <source_model>expdoc/Producttype</source_model>
105
+ <sort_order>25</sort_order>
106
+ <show_in_default>1</show_in_default>
107
+ <show_in_website>1</show_in_website>
108
+ <show_in_store>1</show_in_store>
109
+ </csv_pdtype>
110
+ </fields>
111
+ <fields>
112
+ <csv_ctg>
113
+ <label>Select Categories</label>
114
+ <frontend_type>Multiselect</frontend_type>
115
+ <source_model>expdoc/Category</source_model>
116
+ <sort_order>30</sort_order>
117
+ <show_in_default>1</show_in_default>
118
+ <show_in_website>1</show_in_website>
119
+ <show_in_store>1</show_in_store>
120
+ <can_be_empty>1</can_be_empty>
121
+ </csv_ctg>
122
+ </fields>
123
+ <fields>
124
+ <csv_doc>
125
+ <label>Document Type Exp.</label>
126
+ <frontend_type>select</frontend_type>
127
+ <source_model>expdoc/Doc</source_model>
128
+ <sort_order>40</sort_order>
129
+ <show_in_default>1</show_in_default>
130
+ <show_in_website>1</show_in_website>
131
+ <show_in_store>1</show_in_store>
132
+ <can_be_empty>1</can_be_empty>
133
+ </csv_doc>
134
+ </fields>
135
+ <fields>
136
+ <csv_validate translate="button_label">
137
+ <label></label>
138
+ <button_label>validate</button_label>
139
+ <frontend_model>expdoc/valides</frontend_model>
140
+ <sort_order>50</sort_order>
141
+ <show_in_default>1</show_in_default>
142
+ <show_in_website>1</show_in_website>
143
+ <show_in_store>1</show_in_store>
144
+ </csv_validate>
145
+ </fields>
146
+ </expdoc>
147
+ <batchcreatepd translate="label">
148
+ <label>AEMIK IWS Batch create products</label>
149
+ <frontend_type>text</frontend_type>
150
+ <sort_order>50</sort_order>
151
+ <show_in_default>1</show_in_default>
152
+ <show_in_website>1</show_in_website>
153
+ <show_in_store>1</show_in_store>
154
+ <fields>
155
+ <batch_pdtype>
156
+ <label>Product Type</label>
157
+ <frontend_type>select</frontend_type>
158
+ <source_model>expdoc/Createpdtype</source_model>
159
+ <sort_order>10</sort_order>
160
+ <show_in_default>1</show_in_default>
161
+ <show_in_website>1</show_in_website>
162
+ <show_in_store>1</show_in_store>
163
+ </batch_pdtype>
164
+ </fields>
165
+ <fields>
166
+ <batch_attr>
167
+ <label>Attribute Set</label>
168
+ <frontend_type>select</frontend_type>
169
+ <source_model>expdoc/Attrset</source_model>
170
+ <sort_order>20</sort_order>
171
+ <show_in_default>1</show_in_default>
172
+ <show_in_website>1</show_in_website>
173
+ <show_in_store>1</show_in_store>
174
+ </batch_attr>
175
+ </fields>
176
+ <fields>
177
+ <batch_button translate="button_label">
178
+ <label></label>
179
+ <button_label>validate</button_label>
180
+ <frontend_model>expdoc/batch</frontend_model>
181
+ <sort_order>25</sort_order>
182
+ <show_in_default>1</show_in_default>
183
+ <show_in_website>1</show_in_website>
184
+ <show_in_store>1</show_in_store>
185
+ </batch_button>
186
+ </fields>
187
+ <fields>
188
+ <batch_model>
189
+ <label>Filling this form</label>
190
+ <comment><![CDATA[ 1. You can copy { ... } and paste { with other products info } separated by commas to create more products.<br>2. The default path of images is ( root/media/import/ ). You can put multiple comma-separated images. (example: 1.jpg,2.jpg,3.jpg)<br><span style="color:#ff0000">3. All ## commodity information must be replaced with your settings.</span><br><strong style="color:#ff0000" id="runbatchcreate">4. Important! After filling this form, please save the settings before the run.</strong>]]></comment>
191
+ <frontend_type>textarea</frontend_type>
192
+ <source_model>expdoc/Attrset</source_model>
193
+ <sort_order>30</sort_order>
194
+ <show_in_default>1</show_in_default>
195
+ <show_in_website>1</show_in_website>
196
+ <show_in_store>1</show_in_store>
197
+ </batch_model>
198
+ </fields>
199
+ <fields>
200
+ <batch_valider translate="button_label">
201
+ <label></label>
202
+ <button_label>Create</button_label>
203
+ <frontend_model>expdoc/bachcreate</frontend_model>
204
+ <sort_order>40</sort_order>
205
+ <show_in_default>1</show_in_default>
206
+ <show_in_website>1</show_in_website>
207
+ <show_in_store>1</show_in_store>
208
+ </batch_valider>
209
+ </fields>
210
+ </batchcreatepd>
211
+ </groups>
212
+ </iwsexpdoc>
213
+ </sections>
214
+ </config>
app/etc/modules/Iws_Expdoc.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Iws_Expdoc>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ </Iws_Expdoc>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>AEMIK_TOOLS</name>
4
+ <version>0.1.0</version>
5
+ <stability>stable</stability>
6
+ <license>GPL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Extension for Magento</summary>
10
+ <description>Extension for Magento</description>
11
+ <notes>0.1.0 Stable</notes>
12
+ <authors><author><name>ChenMickael</name><user>chenmickael</user><email>chenmickael@yahoo.com</email></author></authors>
13
+ <date>2013-10-20</date>
14
+ <time>13:13:38</time>
15
+ <contents><target name="magelocal"><dir><dir name="Iws"><dir name="Expdoc"><dir name="Block"><file name="Bachcreate.php" hash="3ce72789d0711440ba0c75b421af2585"/><file name="Batch.php" hash="9c0983b2d07d76e06ab9b4da4ebf7102"/><file name="Valides.php" hash="46ba1ecce038d7375f6a12eaf3a1516d"/></dir><dir name="Helper"><file name="Data.php" hash="715dd1f8e15b094cd81a485548e53eca"/></dir><dir name="Model"><file name="Attributes.php" hash="594e9d81dbd4d36b58b00e07ba9457ba"/><file name="Attrset.php" hash="d988fed3d8240653bd4c72a77fc53ade"/><file name="Category.php" hash="0ad578f8e21bf5bfb5e87636bf83cdf0"/><file name="Createpdtype.php" hash="488b09587e3cc459add54600d8591797"/><file name="Doc.php" hash="625a7db5e7e346a9577d66dc04d853ba"/><file name="Enabled.php" hash="0f460600aec2d4fea32fa1607bf333b5"/><file name="Producttype.php" hash="12693ca2b4a5890ff220f6f08b4ac974"/></dir><dir name="controllers"><file name="IndexController.php" hash="f3f2d5adc7035dadb1f1ddf748faf6da"/></dir><dir name="etc"><file name="config.xml" hash="f6bcd809c18796a44399147a6412a08e"/><file name="system.xml" hash="baae90bc7675a7ce2739ee91ff145562"/></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Iws_Expdoc.xml" hash="86ee41598aeaffd5a1aaac4c5b8735ac"/></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.2.0</min><max>5.6.0</max></php></required></dependencies>
18
+ </package>