Minubo_Interface - Version 1.0.10

Version Notes

Added the ability to add custom fields to products especially for manufacturer and country-of-origin

Download this release

Release Info

Developer sven rothe
Extension Minubo_Interface
Version 1.0.10
Comparing to
See all releases


Code changes from version 1.0.9 to 1.0.10

app/code/community/Minubo/Interface/Model/Mysql4/Products.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php
2
  class Minubo_Interface_Model_Mysql4_Products extends Mage_Core_Model_Mysql4_Abstract
3
  {
4
-
5
  public function _construct()
6
  {
7
  $this->_init('minubo_interface/products', 'entity_id');
@@ -9,17 +8,21 @@ class Minubo_Interface_Model_Mysql4_Products extends Mage_Core_Model_Mysql4_Abst
9
 
10
  protected function getColumns() {
11
  $r = array('entity_id','sku','name','type_id','attribute_set_id','created_at','type_id as typeKey','weight',
12
- 'visibility','has_options','gift_message_available','price','special_price',
13
- 'special_from_date','special_to_date','tax_class_id','required_options',
14
- 'price_type','sku_type','shipment_type','cost','msrp_enabled','msrp',
15
- 'small_image','thumbnail','news_from_date','news_to_date','url_key','url_path',
16
- 'is_recurring','recurring_profile','image_label','small_image_label',
17
- 'thumbnail_label','updated_at','weight_type','price_view',
18
- 'links_purchased_separately','links_exist',
19
- 'msrp_display_actual_price_type','short_description');
 
 
 
 
20
  $fields = Mage::getStoreConfig('minubo_interface/settings/productfields',Mage::app()->getStore());
21
  $f = explode(',', str_replace(' ','',$fields));
22
- return array_merge($r, $f);
23
  }
24
 
25
  public function loadByField($field,$value){
1
  <?php
2
  class Minubo_Interface_Model_Mysql4_Products extends Mage_Core_Model_Mysql4_Abstract
3
  {
 
4
  public function _construct()
5
  {
6
  $this->_init('minubo_interface/products', 'entity_id');
8
 
9
  protected function getColumns() {
10
  $r = array('entity_id','sku','name','type_id','attribute_set_id','created_at','type_id as typeKey','weight',
11
+ 'visibility','has_options','gift_message_available','price','special_price',
12
+ 'special_from_date','special_to_date','tax_class_id','required_options',
13
+ 'price_type','sku_type','shipment_type','cost','msrp_enabled','msrp',
14
+ 'small_image','thumbnail','news_from_date','news_to_date','url_key','url_path',
15
+ 'is_recurring','recurring_profile','image_label','small_image_label',
16
+ 'thumbnail_label','updated_at','weight_type','price_view',
17
+ 'links_purchased_separately','links_exist',
18
+ 'msrp_display_actual_price_type','short_description');
19
+ $field1 = Mage::getStoreConfig('minubo_interface/settings/productbrand',Mage::app()->getStore());
20
+ if(!$field1) $field1 = 'created_at as dummy_brand';
21
+ $field2 = Mage::getStoreConfig('minubo_interface/settings/productorigin',Mage::app()->getStore());
22
+ if(!$field2) $field2 = 'created_at as dummy_origin';
23
  $fields = Mage::getStoreConfig('minubo_interface/settings/productfields',Mage::app()->getStore());
24
  $f = explode(',', str_replace(' ','',$fields));
25
+ return array_merge($r, array($field1, $field2), $f);
26
  }
27
 
28
  public function loadByField($field,$value){
app/code/community/Minubo/Interface/Model/Mysql4/Products2.php CHANGED
@@ -7,7 +7,7 @@ class Minubo_Interface_Model_Mysql4_Products2 extends Mage_Core_Model_Mysql4_Abs
7
  }
8
 
9
  protected function getColumns() {
10
- return array('entity_id','sku','name','type_id','attribute_set_id','created_at','type_id as typeKey','weight',
11
  'visibility','has_options','gift_message_available','price','special_price',
12
  'special_from_date','special_to_date','tax_class_id','required_options',
13
  'price_type','sku_type','shipment_type','cost','msrp_enabled','msrp',
@@ -16,6 +16,11 @@ class Minubo_Interface_Model_Mysql4_Products2 extends Mage_Core_Model_Mysql4_Abs
16
  'thumbnail_label','updated_at','weight_type','price_view',
17
  'links_purchased_separately','links_exist',
18
  'msrp_display_actual_price_type','short_description');
 
 
 
 
 
19
  }
20
 
21
  public function loadByField($field,$value){
7
  }
8
 
9
  protected function getColumns() {
10
+ $r = array('entity_id','sku','name','type_id','attribute_set_id','created_at','type_id as typeKey','weight',
11
  'visibility','has_options','gift_message_available','price','special_price',
12
  'special_from_date','special_to_date','tax_class_id','required_options',
13
  'price_type','sku_type','shipment_type','cost','msrp_enabled','msrp',
16
  'thumbnail_label','updated_at','weight_type','price_view',
17
  'links_purchased_separately','links_exist',
18
  'msrp_display_actual_price_type','short_description');
19
+ $field1 = Mage::getStoreConfig('minubo_interface/settings/productbrand',Mage::app()->getStore());
20
+ $field2 = Mage::getStoreConfig('minubo_interface/settings/productorigin',Mage::app()->getStore());
21
+ $fields = Mage::getStoreConfig('minubo_interface/settings/productfields',Mage::app()->getStore());
22
+ $f = explode(',', str_replace(' ','',$fields));
23
+ return array_merge($r, array($field1, $field2), $f);
24
  }
25
 
26
  public function loadByField($field,$value){
app/code/community/Minubo/Interface/Model/Mysql4/Products3.php CHANGED
@@ -7,7 +7,7 @@ class Minubo_Interface_Model_Mysql4_Products3 extends Mage_Core_Model_Mysql4_Abs
7
  }
8
 
9
  protected function getColumns() {
10
- return array('entity_id','sku','name','type_id','attribute_set_id','created_at','type_id as typeKey','weight',
11
  'visibility','has_options','gift_message_available','price','special_price',
12
  'special_from_date','special_to_date','tax_class_id','required_options',
13
  'price_type','sku_type','shipment_type','cost','msrp_enabled','msrp',
@@ -16,6 +16,11 @@ class Minubo_Interface_Model_Mysql4_Products3 extends Mage_Core_Model_Mysql4_Abs
16
  'thumbnail_label','updated_at','weight_type','price_view',
17
  'links_purchased_separately','links_exist',
18
  'msrp_display_actual_price_type','short_description');
 
 
 
 
 
19
  }
20
 
21
  public function loadByField($field,$value){
7
  }
8
 
9
  protected function getColumns() {
10
+ $r = array('entity_id','sku','name','type_id','attribute_set_id','created_at','type_id as typeKey','weight',
11
  'visibility','has_options','gift_message_available','price','special_price',
12
  'special_from_date','special_to_date','tax_class_id','required_options',
13
  'price_type','sku_type','shipment_type','cost','msrp_enabled','msrp',
16
  'thumbnail_label','updated_at','weight_type','price_view',
17
  'links_purchased_separately','links_exist',
18
  'msrp_display_actual_price_type','short_description');
19
+ $field1 = Mage::getStoreConfig('minubo_interface/settings/productbrand',Mage::app()->getStore());
20
+ $field2 = Mage::getStoreConfig('minubo_interface/settings/productorigin',Mage::app()->getStore());
21
+ $fields = Mage::getStoreConfig('minubo_interface/settings/productfields',Mage::app()->getStore());
22
+ $f = explode(',', str_replace(' ','',$fields));
23
+ return array_merge($r, array($field1, $field2), $f);
24
  }
25
 
26
  public function loadByField($field,$value){
app/code/community/Minubo/Interface/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Minubo_Interface>
5
- <version>1.0.9</version>
6
  </Minubo_Interface>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Minubo_Interface>
5
+ <version>1.0.10</version>
6
  </Minubo_Interface>
7
  </modules>
8
  <global>
app/code/community/Minubo/Interface/etc/system.xml CHANGED
@@ -70,10 +70,26 @@
70
  <show_in_website>1</show_in_website>
71
  <show_in_store>0</show_in_store>
72
  </output_type>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  <productfields translate="label">
74
  <label>Additional product-fields (comma-separated, see catalog_product_flat_1)</label>
75
  <frontend_type>text</frontend_type>
76
- <sort_order>5</sort_order>
77
  <show_in_default>1</show_in_default>
78
  <show_in_website>1</show_in_website>
79
  <show_in_store>0</show_in_store>
@@ -81,7 +97,7 @@
81
  <attributefields translate="label">
82
  <label>Additional product-attribute-fields (comma-separated, see eav_attribute.attribute_code -> catalog_product_entity_varchar)</label>
83
  <frontend_type>text</frontend_type>
84
- <sort_order>6</sort_order>
85
  <show_in_default>1</show_in_default>
86
  <show_in_website>1</show_in_website>
87
  <show_in_store>0</show_in_store>
@@ -89,7 +105,7 @@
89
  <lastexportstartdate translate="label">
90
  <label>Last Export started at</label>
91
  <frontend_type>label</frontend_type>
92
- <sort_order>7</sort_order>
93
  <show_in_default>1</show_in_default>
94
  <show_in_website>1</show_in_website>
95
  <show_in_store>0</show_in_store>
@@ -97,7 +113,7 @@
97
  <lastexportenddate translate="label">
98
  <label>Last Export ended at</label>
99
  <frontend_type>label</frontend_type>
100
- <sort_order>8</sort_order>
101
  <show_in_default>1</show_in_default>
102
  <show_in_website>1</show_in_website>
103
  <show_in_store>0</show_in_store>
@@ -105,7 +121,7 @@
105
  <firstchangedate translate="label">
106
  <label>Last Export from Change-Date</label>
107
  <frontend_type>label</frontend_type>
108
- <sort_order>9</sort_order>
109
  <show_in_default>1</show_in_default>
110
  <show_in_website>1</show_in_website>
111
  <show_in_store>0</show_in_store>
@@ -113,7 +129,7 @@
113
  <lastchangedate translate="label">
114
  <label>Last Export to Change-Date</label>
115
  <frontend_type>label</frontend_type>
116
- <sort_order>10</sort_order>
117
  <show_in_default>1</show_in_default>
118
  <show_in_website>1</show_in_website>
119
  <show_in_store>0</show_in_store>
70
  <show_in_website>1</show_in_website>
71
  <show_in_store>0</show_in_store>
72
  </output_type>
73
+ <productbrand translate="label">
74
+ <label>Additional product-field brand (see catalog_product_flat_1)</label>
75
+ <frontend_type>text</frontend_type>
76
+ <sort_order>5</sort_order>
77
+ <show_in_default>1</show_in_default>
78
+ <show_in_website>1</show_in_website>
79
+ <show_in_store>0</show_in_store>
80
+ </productbrand>
81
+ <productorigin translate="label">
82
+ <label>Additional product-fields country of origin (see catalog_product_flat_1)</label>
83
+ <frontend_type>text</frontend_type>
84
+ <sort_order>6</sort_order>
85
+ <show_in_default>1</show_in_default>
86
+ <show_in_website>1</show_in_website>
87
+ <show_in_store>0</show_in_store>
88
+ </productorigin>
89
  <productfields translate="label">
90
  <label>Additional product-fields (comma-separated, see catalog_product_flat_1)</label>
91
  <frontend_type>text</frontend_type>
92
+ <sort_order>7</sort_order>
93
  <show_in_default>1</show_in_default>
94
  <show_in_website>1</show_in_website>
95
  <show_in_store>0</show_in_store>
97
  <attributefields translate="label">
98
  <label>Additional product-attribute-fields (comma-separated, see eav_attribute.attribute_code -> catalog_product_entity_varchar)</label>
99
  <frontend_type>text</frontend_type>
100
+ <sort_order>8</sort_order>
101
  <show_in_default>1</show_in_default>
102
  <show_in_website>1</show_in_website>
103
  <show_in_store>0</show_in_store>
105
  <lastexportstartdate translate="label">
106
  <label>Last Export started at</label>
107
  <frontend_type>label</frontend_type>
108
+ <sort_order>9</sort_order>
109
  <show_in_default>1</show_in_default>
110
  <show_in_website>1</show_in_website>
111
  <show_in_store>0</show_in_store>
113
  <lastexportenddate translate="label">
114
  <label>Last Export ended at</label>
115
  <frontend_type>label</frontend_type>
116
+ <sort_order>10</sort_order>
117
  <show_in_default>1</show_in_default>
118
  <show_in_website>1</show_in_website>
119
  <show_in_store>0</show_in_store>
121
  <firstchangedate translate="label">
122
  <label>Last Export from Change-Date</label>
123
  <frontend_type>label</frontend_type>
124
+ <sort_order>11</sort_order>
125
  <show_in_default>1</show_in_default>
126
  <show_in_website>1</show_in_website>
127
  <show_in_store>0</show_in_store>
129
  <lastchangedate translate="label">
130
  <label>Last Export to Change-Date</label>
131
  <frontend_type>label</frontend_type>
132
+ <sort_order>12</sort_order>
133
  <show_in_default>1</show_in_default>
134
  <show_in_website>1</show_in_website>
135
  <show_in_store>0</show_in_store>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Minubo_Interface</name>
4
- <version>1.0.9</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Minubo Interface connects your Magento Shop to the All-In-One eCommerce Cloud BI Solution at minubo.com</summary>
10
  <description>Minubo Interface connects your Magento Shop to the All-In-One eCommerce Cloud BI Solution at minubo.com. With this Extension in your Magento Shop your minubo Account at minubo.com can be configured to poll the newest data - of cause without any personalization - every day to bring the information to your screen, which you need to optimize your sales business. See more about minubo at minubo.com Minubo Interface supports Magento 1.5 (or newer). In Backend you can configure the Minubo Interface at System/Configuration/Sales/Minubo Interface (enable/disable, generate access key and see information about last export). Right now, the Minubo Interface is at the end of beta status and you have to change in the Magento Connect Backend the setting to allow download of other than stable releases.</description>
11
- <notes>Added the ability to add custom fields to products and product-attributes export.</notes>
12
  <authors><author><name>sven rothe</name><user>minubo</user><email>sven@minubo.com</email></author></authors>
13
- <date>2013-09-19</date>
14
- <time>13:49:49</time>
15
- <contents><target name="magecommunity"><dir name="Minubo"><dir name="Interface"><dir name="Block"><dir name="Adminhtml"><file name="Authhash.php" hash="c98e63efd5e4e42a6bc1c223a75176c3"/><file name="Lastchangedate.php" hash="c82ee55fad83d848f47a8594bd25c5af"/><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="c288b69aa22cc9ff5e978ff2b89646e9"/></dir></dir></dir><file name="Version.php" hash="31db32eca5dcaf3ad86c747bb3e11efc"/></dir></dir><dir name="Helper"><file name="Data.php" hash="d9cf690ff97d2014cd3e443c07ab4ea7"/></dir><dir name="Model"><dir name="Export"><file name="Abstractcsv.php" hash="13e3663020c59a2700c298c55613cfce"/><file name="Csv.php" hash="77cbeb41b49539b9179bc185bbbb6b4e"/><file name="Status.php" hash="cef67926aef558b87d4e3bcb02386743"/></dir><dir name="Mysql4"><file name="Categories.php" hash="4c5cc06db334e8f8e93176983ff2a2a5"/><file name="Categories2.php" hash="8aca4fa85df43b3a3ce218d0af27564b"/><file name="Categories3.php" hash="a39d7d2fa625e89f731a0b84a1659563"/><file name="Creditmemoitems.php" hash="417301b2227b91c6f4289214c287b4e8"/><file name="Creditmemos.php" hash="821c38dffc35468da0b5405a18b49429"/><file name="Customeraddresses.php" hash="93d3c82c80f85de361de5e7e6c4ecf68"/><file name="Customers.php" hash="2243c128671e73cf70396efd9a9e5627"/><file name="Invoiceitems.php" hash="b487f7780366a832e9e28bb7e66e95e0"/><file name="Invoices.php" hash="8b1dcc3491f76eb68ac1ee2c4e965234"/><file name="Orderaddresses.php" hash="15672ef2e5eaf1a4a7d327edec087652"/><file name="Orderitems.php" hash="37fa91a9307f37441bdf0ac37794b3a4"/><file name="Orders.php" hash="1c221153e35b0dfc28e0ea0189bf1e83"/><file name="Productattributes.php" hash="3f1d8d692e5a96d231548568bc79b228"/><file name="Productcategories.php" hash="3fe724235a87d4700dc1a2dc9dde7175"/><file name="Products.php" hash="73bddd1cba6d89ef94b5a796ea4f0374"/><file name="Products2.php" hash="049c3f9d1f8f8cc389ee9b2d3d42b18f"/><file name="Products3.php" hash="f024b76ca62aab3cf0a1f2f40751f9b9"/><file name="Regions.php" hash="f1575516572fbd9a58e8c025fefa95d4"/></dir><dir name="Options"><file name="Options.php" hash="b696a731d9daa7f53c8375f19ad3838f"/><file name="Version.php" hash="fafcca0d77fbbe7fb26b869a845963bf"/></dir><dir name="Read"><file name="Collections.php" hash="2af8284c1653b0637c9d1542397043f1"/><file name="Common.php" hash="18b089bb03cbb226b95db428a7c31ef2"/></dir><file name="Tables.php" hash="c66214083bce5f94d932c6521dfaf05a"/></dir><dir name="controllers"><file name="ExportController.php" hash="9880af09daa1417e2032afe910ebe349"/></dir><dir name="etc"><file name="adminhtml.xml" hash="375c548aacaf6f1bfdf4de3af7b29dfb"/><file name="config.xml" hash="3331e80ee88730fabc8165e7b76095e4"/><file name="system.xml" hash="8bb4d0f85e323adc235985e16ecb17c9"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="minubo"><dir name="system"><dir name="config"><file name="button.phtml" hash=""/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Minubo_Interface.xml" hash=""/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Minubo_Interface</name>
4
+ <version>1.0.10</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Minubo Interface connects your Magento Shop to the All-In-One eCommerce Cloud BI Solution at minubo.com</summary>
10
  <description>Minubo Interface connects your Magento Shop to the All-In-One eCommerce Cloud BI Solution at minubo.com. With this Extension in your Magento Shop your minubo Account at minubo.com can be configured to poll the newest data - of cause without any personalization - every day to bring the information to your screen, which you need to optimize your sales business. See more about minubo at minubo.com Minubo Interface supports Magento 1.5 (or newer). In Backend you can configure the Minubo Interface at System/Configuration/Sales/Minubo Interface (enable/disable, generate access key and see information about last export). Right now, the Minubo Interface is at the end of beta status and you have to change in the Magento Connect Backend the setting to allow download of other than stable releases.</description>
11
+ <notes>Added the ability to add custom fields to products especially for manufacturer and country-of-origin</notes>
12
  <authors><author><name>sven rothe</name><user>minubo</user><email>sven@minubo.com</email></author></authors>
13
+ <date>2013-09-22</date>
14
+ <time>19:53:42</time>
15
+ <contents><target name="magecommunity"><dir name="Minubo"><dir name="Interface"><dir name="Block"><dir name="Adminhtml"><file name="Authhash.php" hash="c98e63efd5e4e42a6bc1c223a75176c3"/><file name="Lastchangedate.php" hash="c82ee55fad83d848f47a8594bd25c5af"/><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="c288b69aa22cc9ff5e978ff2b89646e9"/></dir></dir></dir><file name="Version.php" hash="31db32eca5dcaf3ad86c747bb3e11efc"/></dir></dir><dir name="Helper"><file name="Data.php" hash="d9cf690ff97d2014cd3e443c07ab4ea7"/></dir><dir name="Model"><dir name="Export"><file name="Abstractcsv.php" hash="13e3663020c59a2700c298c55613cfce"/><file name="Csv.php" hash="77cbeb41b49539b9179bc185bbbb6b4e"/><file name="Status.php" hash="cef67926aef558b87d4e3bcb02386743"/></dir><dir name="Mysql4"><file name="Categories.php" hash="4c5cc06db334e8f8e93176983ff2a2a5"/><file name="Categories2.php" hash="8aca4fa85df43b3a3ce218d0af27564b"/><file name="Categories3.php" hash="a39d7d2fa625e89f731a0b84a1659563"/><file name="Creditmemoitems.php" hash="417301b2227b91c6f4289214c287b4e8"/><file name="Creditmemos.php" hash="821c38dffc35468da0b5405a18b49429"/><file name="Customeraddresses.php" hash="93d3c82c80f85de361de5e7e6c4ecf68"/><file name="Customers.php" hash="2243c128671e73cf70396efd9a9e5627"/><file name="Invoiceitems.php" hash="b487f7780366a832e9e28bb7e66e95e0"/><file name="Invoices.php" hash="8b1dcc3491f76eb68ac1ee2c4e965234"/><file name="Orderaddresses.php" hash="15672ef2e5eaf1a4a7d327edec087652"/><file name="Orderitems.php" hash="37fa91a9307f37441bdf0ac37794b3a4"/><file name="Orders.php" hash="1c221153e35b0dfc28e0ea0189bf1e83"/><file name="Productattributes.php" hash="3f1d8d692e5a96d231548568bc79b228"/><file name="Productcategories.php" hash="3fe724235a87d4700dc1a2dc9dde7175"/><file name="Products.php" hash="6e458cae91b41af7d9fab3f5e5a6cd14"/><file name="Products2.php" hash="f06c90f73b9a54f650aa6f372133143b"/><file name="Products3.php" hash="5fc4b0816e4646726872a0295ef98464"/><file name="Regions.php" hash="f1575516572fbd9a58e8c025fefa95d4"/></dir><dir name="Options"><file name="Options.php" hash="b696a731d9daa7f53c8375f19ad3838f"/><file name="Version.php" hash="fafcca0d77fbbe7fb26b869a845963bf"/></dir><dir name="Read"><file name="Collections.php" hash="2af8284c1653b0637c9d1542397043f1"/><file name="Common.php" hash="18b089bb03cbb226b95db428a7c31ef2"/></dir><file name="Tables.php" hash="c66214083bce5f94d932c6521dfaf05a"/></dir><dir name="controllers"><file name="ExportController.php" hash="9880af09daa1417e2032afe910ebe349"/></dir><dir name="etc"><file name="adminhtml.xml" hash="375c548aacaf6f1bfdf4de3af7b29dfb"/><file name="config.xml" hash="7527be2f6d174742c1fc1524aa5c88a3"/><file name="system.xml" hash="6e5dee7d3b636760a19d9d793123cb7f"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="minubo"><dir name="system"><dir name="config"><file name="button.phtml" hash=""/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Minubo_Interface.xml" hash=""/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>