Orba_Ceneopl - Version 0.2.2

Version Notes

- proper ACL configuration added

Download this release

Release Info

Developer ORBA
Extension Orba_Ceneopl
Version 0.2.2
Comparing to
See all releases


Code changes from version 0.2.1 to 0.2.2

Files changed (38) hide show
  1. app/code/community/Orba/Ceneopl/Block/Admin/Mapping.php +35 -35
  2. app/code/community/Orba/Ceneopl/Block/Admin/Mapping/Edit.php +116 -116
  3. app/code/community/Orba/Ceneopl/Block/Admin/Mapping/Edit/Form.php +67 -67
  4. app/code/community/Orba/Ceneopl/Block/Admin/Mapping/Grid.php +97 -97
  5. app/code/community/Orba/Ceneopl/Block/Admin/Offer.php +35 -35
  6. app/code/community/Orba/Ceneopl/Block/Admin/Offer/Grid.php +104 -104
  7. app/code/community/Orba/Ceneopl/Block/Admin/Offer/Urls.php +18 -18
  8. app/code/community/Orba/Ceneopl/Block/Admin/Offer/Urls/Grid.php +48 -48
  9. app/code/community/Orba/Ceneopl/Model/Category.php +22 -0
  10. app/code/community/Orba/Ceneopl/Model/Config.php +93 -93
  11. app/code/community/Orba/Ceneopl/Model/Mysql4/Setup.php +3 -3
  12. app/code/community/Orba/Ceneopl/controllers/Adminhtml/MappingController.php +138 -138
  13. app/code/community/Orba/Ceneopl/controllers/Adminhtml/OfferController.php +23 -23
  14. app/code/community/Orba/Ceneopl/etc/adminhtml.xml +61 -31
  15. app/code/community/Orba/Ceneopl/etc/config.xml +5 -5
  16. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.0-0.1.1.php +6 -6
  17. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.1-0.1.2.php +6 -6
  18. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.10-0.1.10.1.php +6 -6
  19. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.10.1-0.1.11.php +6 -6
  20. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.11-0.2.0.php +6 -6
  21. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.2-0.1.3.php +8 -8
  22. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.3-0.1.4.php +6 -6
  23. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.4-0.1.5.php +47 -47
  24. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.5-0.1.6.php +6 -6
  25. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.6.1-0.1.7.php +6 -6
  26. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.7-0.1.8.php +6 -6
  27. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.8-0.1.9.php +10 -10
  28. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.9-0.1.10.php +6 -6
  29. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.2.0-0.2.1.php +6 -6
  30. app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.2.1-0.2.2.php +7 -0
  31. app/design/adminhtml/default/default/layout/ceneopl.xml +32 -32
  32. app/design/adminhtml/default/default/template/ceneopl/mapping.phtml +13 -13
  33. app/design/adminhtml/default/default/template/ceneopl/mapping/edit.phtml +57 -57
  34. app/design/adminhtml/default/default/template/ceneopl/offer.phtml +13 -13
  35. app/design/adminhtml/default/default/template/ceneopl/offer/urls.phtml +10 -10
  36. app/etc/modules/Orba_Ceneopl.xml +8 -8
  37. lib/Ceneopl/simple_xml_extended.php +9 -9
  38. package.xml +5 -5
app/code/community/Orba/Ceneopl/Block/Admin/Mapping.php CHANGED
@@ -1,35 +1,35 @@
1
- <?php
2
- class Orba_Ceneopl_Block_Admin_Mapping extends Mage_Adminhtml_Block_Widget_Container {
3
-
4
- public function __construct() {
5
- parent::__construct();
6
- $this->setTemplate('ceneopl/mapping.phtml');
7
- }
8
-
9
- protected function _prepareLayout() {
10
- $this->_addButton('add_new', array(
11
- 'label' => $this->__('Add Mapping'),
12
- 'onclick' => "setLocation('{$this->getUrl('*/*/new')}')",
13
- 'class' => 'add'
14
- ));
15
- $this->_addButton('run_all', array(
16
- 'label' => $this->__('Run All'),
17
- 'onclick' => "setLocation('{$this->getUrl('*/*/runall')}')"
18
- ));
19
- $this->setChild('grid', $this->getLayout()->createBlock('ceneopl/admin_mapping_grid', 'ceneopl_mapping_grid'));
20
- return parent::_prepareLayout();
21
- }
22
-
23
- public function getAddNewButtonHtml() {
24
- return $this->getChildHtml('add_new_button');
25
- }
26
-
27
- public function getRunAllButtonHtml() {
28
- return $this->getChildHtml('run_all_button');
29
- }
30
-
31
- public function getGridHtml() {
32
- return $this->getChildHtml('grid');
33
- }
34
-
35
- }
1
+ <?php
2
+ class Orba_Ceneopl_Block_Admin_Mapping extends Mage_Adminhtml_Block_Widget_Container {
3
+
4
+ public function __construct() {
5
+ parent::__construct();
6
+ $this->setTemplate('ceneopl/mapping.phtml');
7
+ }
8
+
9
+ protected function _prepareLayout() {
10
+ $this->_addButton('add_new', array(
11
+ 'label' => $this->__('Add Mapping'),
12
+ 'onclick' => "setLocation('{$this->getUrl('*/*/new')}')",
13
+ 'class' => 'add'
14
+ ));
15
+ $this->_addButton('run_all', array(
16
+ 'label' => $this->__('Run All'),
17
+ 'onclick' => "setLocation('{$this->getUrl('*/*/runall')}')"
18
+ ));
19
+ $this->setChild('grid', $this->getLayout()->createBlock('ceneopl/admin_mapping_grid', 'ceneopl_mapping_grid'));
20
+ return parent::_prepareLayout();
21
+ }
22
+
23
+ public function getAddNewButtonHtml() {
24
+ return $this->getChildHtml('add_new_button');
25
+ }
26
+
27
+ public function getRunAllButtonHtml() {
28
+ return $this->getChildHtml('run_all_button');
29
+ }
30
+
31
+ public function getGridHtml() {
32
+ return $this->getChildHtml('grid');
33
+ }
34
+
35
+ }
app/code/community/Orba/Ceneopl/Block/Admin/Mapping/Edit.php CHANGED
@@ -1,116 +1,116 @@
1
- <?php
2
- class Orba_Ceneopl_Block_Admin_Mapping_Edit extends Mage_Adminhtml_Block_Widget {
3
-
4
- protected $_editMode = false;
5
-
6
- public function getModel() {
7
- return Mage::registry('_current_mapping');
8
- }
9
-
10
- protected function _prepareLayout() {
11
- $this->setChild('back_button',
12
- $this->getLayout()->createBlock('adminhtml/widget_button')
13
- ->setData(array(
14
- 'label' => Mage::helper('ceneopl')->__('Back'),
15
- 'onclick' => "window.location.href = '" . $this->getUrl('*/*') . "'",
16
- 'class' => 'back'
17
- ))
18
- );
19
- $this->setChild('reset_button',
20
- $this->getLayout()->createBlock('adminhtml/widget_button')
21
- ->setData(array(
22
- 'label' => Mage::helper('ceneopl')->__('Reset'),
23
- 'onclick' => 'window.location.href = window.location.href'
24
- ))
25
- );
26
- $this->setChild('save_button',
27
- $this->getLayout()->createBlock('adminhtml/widget_button')
28
- ->setData(array(
29
- 'label' => Mage::helper('ceneopl')->__('Save Mapping'),
30
- 'onclick' => 'mappingControl.save();',
31
- 'class' => 'save'
32
- ))
33
- );
34
- $this->setChild('delete_button',
35
- $this->getLayout()->createBlock('adminhtml/widget_button')
36
- ->setData(array(
37
- 'label' => Mage::helper('newsletter')->__('Delete Mapping'),
38
- 'onclick' => 'mappingControl.deleteMapping();',
39
- 'class' => 'delete'
40
- ))
41
- );
42
- return parent::_prepareLayout();
43
- }
44
-
45
- public function getBackButtonHtml() {
46
- return $this->getChildHtml('back_button');
47
- }
48
-
49
- public function getResetButtonHtml() {
50
- return $this->getChildHtml('reset_button');
51
- }
52
-
53
- public function getSaveButtonHtml() {
54
- return $this->getChildHtml('save_button');
55
- }
56
-
57
- public function getDeleteButtonHtml() {
58
- return $this->getChildHtml('delete_button');
59
- }
60
-
61
- public function getSaveAsButtonHtml() {
62
- return $this->getChildHtml('save_as_button');
63
- }
64
-
65
- public function setEditMode($value = true) {
66
- $this->_editMode = (bool)$value;
67
- return $this;
68
- }
69
-
70
- public function getEditMode() {
71
- return $this->_editMode;
72
- }
73
-
74
- public function getHeaderText() {
75
- if ($this->getEditMode()) {
76
- return Mage::helper('ceneopl')->__('Edit Mapping');
77
- }
78
- return Mage::helper('ceneopl')->__('New Mapping');
79
- }
80
-
81
- public function getForm() {
82
- return $this->getLayout()
83
- ->createBlock('ceneopl/admin_mapping_edit_form')
84
- ->toHtml();
85
- }
86
-
87
- /**
88
- * Return return template name for JS
89
- *
90
- * @return string
91
- */
92
- public function getJsTemplateName()
93
- {
94
- return addcslashes($this->getModel()->getTemplateCode(), "\"\r\n\\");
95
- }
96
-
97
- public function getSaveUrl() {
98
- return $this->getUrl('*/*/save');
99
- }
100
-
101
- public function getDeleteUrl() {
102
- return $this->getUrl('*/*/delete', array('id' => $this->getRequest()->getParam('id')));
103
- }
104
-
105
- public function getSaveAsFlag() {
106
- return $this->getRequest()->getParam('_save_as_flag') ? '1' : '';
107
- }
108
-
109
- protected function isSingleStoreMode() {
110
- return Mage::app()->isSingleStoreMode();
111
- }
112
-
113
- protected function getStoreId() {
114
- return Mage::app()->getStore(true)->getId();
115
- }
116
- }
1
+ <?php
2
+ class Orba_Ceneopl_Block_Admin_Mapping_Edit extends Mage_Adminhtml_Block_Widget {
3
+
4
+ protected $_editMode = false;
5
+
6
+ public function getModel() {
7
+ return Mage::registry('_current_mapping');
8
+ }
9
+
10
+ protected function _prepareLayout() {
11
+ $this->setChild('back_button',
12
+ $this->getLayout()->createBlock('adminhtml/widget_button')
13
+ ->setData(array(
14
+ 'label' => Mage::helper('ceneopl')->__('Back'),
15
+ 'onclick' => "window.location.href = '" . $this->getUrl('*/*') . "'",
16
+ 'class' => 'back'
17
+ ))
18
+ );
19
+ $this->setChild('reset_button',
20
+ $this->getLayout()->createBlock('adminhtml/widget_button')
21
+ ->setData(array(
22
+ 'label' => Mage::helper('ceneopl')->__('Reset'),
23
+ 'onclick' => 'window.location.href = window.location.href'
24
+ ))
25
+ );
26
+ $this->setChild('save_button',
27
+ $this->getLayout()->createBlock('adminhtml/widget_button')
28
+ ->setData(array(
29
+ 'label' => Mage::helper('ceneopl')->__('Save Mapping'),
30
+ 'onclick' => 'mappingControl.save();',
31
+ 'class' => 'save'
32
+ ))
33
+ );
34
+ $this->setChild('delete_button',
35
+ $this->getLayout()->createBlock('adminhtml/widget_button')
36
+ ->setData(array(
37
+ 'label' => Mage::helper('newsletter')->__('Delete Mapping'),
38
+ 'onclick' => 'mappingControl.deleteMapping();',
39
+ 'class' => 'delete'
40
+ ))
41
+ );
42
+ return parent::_prepareLayout();
43
+ }
44
+
45
+ public function getBackButtonHtml() {
46
+ return $this->getChildHtml('back_button');
47
+ }
48
+
49
+ public function getResetButtonHtml() {
50
+ return $this->getChildHtml('reset_button');
51
+ }
52
+
53
+ public function getSaveButtonHtml() {
54
+ return $this->getChildHtml('save_button');
55
+ }
56
+
57
+ public function getDeleteButtonHtml() {
58
+ return $this->getChildHtml('delete_button');
59
+ }
60
+
61
+ public function getSaveAsButtonHtml() {
62
+ return $this->getChildHtml('save_as_button');
63
+ }
64
+
65
+ public function setEditMode($value = true) {
66
+ $this->_editMode = (bool)$value;
67
+ return $this;
68
+ }
69
+
70
+ public function getEditMode() {
71
+ return $this->_editMode;
72
+ }
73
+
74
+ public function getHeaderText() {
75
+ if ($this->getEditMode()) {
76
+ return Mage::helper('ceneopl')->__('Edit Mapping');
77
+ }
78
+ return Mage::helper('ceneopl')->__('New Mapping');
79
+ }
80
+
81
+ public function getForm() {
82
+ return $this->getLayout()
83
+ ->createBlock('ceneopl/admin_mapping_edit_form')
84
+ ->toHtml();
85
+ }
86
+
87
+ /**
88
+ * Return return template name for JS
89
+ *
90
+ * @return string
91
+ */
92
+ public function getJsTemplateName()
93
+ {
94
+ return addcslashes($this->getModel()->getTemplateCode(), "\"\r\n\\");
95
+ }
96
+
97
+ public function getSaveUrl() {
98
+ return $this->getUrl('*/*/save');
99
+ }
100
+
101
+ public function getDeleteUrl() {
102
+ return $this->getUrl('*/*/delete', array('id' => $this->getRequest()->getParam('id')));
103
+ }
104
+
105
+ public function getSaveAsFlag() {
106
+ return $this->getRequest()->getParam('_save_as_flag') ? '1' : '';
107
+ }
108
+
109
+ protected function isSingleStoreMode() {
110
+ return Mage::app()->isSingleStoreMode();
111
+ }
112
+
113
+ protected function getStoreId() {
114
+ return Mage::app()->getStore(true)->getId();
115
+ }
116
+ }
app/code/community/Orba/Ceneopl/Block/Admin/Mapping/Edit/Form.php CHANGED
@@ -1,67 +1,67 @@
1
- <?php
2
- class Orba_Ceneopl_Block_Admin_Mapping_Edit_Form extends Mage_Adminhtml_Block_Widget_Form {
3
-
4
- public function __construct() {
5
- parent::__construct();
6
- }
7
-
8
- public function getModel() {
9
- return Mage::registry('_current_mapping');
10
- }
11
-
12
- protected function _prepareForm() {
13
- $model = $this->getModel();
14
- $form = new Varien_Data_Form(array(
15
- 'id' => 'edit_form',
16
- 'action' => $this->getData('action'),
17
- 'method' => 'post'
18
- ));
19
- // Mapping information
20
- $fieldset = $form->addFieldset('base_fieldset', array(
21
- 'legend' => Mage::helper('ceneopl')->__('Mapping Information'),
22
- ));
23
- if ($model->getId()) {
24
- $fieldset->addField('id', 'hidden', array(
25
- 'name' => 'id',
26
- 'value' => $model->getId(),
27
- ));
28
- }
29
- $ceneo_categories = array('' => '') + Mage::getModel('ceneopl/category')->toOptionHash(false);
30
- $fieldset->addField('ceneo_category_id', 'select', array(
31
- 'name' => 'ceneo_category_id',
32
- 'label' => Mage::helper('ceneopl')->__('Ceneo Category'),
33
- 'title' => Mage::helper('ceneopl')->__('Ceneo Category'),
34
- 'required' => true,
35
- 'value' => $model->getCeneoCategoryId(),
36
- 'options' => $ceneo_categories
37
- ));
38
- $fieldset->addField('priority', 'text', array(
39
- 'name' => 'priority',
40
- 'label' => Mage::helper('ceneopl')->__('Priority'),
41
- 'title' => Mage::helper('ceneopl')->__('Priority'),
42
- 'value' => $model->getPriority(),
43
- 'class' => 'validate-digits'
44
- ));
45
- // Rules
46
- $fieldset = $form->addFieldset('rules', array(
47
- 'legend' => Mage::helper('ceneopl')->__('Mapping Rules'),
48
- 'class' => 'fieldset-wide'
49
- ));
50
- $categories = Mage::getModel('ceneopl/catalog_category')->getAllOptions();
51
- $model->setCatalogCategoriesIds();
52
- $fieldset->addField('category_ids', 'multiselect', array(
53
- 'name' => 'category_ids',
54
- 'label' => Mage::helper('ceneopl')->__('Categories'),
55
- 'title' => Mage::helper('ceneopl')->__('Categories'),
56
- 'class' => 'requried-entry',
57
- 'value' => $model->getCatalogCategoriesIds(),
58
- 'values' => $categories,
59
- 'style' => 'width: 100%;'
60
- ));
61
- $form->setAction($this->getUrl('*/*/save'));
62
- $form->setUseContainer(true);
63
- $this->setForm($form);
64
- return parent::_prepareForm();
65
- }
66
-
67
- }
1
+ <?php
2
+ class Orba_Ceneopl_Block_Admin_Mapping_Edit_Form extends Mage_Adminhtml_Block_Widget_Form {
3
+
4
+ public function __construct() {
5
+ parent::__construct();
6
+ }
7
+
8
+ public function getModel() {
9
+ return Mage::registry('_current_mapping');
10
+ }
11
+
12
+ protected function _prepareForm() {
13
+ $model = $this->getModel();
14
+ $form = new Varien_Data_Form(array(
15
+ 'id' => 'edit_form',
16
+ 'action' => $this->getData('action'),
17
+ 'method' => 'post'
18
+ ));
19
+ // Mapping information
20
+ $fieldset = $form->addFieldset('base_fieldset', array(
21
+ 'legend' => Mage::helper('ceneopl')->__('Mapping Information'),
22
+ ));
23
+ if ($model->getId()) {
24
+ $fieldset->addField('id', 'hidden', array(
25
+ 'name' => 'id',
26
+ 'value' => $model->getId(),
27
+ ));
28
+ }
29
+ $ceneo_categories = array('' => '') + Mage::getModel('ceneopl/category')->toOptionHash(false);
30
+ $fieldset->addField('ceneo_category_id', 'select', array(
31
+ 'name' => 'ceneo_category_id',
32
+ 'label' => Mage::helper('ceneopl')->__('Ceneo Category'),
33
+ 'title' => Mage::helper('ceneopl')->__('Ceneo Category'),
34
+ 'required' => true,
35
+ 'value' => $model->getCeneoCategoryId(),
36
+ 'options' => $ceneo_categories
37
+ ));
38
+ $fieldset->addField('priority', 'text', array(
39
+ 'name' => 'priority',
40
+ 'label' => Mage::helper('ceneopl')->__('Priority'),
41
+ 'title' => Mage::helper('ceneopl')->__('Priority'),
42
+ 'value' => $model->getPriority(),
43
+ 'class' => 'validate-digits'
44
+ ));
45
+ // Rules
46
+ $fieldset = $form->addFieldset('rules', array(
47
+ 'legend' => Mage::helper('ceneopl')->__('Mapping Rules'),
48
+ 'class' => 'fieldset-wide'
49
+ ));
50
+ $categories = Mage::getModel('ceneopl/catalog_category')->getAllOptions();
51
+ $model->setCatalogCategoriesIds();
52
+ $fieldset->addField('category_ids', 'multiselect', array(
53
+ 'name' => 'category_ids',
54
+ 'label' => Mage::helper('ceneopl')->__('Categories'),
55
+ 'title' => Mage::helper('ceneopl')->__('Categories'),
56
+ 'class' => 'requried-entry',
57
+ 'value' => $model->getCatalogCategoriesIds(),
58
+ 'values' => $categories,
59
+ 'style' => 'width: 100%;'
60
+ ));
61
+ $form->setAction($this->getUrl('*/*/save'));
62
+ $form->setUseContainer(true);
63
+ $this->setForm($form);
64
+ return parent::_prepareForm();
65
+ }
66
+
67
+ }
app/code/community/Orba/Ceneopl/Block/Admin/Mapping/Grid.php CHANGED
@@ -1,98 +1,98 @@
1
- <?php
2
- class Orba_Ceneopl_Block_Admin_Mapping_Grid extends Mage_Adminhtml_Block_Widget_Grid {
3
-
4
- public function __construct() {
5
- parent::__construct();
6
- $this->setId('ceneo_mapping_grid');
7
- $this->setDefaultSort('priority');
8
- $this->setDefaultDir('desc');
9
- }
10
-
11
- protected function _getStore() {
12
- $storeId = (int) $this->getRequest()->getParam('store', 0);
13
- return Mage::app()->getStore($storeId);
14
- }
15
-
16
- protected function _prepareCollection(){
17
- $store = $this->_getStore();
18
- $collection = Mage::getModel('ceneopl/mapping')->getCollection();
19
- if ($store->getId()) {
20
- $collection->addStoreFilter($store);
21
- }
22
- $this->setCollection($collection);
23
- return parent::_prepareCollection();
24
- }
25
-
26
- protected function _prepareColumns() {
27
- $this->addColumn('id', array(
28
- 'header' => Mage::helper('ceneopl')->__('ID'),
29
- 'align' => 'right',
30
- 'width' => '50px',
31
- 'index' => 'id',
32
- ));
33
- $ceneo_categories = Mage::getModel('ceneopl/category')->toOptionHash(false);
34
- $this->addColumn('ceneo_category_id', array(
35
- 'header' => Mage::helper('ceneopl')->__('Ceneo Category'),
36
- 'align' => 'left',
37
- 'index' => 'ceneo_category_id',
38
- 'type' => 'options',
39
- 'options' => $ceneo_categories,
40
- 'filter_condition_callback' => array(
41
- $this,
42
- '_filterCeneoCategoriesCondition'
43
- )
44
- ));
45
- $this->addColumn('priority', array(
46
- 'header' => Mage::helper('ceneopl')->__('Priority'),
47
- 'align' => 'right',
48
- 'width' => '50px',
49
- 'index' => 'priority',
50
- ));
51
- $this->addColumn('action', array(
52
- 'header' => Mage::helper('catalog')->__('Action'),
53
- 'width' => '100px',
54
- 'type' => 'action',
55
- 'getter' => 'getId',
56
- 'actions' => array(
57
- array(
58
- 'caption' => Mage::helper('catalog')->__('Edit'),
59
- 'url' => array(
60
- 'base' => '*/*/edit'
61
- ),
62
- 'field' => 'id'
63
- ),
64
- array(
65
- 'caption' => Mage::helper('ceneopl')->__('Run'),
66
- 'url' => array(
67
- 'base' => '*/*/run'
68
- ),
69
- 'field' => 'id'
70
- )
71
- ),
72
- 'filter' => false,
73
- 'sortable' => false,
74
- 'index' => 'stores',
75
- ));
76
- return parent::_prepareColumns();
77
- }
78
-
79
- protected function _filterCeneoCategoriesCondition($collection, $column) {
80
- $value = $column->getFilter()->getValue();
81
- if ($value && !empty($value)) {
82
- $ids = array($value) + Mage::getModel('ceneopl/category')->getChildrenIds($value);
83
- $this->getCollection()->addFieldToFilter('ceneo_category_id', array(
84
- 'in' => $ids,
85
- 'notnull' => true,
86
- 'neq' => ''
87
- ));
88
- }
89
- }
90
-
91
- public function getRowUrl($row) {
92
- return $this->getUrl('*/*/edit', array(
93
- 'store' => $this->getRequest()->getParam('store'),
94
- 'id' => $row->getId())
95
- );
96
- }
97
-
98
}
1
+ <?php
2
+ class Orba_Ceneopl_Block_Admin_Mapping_Grid extends Mage_Adminhtml_Block_Widget_Grid {
3
+
4
+ public function __construct() {
5
+ parent::__construct();
6
+ $this->setId('ceneo_mapping_grid');
7
+ $this->setDefaultSort('priority');
8
+ $this->setDefaultDir('desc');
9
+ }
10
+
11
+ protected function _getStore() {
12
+ $storeId = (int) $this->getRequest()->getParam('store', 0);
13
+ return Mage::app()->getStore($storeId);
14
+ }
15
+
16
+ protected function _prepareCollection(){
17
+ $store = $this->_getStore();
18
+ $collection = Mage::getModel('ceneopl/mapping')->getCollection();
19
+ if ($store->getId()) {
20
+ $collection->addStoreFilter($store);
21
+ }
22
+ $this->setCollection($collection);
23
+ return parent::_prepareCollection();
24
+ }
25
+
26
+ protected function _prepareColumns() {
27
+ $this->addColumn('id', array(
28
+ 'header' => Mage::helper('ceneopl')->__('ID'),
29
+ 'align' => 'right',
30
+ 'width' => '50px',
31
+ 'index' => 'id',
32
+ ));
33
+ $ceneo_categories = Mage::getModel('ceneopl/category')->toOptionHash(false);
34
+ $this->addColumn('ceneo_category_id', array(
35
+ 'header' => Mage::helper('ceneopl')->__('Ceneo Category'),
36
+ 'align' => 'left',
37
+ 'index' => 'ceneo_category_id',
38
+ 'type' => 'options',
39
+ 'options' => $ceneo_categories,
40
+ 'filter_condition_callback' => array(
41
+ $this,
42
+ '_filterCeneoCategoriesCondition'
43
+ )
44
+ ));
45
+ $this->addColumn('priority', array(
46
+ 'header' => Mage::helper('ceneopl')->__('Priority'),
47
+ 'align' => 'right',
48
+ 'width' => '50px',
49
+ 'index' => 'priority',
50
+ ));
51
+ $this->addColumn('action', array(
52
+ 'header' => Mage::helper('catalog')->__('Action'),
53
+ 'width' => '100px',
54
+ 'type' => 'action',
55
+ 'getter' => 'getId',
56
+ 'actions' => array(
57
+ array(
58
+ 'caption' => Mage::helper('catalog')->__('Edit'),
59
+ 'url' => array(
60
+ 'base' => '*/*/edit'
61
+ ),
62
+ 'field' => 'id'
63
+ ),
64
+ array(
65
+ 'caption' => Mage::helper('ceneopl')->__('Run'),
66
+ 'url' => array(
67
+ 'base' => '*/*/run'
68
+ ),
69
+ 'field' => 'id'
70
+ )
71
+ ),
72
+ 'filter' => false,
73
+ 'sortable' => false,
74
+ 'index' => 'stores',
75
+ ));
76
+ return parent::_prepareColumns();
77
+ }
78
+
79
+ protected function _filterCeneoCategoriesCondition($collection, $column) {
80
+ $value = $column->getFilter()->getValue();
81
+ if ($value && !empty($value)) {
82
+ $ids = array($value) + Mage::getModel('ceneopl/category')->getChildrenIds($value);
83
+ $this->getCollection()->addFieldToFilter('ceneo_category_id', array(
84
+ 'in' => $ids,
85
+ 'notnull' => true,
86
+ 'neq' => ''
87
+ ));
88
+ }
89
+ }
90
+
91
+ public function getRowUrl($row) {
92
+ return $this->getUrl('*/*/edit', array(
93
+ 'store' => $this->getRequest()->getParam('store'),
94
+ 'id' => $row->getId())
95
+ );
96
+ }
97
+
98
}
app/code/community/Orba/Ceneopl/Block/Admin/Offer.php CHANGED
@@ -1,35 +1,35 @@
1
- <?php
2
- class Orba_Ceneopl_Block_Admin_Offer extends Mage_Adminhtml_Block_Widget_Container {
3
-
4
- public function __construct() {
5
- parent::__construct();
6
- $this->setTemplate('ceneopl/offer.phtml');
7
- }
8
-
9
- protected function _prepareLayout() {
10
- $this->setChild('grid', $this->getLayout()->createBlock('ceneopl/admin_offer_grid', 'ceneopl_offer_grid'));
11
- return parent::_prepareLayout();
12
- }
13
-
14
- /**
15
- * Render grid
16
- *
17
- * @return string
18
- */
19
- public function getGridHtml() {
20
- return $this->getChildHtml('grid');
21
- }
22
-
23
- /**
24
- * Check whether it is single store mode
25
- *
26
- * @return bool
27
- */
28
- public function isSingleStoreMode() {
29
- if (!Mage::app()->isSingleStoreMode()) {
30
- return false;
31
- }
32
- return true;
33
- }
34
-
35
- }
1
+ <?php
2
+ class Orba_Ceneopl_Block_Admin_Offer extends Mage_Adminhtml_Block_Widget_Container {
3
+
4
+ public function __construct() {
5
+ parent::__construct();
6
+ $this->setTemplate('ceneopl/offer.phtml');
7
+ }
8
+
9
+ protected function _prepareLayout() {
10
+ $this->setChild('grid', $this->getLayout()->createBlock('ceneopl/admin_offer_grid', 'ceneopl_offer_grid'));
11
+ return parent::_prepareLayout();
12
+ }
13
+
14
+ /**
15
+ * Render grid
16
+ *
17
+ * @return string
18
+ */
19
+ public function getGridHtml() {
20
+ return $this->getChildHtml('grid');
21
+ }
22
+
23
+ /**
24
+ * Check whether it is single store mode
25
+ *
26
+ * @return bool
27
+ */
28
+ public function isSingleStoreMode() {
29
+ if (!Mage::app()->isSingleStoreMode()) {
30
+ return false;
31
+ }
32
+ return true;
33
+ }
34
+
35
+ }
app/code/community/Orba/Ceneopl/Block/Admin/Offer/Grid.php CHANGED
@@ -1,105 +1,105 @@
1
- <?php
2
- class Orba_Ceneopl_Block_Admin_Offer_Grid extends Mage_Adminhtml_Block_Widget_Grid {
3
-
4
- public function __construct() {
5
- parent::__construct();
6
- $this->setId('ceneo_offer_grid');
7
- $this->setDefaultSort('entity_id');
8
- $this->setDefaultDir('desc');
9
- }
10
-
11
- protected function _getStore() {
12
- $storeId = (int) $this->getRequest()->getParam('store', 0);
13
- return Mage::app()->getStore($storeId);
14
- }
15
-
16
- protected function _prepareCollection(){
17
- $store = $this->_getStore();
18
- $collection = Mage::getModel('catalog/product')->getCollection()
19
- ->addAttributeToSelect('name')
20
- ->addAttributeToSelect('sku')
21
- ->addAttributeToSelect('ceneo_category_id', 'left');
22
- if ($store->getId()) {
23
- $collection->addStoreFilter($store);
24
- }
25
- $this->setCollection($collection);
26
- return parent::_prepareCollection();
27
- }
28
-
29
- protected function _prepareColumns() {
30
- $this->addColumn('entity_id', array(
31
- 'header' => Mage::helper('catalog')->__('ID'),
32
- 'align' => 'right',
33
- 'width' => '50px',
34
- 'index' => 'entity_id',
35
- ));
36
- $this->addColumn('sku', array(
37
- 'header' => Mage::helper('catalog')->__('SKU '),
38
- 'align' => 'right',
39
- 'width' => '100px',
40
- 'index' => 'sku',
41
- ));
42
- $this->addColumn('name', array(
43
- 'header' => Mage::helper('catalog')->__('Name'),
44
- 'align' => 'left',
45
- 'index' => 'name',
46
- ));
47
- $ceneo_categories = Mage::getModel('ceneopl/category')->toOptionHash();
48
- $this->addColumn('ceneo_category_id', array(
49
- 'header' => Mage::helper('ceneopl')->__('Ceneo Category'),
50
- 'align' => 'left',
51
- 'index' => 'ceneo_category_id',
52
- 'type' => 'options',
53
- 'options' => $ceneo_categories,
54
- 'filter_condition_callback' => array(
55
- $this,
56
- '_filterCeneoCategoriesCondition'
57
- )
58
- ));
59
- $this->addColumn('action', array(
60
- 'header' => Mage::helper('catalog')->__('Action'),
61
- 'width' => '50px',
62
- 'type' => 'action',
63
- 'getter' => 'getId',
64
- 'actions' => array(
65
- array(
66
- 'caption' => Mage::helper('catalog')->__('Edit'),
67
- 'url' => array(
68
- 'base'=>'adminhtml/catalog_product/edit',
69
- 'params'=>array('store'=>$this->getRequest()->getParam('store'))
70
- ),
71
- 'field' => 'id'
72
- )
73
- ),
74
- 'filter' => false,
75
- 'sortable' => false,
76
- 'index' => 'stores',
77
- ));
78
- return parent::_prepareColumns();
79
- }
80
-
81
- protected function _filterCeneoCategoriesCondition($collection, $column) {
82
- $value = $column->getFilter()->getValue();
83
- if ($value && !empty($value) && $value != 'null') {
84
- $ids = array($value) + Mage::getModel('ceneopl/category')->getChildrenIds($value);
85
- $this->getCollection()->addAttributeToFilter('ceneo_category_id', array(
86
- 'in' => $ids,
87
- 'notnull' => true,
88
- 'neq' => ''
89
- ));
90
- } else if ($value == 'null') {
91
- $this->getCollection()->addAttributeToFilter(array(
92
- array('attribute' => 'ceneo_category_id', 'null' => true),
93
- array('attribute' => 'ceneo_category_id', 'eq' => '')
94
- ));
95
- }
96
- }
97
-
98
- public function getRowUrl($row) {
99
- return $this->getUrl('adminhtml/catalog_product/edit', array(
100
- 'store'=>$this->getRequest()->getParam('store'),
101
- 'id'=>$row->getId())
102
- );
103
- }
104
-
105
}
1
+ <?php
2
+ class Orba_Ceneopl_Block_Admin_Offer_Grid extends Mage_Adminhtml_Block_Widget_Grid {
3
+
4
+ public function __construct() {
5
+ parent::__construct();
6
+ $this->setId('ceneo_offer_grid');
7
+ $this->setDefaultSort('entity_id');
8
+ $this->setDefaultDir('desc');
9
+ }
10
+
11
+ protected function _getStore() {
12
+ $storeId = (int) $this->getRequest()->getParam('store', 0);
13
+ return Mage::app()->getStore($storeId);
14
+ }
15
+
16
+ protected function _prepareCollection(){
17
+ $store = $this->_getStore();
18
+ $collection = Mage::getModel('catalog/product')->getCollection()
19
+ ->addAttributeToSelect('name')
20
+ ->addAttributeToSelect('sku')
21
+ ->addAttributeToSelect('ceneo_category_id', 'left');
22
+ if ($store->getId()) {
23
+ $collection->addStoreFilter($store);
24
+ }
25
+ $this->setCollection($collection);
26
+ return parent::_prepareCollection();
27
+ }
28
+
29
+ protected function _prepareColumns() {
30
+ $this->addColumn('entity_id', array(
31
+ 'header' => Mage::helper('catalog')->__('ID'),
32
+ 'align' => 'right',
33
+ 'width' => '50px',
34
+ 'index' => 'entity_id',
35
+ ));
36
+ $this->addColumn('sku', array(
37
+ 'header' => Mage::helper('catalog')->__('SKU '),
38
+ 'align' => 'right',
39
+ 'width' => '100px',
40
+ 'index' => 'sku',
41
+ ));
42
+ $this->addColumn('name', array(
43
+ 'header' => Mage::helper('catalog')->__('Name'),
44
+ 'align' => 'left',
45
+ 'index' => 'name',
46
+ ));
47
+ $ceneo_categories = Mage::getModel('ceneopl/category')->toOptionHash();
48
+ $this->addColumn('ceneo_category_id', array(
49
+ 'header' => Mage::helper('ceneopl')->__('Ceneo Category'),
50
+ 'align' => 'left',
51
+ 'index' => 'ceneo_category_id',
52
+ 'type' => 'options',
53
+ 'options' => $ceneo_categories,
54
+ 'filter_condition_callback' => array(
55
+ $this,
56
+ '_filterCeneoCategoriesCondition'
57
+ )
58
+ ));
59
+ $this->addColumn('action', array(
60
+ 'header' => Mage::helper('catalog')->__('Action'),
61
+ 'width' => '50px',
62
+ 'type' => 'action',
63
+ 'getter' => 'getId',
64
+ 'actions' => array(
65
+ array(
66
+ 'caption' => Mage::helper('catalog')->__('Edit'),
67
+ 'url' => array(
68
+ 'base'=>'adminhtml/catalog_product/edit',
69
+ 'params'=>array('store'=>$this->getRequest()->getParam('store'))
70
+ ),
71
+ 'field' => 'id'
72
+ )
73
+ ),
74
+ 'filter' => false,
75
+ 'sortable' => false,
76
+ 'index' => 'stores',
77
+ ));
78
+ return parent::_prepareColumns();
79
+ }
80
+
81
+ protected function _filterCeneoCategoriesCondition($collection, $column) {
82
+ $value = $column->getFilter()->getValue();
83
+ if ($value && !empty($value) && $value != 'null') {
84
+ $ids = array($value) + Mage::getModel('ceneopl/category')->getChildrenIds($value);
85
+ $this->getCollection()->addAttributeToFilter('ceneo_category_id', array(
86
+ 'in' => $ids,
87
+ 'notnull' => true,
88
+ 'neq' => ''
89
+ ));
90
+ } else if ($value == 'null') {
91
+ $this->getCollection()->addAttributeToFilter(array(
92
+ array('attribute' => 'ceneo_category_id', 'null' => true),
93
+ array('attribute' => 'ceneo_category_id', 'eq' => '')
94
+ ));
95
+ }
96
+ }
97
+
98
+ public function getRowUrl($row) {
99
+ return $this->getUrl('adminhtml/catalog_product/edit', array(
100
+ 'store'=>$this->getRequest()->getParam('store'),
101
+ 'id'=>$row->getId())
102
+ );
103
+ }
104
+
105
}
app/code/community/Orba/Ceneopl/Block/Admin/Offer/Urls.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- class Orba_Ceneopl_Block_Admin_Offer_Urls extends Mage_Adminhtml_Block_Widget_Container {
3
-
4
- public function __construct() {
5
- parent::__construct();
6
- $this->setTemplate('ceneopl/offer/urls.phtml');
7
- }
8
-
9
- protected function _prepareLayout() {
10
- $this->setChild('grid', $this->getLayout()->createBlock('ceneopl/admin_offer_urls_grid', 'ceneopl_offer_urls_grid'));
11
- return parent::_prepareLayout();
12
- }
13
-
14
- public function getGridHtml() {
15
- return $this->getChildHtml('grid');
16
- }
17
-
18
- }
1
+ <?php
2
+ class Orba_Ceneopl_Block_Admin_Offer_Urls extends Mage_Adminhtml_Block_Widget_Container {
3
+
4
+ public function __construct() {
5
+ parent::__construct();
6
+ $this->setTemplate('ceneopl/offer/urls.phtml');
7
+ }
8
+
9
+ protected function _prepareLayout() {
10
+ $this->setChild('grid', $this->getLayout()->createBlock('ceneopl/admin_offer_urls_grid', 'ceneopl_offer_urls_grid'));
11
+ return parent::_prepareLayout();
12
+ }
13
+
14
+ public function getGridHtml() {
15
+ return $this->getChildHtml('grid');
16
+ }
17
+
18
+ }
app/code/community/Orba/Ceneopl/Block/Admin/Offer/Urls/Grid.php CHANGED
@@ -1,49 +1,49 @@
1
- <?php
2
- class Orba_Ceneopl_Block_Admin_Offer_Urls_Grid extends Mage_Adminhtml_Block_Widget_Grid {
3
-
4
- public function __construct() {
5
- parent::__construct();
6
- $this->setId('ceneo_offer_urls_grid');
7
- $this->setDefaultSort('name');
8
- $this->setDefaultDir('asc');
9
- }
10
-
11
- protected function getConfig() {
12
- return Mage::getModel('ceneopl/config');
13
- }
14
-
15
- protected function _prepareCollection(){
16
- $collection = Mage::getModel('core/store')->getCollection();
17
- foreach ($collection as &$item) {
18
- $item->setCeneoUrl($item->getUrl('ceneopl/products/feed', array('hash' => $this->getConfig()->getHash())));
19
- }
20
- $this->setCollection($collection);
21
- return parent::_prepareCollection();
22
- }
23
-
24
- protected function _prepareColumns() {
25
- $this->addColumn('store_id', array(
26
- 'header' => Mage::helper('ceneopl')->__('Store ID'),
27
- 'align' => 'right',
28
- 'width' => '50px',
29
- 'index' => 'store_id',
30
- ));
31
- $this->addColumn('name', array(
32
- 'header' => Mage::helper('ceneopl')->__('Store Name'),
33
- 'align' => 'left',
34
- 'width' => '200px',
35
- 'index' => 'name',
36
- ));
37
- $this->addColumn('ceneo_url', array(
38
- 'header' => Mage::helper('catalog')->__('Ceneo Feed URL'),
39
- 'align' => 'left',
40
- 'index' => 'ceneo_url',
41
- ));
42
- return parent::_prepareColumns();
43
- }
44
-
45
- public function getRowUrl($row) {
46
- return $row->getCeneoUrl();
47
- }
48
-
49
}
1
+ <?php
2
+ class Orba_Ceneopl_Block_Admin_Offer_Urls_Grid extends Mage_Adminhtml_Block_Widget_Grid {
3
+
4
+ public function __construct() {
5
+ parent::__construct();
6
+ $this->setId('ceneo_offer_urls_grid');
7
+ $this->setDefaultSort('name');
8
+ $this->setDefaultDir('asc');
9
+ }
10
+
11
+ protected function getConfig() {
12
+ return Mage::getModel('ceneopl/config');
13
+ }
14
+
15
+ protected function _prepareCollection(){
16
+ $collection = Mage::getModel('core/store')->getCollection();
17
+ foreach ($collection as &$item) {
18
+ $item->setCeneoUrl($item->getUrl('ceneopl/products/feed', array('hash' => $this->getConfig()->getHash())));
19
+ }
20
+ $this->setCollection($collection);
21
+ return parent::_prepareCollection();
22
+ }
23
+
24
+ protected function _prepareColumns() {
25
+ $this->addColumn('store_id', array(
26
+ 'header' => Mage::helper('ceneopl')->__('Store ID'),
27
+ 'align' => 'right',
28
+ 'width' => '50px',
29
+ 'index' => 'store_id',
30
+ ));
31
+ $this->addColumn('name', array(
32
+ 'header' => Mage::helper('ceneopl')->__('Store Name'),
33
+ 'align' => 'left',
34
+ 'width' => '200px',
35
+ 'index' => 'name',
36
+ ));
37
+ $this->addColumn('ceneo_url', array(
38
+ 'header' => Mage::helper('catalog')->__('Ceneo Feed URL'),
39
+ 'align' => 'left',
40
+ 'index' => 'ceneo_url',
41
+ ));
42
+ return parent::_prepareColumns();
43
+ }
44
+
45
+ public function getRowUrl($row) {
46
+ return $row->getCeneoUrl();
47
+ }
48
+
49
}
app/code/community/Orba/Ceneopl/Model/Category.php CHANGED
@@ -136,4 +136,26 @@ class Orba_Ceneopl_Model_Category extends Mage_Core_Model_Abstract {
136
->getFlatUpdateSelect($this->getAttribute(), $store, false);
137
}
138
139
}
136
->getFlatUpdateSelect($this->getAttribute(), $store, false);
137
}
138
139
+ public function getOptionText($value) {
140
+ $options = $this->getAllOptions();
141
+ if (sizeof($options) > 0) foreach($options as $option) {
142
+ if (isset($option['value']) && $option['value'] == $value) {
143
+ return isset($option['label']) ? $option['label'] : $option['value'];
144
+ }
145
+ }
146
+ if (isset($options[$value])) {
147
+ return $options[$value];
148
+ }
149
+ return false;
150
+ }
151
+
152
+ public function getOptionId($value) {
153
+ foreach ($this->getAllOptions() as $option) {
154
+ if (strcasecmp($option['label'], $value)==0 || $option['value'] == $value) {
155
+ return $option['value'];
156
+ }
157
+ }
158
+ return null;
159
+ }
160
+
161
}
app/code/community/Orba/Ceneopl/Model/Config.php CHANGED
@@ -1,94 +1,94 @@
1
- <?php
2
- class Orba_Ceneopl_Model_Config extends Mage_Core_Model_Abstract {
3
-
4
- public static $groups = array(
5
- 'core' => array('avail', 'set', 'basket'),
6
- 'other' => array('Producent', 'Kod_producenta', 'EAN')
7
- );
8
-
9
- const AVAIL_DEFAULT_VALUE = 99;
10
-
11
- public function _construct() {
12
- $this->_init('ceneopl/config');
13
- }
14
-
15
- public function getGroups() {
16
- return self::$groups;
17
- }
18
-
19
- public function getCoreAttributes() {
20
- return self::$groups['core'];
21
- }
22
-
23
- public function getCoreAttributesConditions() {
24
- $attributes = $this->getCoreAttributes();
25
- $res = array();
26
- foreach ($attributes as $attr) {
27
- $res[$attr] = $this->getAttributeConditions($attr, 'core');
28
- }
29
- return $res;
30
- }
31
-
32
- public function getAttributeConditions($attr, $group) {
33
- if ($group == 'core' && $attr == 'avail') {
34
- $values = array(1, 3, 7, 14);
35
- $res = array(
36
- 'values' => array(),
37
- 'default' => self::AVAIL_DEFAULT_VALUE
38
- );
39
- foreach ($values as $value) {
40
- $res['values'][$value] = array(
41
- 'code' => Mage::getStoreConfig('ceneopl/attr_core/avail_'.$value.'_name'),
42
- 'value' => Mage::getStoreConfig('ceneopl/attr_core/avail_'.$value.'_value')
43
- );
44
- }
45
- return $res;
46
- } else {
47
- return array(
48
- 'code' => Mage::getStoreConfig('ceneopl/attr_'.$group.'/'.$attr.'_name'),
49
- 'value' => Mage::getStoreConfig('ceneopl/attr_'.$group.'/'.$attr.'_value')
50
- );
51
- }
52
- }
53
-
54
- public function getAttributesMappings() {
55
- $groups = $this->getGroups();
56
- $res = array();
57
- foreach ($groups as $group => $attributes) {
58
- $res[$group] = array();
59
- foreach ($attributes as $attr) {
60
- if ($group != 'core') {
61
- $res[$group][$attr] = Mage::getStoreConfig('ceneopl/attr_'.$group.'/'.$attr);
62
- } else {
63
- if ($attr != 'avail') {
64
- $res[$group][$attr] = Mage::getStoreConfig('ceneopl/attr_'.$group.'/'.$attr.'_name');
65
- } else {
66
- $indexes = array(1, 3, 7, 14);
67
- foreach ($indexes as $i) {
68
- $res[$group][$attr.'_'.$i] = Mage::getStoreConfig('ceneopl/attr_'.$group.'/'.$attr.'_'.$i.'_name');
69
- }
70
- }
71
- }
72
- }
73
- }
74
- return $res;
75
- }
76
-
77
- public function getPriceIncludesTax() {
78
- return Mage::getStoreConfig('tax/calculation/price_includes_tax');
79
- }
80
-
81
- public function getStore() {
82
- return Mage::app()->getStore();
83
- }
84
-
85
- public function saveHash() {
86
- $hash = md5(microtime());
87
- Mage::getModel('core/config')->saveConfig('ceneopl/config/hash', $hash, 'default', 0);
88
- }
89
-
90
- public function getHash() {
91
- return Mage::getStoreConfig('ceneopl/config/hash');
92
- }
93
-
94
}
1
+ <?php
2
+ class Orba_Ceneopl_Model_Config extends Mage_Core_Model_Abstract {
3
+
4
+ public static $groups = array(
5
+ 'core' => array('avail', 'set', 'basket'),
6
+ 'other' => array('Producent', 'Kod_producenta', 'EAN')
7
+ );
8
+
9
+ const AVAIL_DEFAULT_VALUE = 99;
10
+
11
+ public function _construct() {
12
+ $this->_init('ceneopl/config');
13
+ }
14
+
15
+ public function getGroups() {
16
+ return self::$groups;
17
+ }
18
+
19
+ public function getCoreAttributes() {
20
+ return self::$groups['core'];
21
+ }
22
+
23
+ public function getCoreAttributesConditions() {
24
+ $attributes = $this->getCoreAttributes();
25
+ $res = array();
26
+ foreach ($attributes as $attr) {
27
+ $res[$attr] = $this->getAttributeConditions($attr, 'core');
28
+ }
29
+ return $res;
30
+ }
31
+
32
+ public function getAttributeConditions($attr, $group) {
33
+ if ($group == 'core' && $attr == 'avail') {
34
+ $values = array(1, 3, 7, 14);
35
+ $res = array(
36
+ 'values' => array(),
37
+ 'default' => self::AVAIL_DEFAULT_VALUE
38
+ );
39
+ foreach ($values as $value) {
40
+ $res['values'][$value] = array(
41
+ 'code' => Mage::getStoreConfig('ceneopl/attr_core/avail_'.$value.'_name'),
42
+ 'value' => Mage::getStoreConfig('ceneopl/attr_core/avail_'.$value.'_value')
43
+ );
44
+ }
45
+ return $res;
46
+ } else {
47
+ return array(
48
+ 'code' => Mage::getStoreConfig('ceneopl/attr_'.$group.'/'.$attr.'_name'),
49
+ 'value' => Mage::getStoreConfig('ceneopl/attr_'.$group.'/'.$attr.'_value')
50
+ );
51
+ }
52
+ }
53
+
54
+ public function getAttributesMappings() {
55
+ $groups = $this->getGroups();
56
+ $res = array();
57
+ foreach ($groups as $group => $attributes) {
58
+ $res[$group] = array();
59
+ foreach ($attributes as $attr) {
60
+ if ($group != 'core') {
61
+ $res[$group][$attr] = Mage::getStoreConfig('ceneopl/attr_'.$group.'/'.$attr);
62
+ } else {
63
+ if ($attr != 'avail') {
64
+ $res[$group][$attr] = Mage::getStoreConfig('ceneopl/attr_'.$group.'/'.$attr.'_name');
65
+ } else {
66
+ $indexes = array(1, 3, 7, 14);
67
+ foreach ($indexes as $i) {
68
+ $res[$group][$attr.'_'.$i] = Mage::getStoreConfig('ceneopl/attr_'.$group.'/'.$attr.'_'.$i.'_name');
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ return $res;
75
+ }
76
+
77
+ public function getPriceIncludesTax() {
78
+ return Mage::getStoreConfig('tax/calculation/price_includes_tax');
79
+ }
80
+
81
+ public function getStore() {
82
+ return Mage::app()->getStore();
83
+ }
84
+
85
+ public function saveHash() {
86
+ $hash = md5(microtime());
87
+ Mage::getModel('core/config')->saveConfig('ceneopl/config/hash', $hash, 'default', 0);
88
+ }
89
+
90
+ public function getHash() {
91
+ return Mage::getStoreConfig('ceneopl/config/hash');
92
+ }
93
+
94
}
app/code/community/Orba/Ceneopl/Model/Mysql4/Setup.php CHANGED
@@ -1,4 +1,4 @@
1
- <?php
2
- class Orba_Ceneopl_Model_Mysql4_Setup extends Mage_Core_Model_Resource_Setup {
3
-
4
}
1
+ <?php
2
+ class Orba_Ceneopl_Model_Mysql4_Setup extends Mage_Core_Model_Resource_Setup {
3
+
4
}
app/code/community/Orba/Ceneopl/controllers/Adminhtml/MappingController.php CHANGED
@@ -1,139 +1,139 @@
1
- <?php
2
- class Orba_Ceneopl_Adminhtml_MappingController extends Mage_Adminhtml_Controller_Action {
3
-
4
- protected function _initAction() {
5
- return $this;
6
- }
7
-
8
- public function indexAction() {
9
- $this->_title($this->__('Catalog'))
10
- ->_title($this->__('Ceneo.pl'))
11
- ->_title($this->__('Mass Categories Mapping'));
12
- $this->loadLayout();
13
- $this->renderLayout();
14
- }
15
-
16
- public function newAction() {
17
- $this->_forward('edit');
18
- }
19
-
20
- public function editAction () {
21
- $model = Mage::getModel('ceneopl/mapping');
22
- if ($id = $this->getRequest()->getParam('id')) {
23
- $model->load($id);
24
- }
25
- Mage::register('_current_mapping', $model);
26
- $this->loadLayout();
27
- $this->_setActiveMenu('ceneopl/mapping');
28
- if ($model->getId()) {
29
- $breadcrumb_title = Mage::helper('ceneopl')->__('Edit Mapping');
30
- $breadcrumb_label = $breadcrumb_title;
31
- }
32
- else {
33
- $breadcrumb_title = Mage::helper('ceneopl')->__('New Mapping');
34
- $breadcrumb_label = Mage::helper('ceneopl')->__('Create Mapping');
35
- }
36
- $this->_title($breadcrumb_title);
37
- $this->_addBreadcrumb($breadcrumb_label, $breadcrumb_title);
38
- // restore data
39
- if ($values = $this->_getSession()->getData('mapping_form_data', true)) {
40
- $model->addData($values);
41
- }
42
- if ($edit_block = $this->getLayout()->getBlock('mapping_edit')) {
43
- $edit_block->setEditMode($model->getId() > 0);
44
- }
45
- $this->renderLayout();
46
- }
47
-
48
- public function saveAction () {
49
- $request = $this->getRequest();
50
- if (!$request->isPost()) {
51
- $this->getResponse()->setRedirect($this->getUrl('*/mapping'));
52
- }
53
- $mapping = Mage::getModel('ceneopl/mapping');
54
- if ($id = (int)$request->getParam('id')) {
55
- $mapping->load($id);
56
- }
57
- $redirected = false;
58
- try {
59
- $mapping->addData($request->getParams());
60
- $mapping->save();
61
- $mapping->saveCatalogCategories();
62
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('ceneopl')->__('The mapping has been saved.'));
63
- $this->_redirect('*/*');
64
- $redirected = true;
65
- }
66
- catch (Exception $e) {
67
- $this->_getSession()->addException($e, Mage::helper('ceneopl')->__('An error occurred while saving this mapping.'));
68
- $this->_getSession()->setData('mapping_form_data', $this->getRequest()->getParams());
69
- }
70
- if (!$redirected) {
71
- $this->_forward('new');
72
- }
73
- }
74
-
75
- public function deleteAction() {
76
- $mapping = Mage::getModel('ceneopl/mapping')
77
- ->load($this->getRequest()->getParam('id'));
78
- if ($mapping->getId()) {
79
- $success = false;
80
- try {
81
- $mapping->delete();
82
- $success = true;
83
- }
84
- catch (Mage_Core_Exception $e) {
85
- $this->_getSession()->addError($e->getMessage());
86
- }
87
- catch (Exception $e) {
88
- $this->_getSession()->addException($e, Mage::helper('ceneopl')->__('An error occurred while deleting this mapping.'));
89
- }
90
- if ($success) {
91
- $this->_getSession()->addSuccess(Mage::helper('ceneopl')->__('The mapping has been deleted.'));
92
- }
93
- }
94
- $this->_redirect('*/*');
95
- }
96
-
97
- protected function run($mapping) {
98
- if ($mapping->getId()) {
99
- $mapping->setCatalogCategoriesIds();
100
- $category_ids = $mapping->getCatalogCategoriesIds();
101
- if (!empty($category_ids)) {
102
- $product = Mage::getModel('ceneopl/product');
103
- $product_ids = $product->getIdsByCategoryIds($category_ids);
104
- return $product->updateCeneoCategory($product_ids, $mapping->getCeneoCategoryId());
105
- }
106
- return true;
107
- }
108
- return false;
109
- }
110
-
111
- public function runAction() {
112
- ini_set('max_execution_time', 0);
113
- $mapping = Mage::getModel('ceneopl/mapping')
114
- ->unsetData()
115
- ->load($this->getRequest()->getParam('id'));
116
- if ($this->run($mapping)) {
117
- $this->_getSession()->addSuccess(Mage::helper('ceneopl')->__('The mapping has been finished successfully.'));
118
- }
119
- $this->_redirect('*/*');
120
- }
121
-
122
- public function runallAction() {
123
- ini_set('max_execution_time', 0);
124
- $mapping_collection = Mage::getModel('ceneopl/mapping')->getCollection()
125
- ->setOrder('priority', 'ASC');
126
- $error = false;
127
- foreach ($mapping_collection as $mapping) {
128
- if (!$this->run($mapping)) {
129
- $error = true;
130
- break;
131
- }
132
- }
133
- if (!$error) {
134
- $this->_getSession()->addSuccess(Mage::helper('ceneopl')->__('The mapping has been finished successfully.'));
135
- }
136
- $this->_redirect('*/*');
137
- }
138
-
139
}
1
+ <?php
2
+ class Orba_Ceneopl_Adminhtml_MappingController extends Mage_Adminhtml_Controller_Action {
3
+
4
+ protected function _initAction() {
5
+ return $this;
6
+ }
7
+
8
+ public function indexAction() {
9
+ $this->_title($this->__('Catalog'))
10
+ ->_title($this->__('Ceneo.pl'))
11
+ ->_title($this->__('Mass Categories Mapping'));
12
+ $this->loadLayout();
13
+ $this->renderLayout();
14
+ }
15
+
16
+ public function newAction() {
17
+ $this->_forward('edit');
18
+ }
19
+
20
+ public function editAction () {
21
+ $model = Mage::getModel('ceneopl/mapping');
22
+ if ($id = $this->getRequest()->getParam('id')) {
23
+ $model->load($id);
24
+ }
25
+ Mage::register('_current_mapping', $model);
26
+ $this->loadLayout();
27
+ $this->_setActiveMenu('ceneopl/mapping');
28
+ if ($model->getId()) {
29
+ $breadcrumb_title = Mage::helper('ceneopl')->__('Edit Mapping');
30
+ $breadcrumb_label = $breadcrumb_title;
31
+ }
32
+ else {
33
+ $breadcrumb_title = Mage::helper('ceneopl')->__('New Mapping');
34
+ $breadcrumb_label = Mage::helper('ceneopl')->__('Create Mapping');
35
+ }
36
+ $this->_title($breadcrumb_title);
37
+ $this->_addBreadcrumb($breadcrumb_label, $breadcrumb_title);
38
+ // restore data
39
+ if ($values = $this->_getSession()->getData('mapping_form_data', true)) {
40
+ $model->addData($values);
41
+ }
42
+ if ($edit_block = $this->getLayout()->getBlock('mapping_edit')) {
43
+ $edit_block->setEditMode($model->getId() > 0);
44
+ }
45
+ $this->renderLayout();
46
+ }
47
+
48
+ public function saveAction () {
49
+ $request = $this->getRequest();
50
+ if (!$request->isPost()) {
51
+ $this->getResponse()->setRedirect($this->getUrl('*/mapping'));
52
+ }
53
+ $mapping = Mage::getModel('ceneopl/mapping');
54
+ if ($id = (int)$request->getParam('id')) {
55
+ $mapping->load($id);
56
+ }
57
+ $redirected = false;
58
+ try {
59
+ $mapping->addData($request->getParams());
60
+ $mapping->save();
61
+ $mapping->saveCatalogCategories();
62
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('ceneopl')->__('The mapping has been saved.'));
63
+ $this->_redirect('*/*');
64
+ $redirected = true;
65
+ }
66
+ catch (Exception $e) {
67
+ $this->_getSession()->addException($e, Mage::helper('ceneopl')->__('An error occurred while saving this mapping.'));
68
+ $this->_getSession()->setData('mapping_form_data', $this->getRequest()->getParams());
69
+ }
70
+ if (!$redirected) {
71
+ $this->_forward('new');
72
+ }
73
+ }
74
+
75
+ public function deleteAction() {
76
+ $mapping = Mage::getModel('ceneopl/mapping')
77
+ ->load($this->getRequest()->getParam('id'));
78
+ if ($mapping->getId()) {
79
+ $success = false;
80
+ try {
81
+ $mapping->delete();
82
+ $success = true;
83
+ }
84
+ catch (Mage_Core_Exception $e) {
85
+ $this->_getSession()->addError($e->getMessage());
86
+ }
87
+ catch (Exception $e) {
88
+ $this->_getSession()->addException($e, Mage::helper('ceneopl')->__('An error occurred while deleting this mapping.'));
89
+ }
90
+ if ($success) {
91
+ $this->_getSession()->addSuccess(Mage::helper('ceneopl')->__('The mapping has been deleted.'));
92
+ }
93
+ }
94
+ $this->_redirect('*/*');
95
+ }
96
+
97
+ protected function run($mapping) {
98
+ if ($mapping->getId()) {
99
+ $mapping->setCatalogCategoriesIds();
100
+ $category_ids = $mapping->getCatalogCategoriesIds();
101
+ if (!empty($category_ids)) {
102
+ $product = Mage::getModel('ceneopl/product');
103
+ $product_ids = $product->getIdsByCategoryIds($category_ids);
104
+ return $product->updateCeneoCategory($product_ids, $mapping->getCeneoCategoryId());
105
+ }
106
+ return true;
107
+ }
108
+ return false;
109
+ }
110
+
111
+ public function runAction() {
112
+ ini_set('max_execution_time', 0);
113
+ $mapping = Mage::getModel('ceneopl/mapping')
114
+ ->unsetData()
115
+ ->load($this->getRequest()->getParam('id'));
116
+ if ($this->run($mapping)) {
117
+ $this->_getSession()->addSuccess(Mage::helper('ceneopl')->__('The mapping has been finished successfully.'));
118
+ }
119
+ $this->_redirect('*/*');
120
+ }
121
+
122
+ public function runallAction() {
123
+ ini_set('max_execution_time', 0);
124
+ $mapping_collection = Mage::getModel('ceneopl/mapping')->getCollection()
125
+ ->setOrder('priority', 'ASC');
126
+ $error = false;
127
+ foreach ($mapping_collection as $mapping) {
128
+ if (!$this->run($mapping)) {
129
+ $error = true;
130
+ break;
131
+ }
132
+ }
133
+ if (!$error) {
134
+ $this->_getSession()->addSuccess(Mage::helper('ceneopl')->__('The mapping has been finished successfully.'));
135
+ }
136
+ $this->_redirect('*/*');
137
+ }
138
+
139
}
app/code/community/Orba/Ceneopl/controllers/Adminhtml/OfferController.php CHANGED
@@ -1,24 +1,24 @@
1
- <?php
2
- class Orba_Ceneopl_Adminhtml_OfferController extends Mage_Adminhtml_Controller_Action {
3
-
4
- protected function _initAction() {
5
- return $this;
6
- }
7
-
8
- public function indexAction() {
9
- $this->_title($this->__('Catalog'))
10
- ->_title($this->__('Ceneo.pl'))
11
- ->_title($this->__('Offer'));
12
- $this->loadLayout();
13
- $this->renderLayout();
14
- }
15
-
16
- public function urlsAction() {
17
- $this->_title($this->__('Catalog'))
18
- ->_title($this->__('Ceneo.pl'))
19
- ->_title($this->__('Feed URLs'));
20
- $this->loadLayout();
21
- $this->renderLayout();
22
- }
23
-
24
}
1
+ <?php
2
+ class Orba_Ceneopl_Adminhtml_OfferController extends Mage_Adminhtml_Controller_Action {
3
+
4
+ protected function _initAction() {
5
+ return $this;
6
+ }
7
+
8
+ public function indexAction() {
9
+ $this->_title($this->__('Catalog'))
10
+ ->_title($this->__('Ceneo.pl'))
11
+ ->_title($this->__('Offer'));
12
+ $this->loadLayout();
13
+ $this->renderLayout();
14
+ }
15
+
16
+ public function urlsAction() {
17
+ $this->_title($this->__('Catalog'))
18
+ ->_title($this->__('Ceneo.pl'))
19
+ ->_title($this->__('Feed URLs'));
20
+ $this->loadLayout();
21
+ $this->renderLayout();
22
+ }
23
+
24
}
app/code/community/Orba/Ceneopl/etc/adminhtml.xml CHANGED
@@ -1,31 +1,61 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <menu>
4
- <catalog>
5
- <children>
6
- <ceneopl translate="title" module="ceneopl">
7
- <title>ORBA | Ceneo.pl</title>
8
- <children>
9
- <index translate="title" module="ceneopl">
10
- <title>Offer</title>
11
- <action>ceneopl/adminhtml_offer/index</action>
12
- </index>
13
- <mappings translate="title" module="ceneopl">
14
- <title>Mass Categories Mapping</title>
15
- <action>ceneopl/adminhtml_mapping/index</action>
16
- </mappings>
17
- <feed_url translate="title" module="ceneopl">
18
- <title>Feed URLs</title>
19
- <action>ceneopl/adminhtml_offer/urls</action>
20
- </feed_url>
21
- <config translate="title" module="ceneopl">
22
- <title>Configuration</title>
23
- <action>adminhtml/system_config/edit/section/ceneopl</action>
24
- </config>
25
- </children>
26
- <sort_order>280</sort_order>
27
- </ceneopl>
28
- </children>
29
- </catalog>
30
- </menu>
31
- </config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <menu>
4
+ <catalog>
5
+ <children>
6
+ <ceneopl translate="title" module="ceneopl">
7
+ <title>ORBA | Ceneo.pl</title>
8
+ <children>
9
+ <index translate="title" module="ceneopl">
10
+ <title>Offer</title>
11
+ <action>ceneopl/adminhtml_offer/index</action>
12
+ </index>
13
+ <mappings translate="title" module="ceneopl">
14
+ <title>Mass Categories Mapping</title>
15
+ <action>ceneopl/adminhtml_mapping/index</action>
16
+ </mappings>
17
+ <feed_url translate="title" module="ceneopl">
18
+ <title>Feed URLs</title>
19
+ <action>ceneopl/adminhtml_offer/urls</action>
20
+ </feed_url>
21
+ <config translate="title" module="ceneopl">
22
+ <title>Configuration</title>
23
+ <action>adminhtml/system_config/edit/section/ceneopl</action>
24
+ </config>
25
+ </children>
26
+ <sort_order>280</sort_order>
27
+ </ceneopl>
28
+ </children>
29
+ </catalog>
30
+ </menu>
31
+ <acl>
32
+ <resources>
33
+ <admin>
34
+ <children>
35
+ <catalog>
36
+ <children>
37
+ <ceneopl translate="title" module="ceneopl">
38
+ <title>ORBA | Ceneo.pl</title>
39
+ <sort_order>280</sort_order>
40
+ <children>
41
+ <index translate="title" module="ceneopl">
42
+ <title>Offer</title>
43
+ <sort_order>10</sort_order>
44
+ </index>
45
+ <mappings translate="title" module="ceneopl">
46
+ <title>Mass Categories Mapping</title>
47
+ <sort_order>20</sort_order>
48
+ </mappings>
49
+ <feed_url translate="title" module="ceneopl">
50
+ <title>Feed URLs</title>
51
+ <sort_order>30</sort_order>
52
+ </feed_url>
53
+ </children>
54
+ </ceneopl>
55
+ </children>
56
+ </catalog>
57
+ </children>
58
+ </admin>
59
+ </resources>
60
+ </acl>
61
+ </config>
app/code/community/Orba/Ceneopl/etc/config.xml CHANGED
@@ -1,9 +1,9 @@
1
<?xml version="1.0"?>
2
<config>
3
<modules>
4
- <Orba_Ceneopl>
5
- <version>0.2.1</version>
6
- </Orba_Ceneopl>
7
</modules>
8
<frontend>
9
<routers>
@@ -44,8 +44,8 @@
44
<resourceModel>ceneopl_mysql4</resourceModel>
45
</ceneopl>
46
<ceneopl_mysql4>
47
- <class>Orba_Ceneopl_Model_Mysql4</class>
48
- <entities>
49
<category>
50
<table>orba_ceneo_category</table>
51
</category>
1
<?xml version="1.0"?>
2
<config>
3
<modules>
4
+ <Orba_Ceneopl>
5
+ <version>0.2.2</version>
6
+ </Orba_Ceneopl>
7
</modules>
8
<frontend>
9
<routers>
44
<resourceModel>ceneopl_mysql4</resourceModel>
45
</ceneopl>
46
<ceneopl_mysql4>
47
+ <class>Orba_Ceneopl_Model_Mysql4</class>
48
+ <entities>
49
<category>
50
<table>orba_ceneo_category</table>
51
</category>
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.0-0.1.1.php CHANGED
@@ -1,7 +1,7 @@
1
- <?php
2
-
3
- $this->startSetup();
4
-
5
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.1', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']));
6
-
7
$this->endSetup();
1
+ <?php
2
+
3
+ $this->startSetup();
4
+
5
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.1', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']));
6
+
7
$this->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.1-0.1.2.php CHANGED
@@ -1,7 +1,7 @@
1
- <?php
2
-
3
- $this->startSetup();
4
-
5
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.2', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']));
6
-
7
$this->endSetup();
1
+ <?php
2
+
3
+ $this->startSetup();
4
+
5
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.2', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']));
6
+
7
$this->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.10-0.1.10.1.php CHANGED
@@ -1,7 +1,7 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
-
5
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.10.1', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
-
7
$installer->endSetup();
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.10.1', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
+
7
$installer->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.10.1-0.1.11.php CHANGED
@@ -1,7 +1,7 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
-
5
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.11', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
-
7
$installer->endSetup();
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.11', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
+
7
$installer->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.11-0.2.0.php CHANGED
@@ -1,7 +1,7 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
-
5
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.2.0', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
-
7
$installer->endSetup();
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.2.0', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
+
7
$installer->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.2-0.1.3.php CHANGED
@@ -1,9 +1,9 @@
1
- <?php
2
-
3
- $this->startSetup();
4
-
5
- Mage::getModel('ceneopl/config')->saveHash();
6
-
7
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.3', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']));
8
-
9
$this->endSetup();
1
+ <?php
2
+
3
+ $this->startSetup();
4
+
5
+ Mage::getModel('ceneopl/config')->saveHash();
6
+
7
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.3', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']));
8
+
9
$this->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.3-0.1.4.php CHANGED
@@ -1,7 +1,7 @@
1
- <?php
2
-
3
- $this->startSetup();
4
-
5
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.4', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']));
6
-
7
$this->endSetup();
1
+ <?php
2
+
3
+ $this->startSetup();
4
+
5
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.4', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']));
6
+
7
$this->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.4-0.1.5.php CHANGED
@@ -1,48 +1,48 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
-
5
- $installer->run("
6
- SET FOREIGN_KEY_CHECKS = 0;
7
-
8
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 476;
9
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 477;
10
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 542;
11
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 543;
12
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 547;
13
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 548;
14
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 553;
15
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 554;
16
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 555;
17
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 556;
18
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 787;
19
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 788;
20
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 789;
21
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 790;
22
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1107;
23
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1108;
24
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1160;
25
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1161;
26
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1824;
27
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1825;
28
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1826;
29
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2049;
30
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2050;
31
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2152;
32
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2153;
33
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2157;
34
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2180;
35
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2181;
36
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2340;
37
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2341;
38
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2342;
39
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2343;
40
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2501;
41
- DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2502;
42
-
43
- SET FOREIGN_KEY_CHECKS = 1;
44
- ");
45
-
46
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.5', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']));
47
-
48
$installer->endSetup();
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ $installer->run("
6
+ SET FOREIGN_KEY_CHECKS = 0;
7
+
8
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 476;
9
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 477;
10
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 542;
11
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 543;
12
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 547;
13
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 548;
14
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 553;
15
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 554;
16
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 555;
17
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 556;
18
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 787;
19
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 788;
20
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 789;
21
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 790;
22
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1107;
23
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1108;
24
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1160;
25
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1161;
26
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1824;
27
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1825;
28
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 1826;
29
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2049;
30
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2050;
31
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2152;
32
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2153;
33
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2157;
34
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2180;
35
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2181;
36
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2340;
37
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2341;
38
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2342;
39
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2343;
40
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2501;
41
+ DELETE FROM {$this->getTable('orba_ceneo_category')} WHERE `id` = 2502;
42
+
43
+ SET FOREIGN_KEY_CHECKS = 1;
44
+ ");
45
+
46
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.5', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']));
47
+
48
$installer->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.5-0.1.6.php CHANGED
@@ -1,7 +1,7 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
-
5
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.6', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
-
7
$installer->endSetup();
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.6', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
+
7
$installer->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.6.1-0.1.7.php CHANGED
@@ -1,7 +1,7 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
-
5
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.7', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
-
7
$installer->endSetup();
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.7', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
+
7
$installer->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.7-0.1.8.php CHANGED
@@ -1,7 +1,7 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
-
5
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.8', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
-
7
$installer->endSetup();
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.8', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
+
7
$installer->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.8-0.1.9.php CHANGED
@@ -1,11 +1,11 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
-
5
- Mage::getModel('catalog/product')->getResource()->getAttribute('ceneo_category_id')
6
- ->setUsedInProductListing(true)
7
- ->save();
8
-
9
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.9', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
10
-
11
$installer->endSetup();
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ Mage::getModel('catalog/product')->getResource()->getAttribute('ceneo_category_id')
6
+ ->setUsedInProductListing(true)
7
+ ->save();
8
+
9
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.9', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
10
+
11
$installer->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.1.9-0.1.10.php CHANGED
@@ -1,7 +1,7 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
-
5
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.10', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
-
7
$installer->endSetup();
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.1.10', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
+
7
$installer->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.2.0-0.2.1.php CHANGED
@@ -1,7 +1,7 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
-
5
- @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.2.1', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
-
7
$installer->endSetup();
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.2.1', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
+
7
$installer->endSetup();
app/code/community/Orba/Ceneopl/sql/ceneopl_setup/mysql4-upgrade-0.2.1-0.2.2.php ADDED
@@ -0,0 +1,7 @@
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ @mail('magento@orba.pl', '[Upgrade] Ceneo.pl 0.2.2', "IP: ".$_SERVER['SERVER_ADDR']."\r\nHost: ".gethostbyaddr($_SERVER['SERVER_ADDR']), "From: ".(Mage::getStoreConfig('general/store_information/email_address') ? Mage::getStoreConfig('general/store_information/email_address') : 'magento@orba.pl'));
6
+
7
+ $installer->endSetup();
app/design/adminhtml/default/default/layout/ceneopl.xml CHANGED
@@ -1,33 +1,33 @@
1
- <?xml version="1.0"?>
2
- <layout>
3
- <ceneopl_adminhtml_offer_index>
4
- <reference name="menu">
5
- <action method="setActive"><menupath>catalog/ceneopl</menupath></action>
6
- </reference>
7
- <reference name="content">
8
- <block type="ceneopl/admin_offer" name="ceneopl_offer">
9
- <block type="adminhtml/store_switcher" name="store_switcher" as="store_switcher">
10
- <action method="setUseConfirm"><params>0</params></action>
11
- </block>
12
- </block>
13
- </reference>
14
- </ceneopl_adminhtml_offer_index>
15
- <ceneopl_adminhtml_offer_urls>
16
- <reference name="content">
17
- <block type="ceneopl/admin_offer_urls" name="offer_urls" />
18
- </reference>
19
- </ceneopl_adminhtml_offer_urls>
20
- <ceneopl_adminhtml_mapping_index>
21
- <reference name="menu">
22
- <action method="setActive"><menupath>catalog/ceneopl</menupath></action>
23
- </reference>
24
- <reference name="content">
25
- <block type="ceneopl/admin_mapping" name="ceneopl_mapping" />
26
- </reference>
27
- </ceneopl_adminhtml_mapping_index>
28
- <ceneopl_adminhtml_mapping_edit>
29
- <reference name="content">
30
- <block type="ceneopl/admin_mapping_edit" name="mapping_edit" template="ceneopl/mapping/edit.phtml" />
31
- </reference>
32
- </ceneopl_adminhtml_mapping_edit>
33
</layout>
1
+ <?xml version="1.0"?>
2
+ <layout>
3
+ <ceneopl_adminhtml_offer_index>
4
+ <reference name="menu">
5
+ <action method="setActive"><menupath>catalog/ceneopl</menupath></action>
6
+ </reference>
7
+ <reference name="content">
8
+ <block type="ceneopl/admin_offer" name="ceneopl_offer">
9
+ <block type="adminhtml/store_switcher" name="store_switcher" as="store_switcher">
10
+ <action method="setUseConfirm"><params>0</params></action>
11
+ </block>
12
+ </block>
13
+ </reference>
14
+ </ceneopl_adminhtml_offer_index>
15
+ <ceneopl_adminhtml_offer_urls>
16
+ <reference name="content">
17
+ <block type="ceneopl/admin_offer_urls" name="offer_urls" />
18
+ </reference>
19
+ </ceneopl_adminhtml_offer_urls>
20
+ <ceneopl_adminhtml_mapping_index>
21
+ <reference name="menu">
22
+ <action method="setActive"><menupath>catalog/ceneopl</menupath></action>
23
+ </reference>
24
+ <reference name="content">
25
+ <block type="ceneopl/admin_mapping" name="ceneopl_mapping" />
26
+ </reference>
27
+ </ceneopl_adminhtml_mapping_index>
28
+ <ceneopl_adminhtml_mapping_edit>
29
+ <reference name="content">
30
+ <block type="ceneopl/admin_mapping_edit" name="mapping_edit" template="ceneopl/mapping/edit.phtml" />
31
+ </reference>
32
+ </ceneopl_adminhtml_mapping_edit>
33
</layout>
app/design/adminhtml/default/default/template/ceneopl/mapping.phtml CHANGED
@@ -1,13 +1,13 @@
1
- <div class="content-header">
2
- <table cellspacing="0">
3
- <tr>
4
- <td style="width:50%;"><h3><?php echo Mage::helper('ceneopl')->__('Mass Categories Mapping') ?></h3></td>
5
- <td class="a-right">
6
- <?php echo $this->getButtonsHtml() ?>
7
- </td>
8
- </tr>
9
- </table>
10
- </div>
11
- <div>
12
- <?php echo $this->getGridHtml() ?>
13
- </div>
1
+ <div class="content-header">
2
+ <table cellspacing="0">
3
+ <tr>
4
+ <td style="width:50%;"><h3><?php echo Mage::helper('ceneopl')->__('Mass Categories Mapping') ?></h3></td>
5
+ <td class="a-right">
6
+ <?php echo $this->getButtonsHtml() ?>
7
+ </td>
8
+ </tr>
9
+ </table>
10
+ </div>
11
+ <div>
12
+ <?php echo $this->getGridHtml() ?>
13
+ </div>
app/design/adminhtml/default/default/template/ceneopl/mapping/edit.phtml CHANGED
@@ -1,57 +1,57 @@
1
- <div class="content-header">
2
- <h3><?php echo $this->getHeaderText() ?></h3>
3
- <p class="content-buttons form-buttons">
4
- <?php echo $this->getBackButtonHtml(); ?>
5
- <?php echo $this->getResetButtonHtml(); ?>
6
- <?php if ($this->getEditMode()): ?>
7
- <?php echo $this->getDeleteButtonHtml(); ?>
8
- <?php endif ?>
9
- <?php if ($this->getEditMode()): ?>
10
- <?php echo $this->getSaveAsButtonHtml(); ?>
11
- <?php endif ?>
12
- <?php echo $this->getSaveButtonHtml(); ?>
13
- </p>
14
- </div>
15
- <form action="<?php echo $this->getSaveUrl() ?>" method="post" id="mapping_edit_form">
16
- <?php echo $this->getBlockHtml('formkey')?>
17
- <div class="no-display">
18
- <input type="hidden" id="change_flag_element" name="_change_type_flag" value="" />
19
- <input type="hidden" id="save_as_flag" name="_save_as_flag" value="<?php echo $this->getSaveAsFlag() ?>" />
20
- </div>
21
- <?php echo $this->getForm() ?>
22
- </form>
23
- <script type="text/javascript">
24
- //<![CDATA[
25
- var mappingForm = new varienForm('mapping_edit_form');
26
- var mappingControl = {
27
- init: function () {
28
- if ($('convert_button_back')) {
29
- $('convert_button_back').hide();
30
- }
31
- },
32
- save: function() {
33
- if (this.typeChange) {
34
- $('change_flag_element').value = '1';
35
- }
36
- mappingForm.submit();
37
- return false;
38
- },
39
- saveAs: function() {
40
- if (this.typeChange) {
41
- $('change_flag_element').value = '1';
42
- }
43
-
44
- $('save_as_flag').value = '1';
45
-
46
- mappingForm.submit();
47
- return false;
48
- },
49
- deleteMapping: function() {
50
- if(window.confirm("<?php echo Mage::helper('ceneopl')->__('Are you sure that you want to delete this mapping?') ?>")) {
51
- window.location.href = '<?php echo $this->getDeleteUrl() ?>';
52
- }
53
- }
54
- };
55
- mappingControl.init();
56
- //]]>
57
- </script>
1
+ <div class="content-header">
2
+ <h3><?php echo $this->getHeaderText() ?></h3>
3
+ <p class="content-buttons form-buttons">
4
+ <?php echo $this->getBackButtonHtml(); ?>
5
+ <?php echo $this->getResetButtonHtml(); ?>
6
+ <?php if ($this->getEditMode()): ?>
7
+ <?php echo $this->getDeleteButtonHtml(); ?>
8
+ <?php endif ?>
9
+ <?php if ($this->getEditMode()): ?>
10
+ <?php echo $this->getSaveAsButtonHtml(); ?>
11
+ <?php endif ?>
12
+ <?php echo $this->getSaveButtonHtml(); ?>
13
+ </p>
14
+ </div>
15
+ <form action="<?php echo $this->getSaveUrl() ?>" method="post" id="mapping_edit_form">
16
+ <?php echo $this->getBlockHtml('formkey')?>
17
+ <div class="no-display">
18
+ <input type="hidden" id="change_flag_element" name="_change_type_flag" value="" />
19
+ <input type="hidden" id="save_as_flag" name="_save_as_flag" value="<?php echo $this->getSaveAsFlag() ?>" />
20
+ </div>
21
+ <?php echo $this->getForm() ?>
22
+ </form>
23
+ <script type="text/javascript">
24
+ //<![CDATA[
25
+ var mappingForm = new varienForm('mapping_edit_form');
26
+ var mappingControl = {
27
+ init: function () {
28
+ if ($('convert_button_back')) {
29
+ $('convert_button_back').hide();
30
+ }
31
+ },
32
+ save: function() {
33
+ if (this.typeChange) {
34
+ $('change_flag_element').value = '1';
35
+ }
36
+ mappingForm.submit();
37
+ return false;
38
+ },
39
+ saveAs: function() {
40
+ if (this.typeChange) {
41
+ $('change_flag_element').value = '1';
42
+ }
43
+
44
+ $('save_as_flag').value = '1';
45
+
46
+ mappingForm.submit();
47
+ return false;
48
+ },
49
+ deleteMapping: function() {
50
+ if(window.confirm("<?php echo Mage::helper('ceneopl')->__('Are you sure that you want to delete this mapping?') ?>")) {
51
+ window.location.href = '<?php echo $this->getDeleteUrl() ?>';
52
+ }
53
+ }
54
+ };
55
+ mappingControl.init();
56
+ //]]>
57
+ </script>
app/design/adminhtml/default/default/template/ceneopl/offer.phtml CHANGED
@@ -1,13 +1,13 @@
1
- <div class="content-header">
2
- <table cellspacing="0">
3
- <tr>
4
- <td style="width:50%;"><h3 class="icon-head head-products"><?php echo Mage::helper('ceneopl')->__('Ceneo.pl Offer') ?></h3></td>
5
- </tr>
6
- </table>
7
- </div>
8
- <?php if( !$this->isSingleStoreMode() ): ?>
9
- <?php echo $this->getChildHtml('store_switcher');?>
10
- <?php endif;?>
11
- <div>
12
- <?php echo $this->getGridHtml() ?>
13
- </div>
1
+ <div class="content-header">
2
+ <table cellspacing="0">
3
+ <tr>
4
+ <td style="width:50%;"><h3 class="icon-head head-products"><?php echo Mage::helper('ceneopl')->__('Ceneo.pl Offer') ?></h3></td>
5
+ </tr>
6
+ </table>
7
+ </div>
8
+ <?php if( !$this->isSingleStoreMode() ): ?>
9
+ <?php echo $this->getChildHtml('store_switcher');?>
10
+ <?php endif;?>
11
+ <div>
12
+ <?php echo $this->getGridHtml() ?>
13
+ </div>
app/design/adminhtml/default/default/template/ceneopl/offer/urls.phtml CHANGED
@@ -1,10 +1,10 @@
1
- <div class="content-header">
2
- <table cellspacing="0">
3
- <tr>
4
- <td style="width:50%;"><h3><?php echo Mage::helper('ceneopl')->__('Ceneo.pl feed URLs') ?></h3></td>
5
- </tr>
6
- </table>
7
- </div>
8
- <div>
9
- <?php echo $this->getGridHtml() ?>
10
- </div>
1
+ <div class="content-header">
2
+ <table cellspacing="0">
3
+ <tr>
4
+ <td style="width:50%;"><h3><?php echo Mage::helper('ceneopl')->__('Ceneo.pl feed URLs') ?></h3></td>
5
+ </tr>
6
+ </table>
7
+ </div>
8
+ <div>
9
+ <?php echo $this->getGridHtml() ?>
10
+ </div>
app/etc/modules/Orba_Ceneopl.xml CHANGED
@@ -1,9 +1,9 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <config>
3
- <modules>
4
- <Orba_Ceneopl>
5
- <active>true</active>
6
- <codePool>community</codePool>
7
- </Orba_Ceneopl>
8
- </modules>
9
</config>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <modules>
4
+ <Orba_Ceneopl>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </Orba_Ceneopl>
8
+ </modules>
9
</config>
lib/Ceneopl/simple_xml_extended.php CHANGED
@@ -1,10 +1,10 @@
1
- <?php
2
- class SimpleXMLExtended extends SimpleXMLElement {
3
-
4
- public function addCData($cdata_text) {
5
- $node= dom_import_simplexml($this);
6
- $no = $node->ownerDocument;
7
- $node->appendChild($no->createCDATASection($cdata_text));
8
- }
9
-
10
}
1
+ <?php
2
+ class SimpleXMLExtended extends SimpleXMLElement {
3
+
4
+ public function addCData($cdata_text) {
5
+ $node= dom_import_simplexml($this);
6
+ $no = $node->ownerDocument;
7
+ $node->appendChild($no->createCDATASection($cdata_text));
8
+ }
9
+
10
}
package.xml CHANGED
@@ -1,7 +1,7 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>Orba_Ceneopl</name>
4
- <version>0.2.1</version>
5
<stability>stable</stability>
6
<license uri="http://www.opensource.org/licenses/academic.php">Academic Free License (AFL)</license>
7
<channel>community</channel>
@@ -12,11 +12,11 @@ Documentation will be available soon. Please, check the screenshots instead.&#xD
12
&#xD;
13
Modu&#x142; ten pozwala zmapowa&#x107; atrybuty Twoich produkt&#xF3;w z g&#x142;&#xF3;wnymi atrybutami z Ceneo.pl oraz przypisa&#x107; Twoje produkty do konkretnych kategorii z Ceneo.pl, u&#x17C;ywaj&#x105;c masowych akcji lub po prostu edytuj&#x105;c produkty jeden po drugim. Nast&#x119;pnie, daje Ci adresy URL do dynamicznie generowanych plik&#xF3;w XML (jeden dla ka&#x17C;dego store view), kt&#xF3;re mo&#x17C;esz doda&#x107; do swoich kont w Ceneo.pl.&#xD;
14
Dokumentacja b&#x119;dzie dost&#x119;pna wkr&#xF3;tce. Tymczasem, pomocne moga okaza&#x107; si&#x119; zrzuty ekran&#xF3;w.</description>
15
- <notes>- small bugfix</notes>
16
<authors><author><name>ORBA</name><user>orba</user><email>magento@orba.pl</email></author></authors>
17
- <date>2013-01-03</date>
18
- <time>11:00:16</time>
19
- <contents><target name="magecommunity"><dir name="Orba"><dir name="Ceneopl"><dir name="Block"><dir name="Admin"><dir name="Mapping"><dir name="Edit"><file name="Form.php" hash="aec87d27ecbd6b8f9083c881b11c3e10"/></dir><file name="Edit.php" hash="fda64801c0a51be4bbc180fd951c0b56"/><file name="Grid.php" hash="bf4e9b44bcd585e58d692c924a3815c9"/></dir><file name="Mapping.php" hash="4c772d3d770716fe49dd33f0b73f1a90"/><dir name="Offer"><file name="Grid.php" hash="9e961cd8f65d4a6a6727563e180416db"/><dir name="Urls"><file name="Grid.php" hash="065492d51f599978b7b4a207b07f8aa6"/></dir><file name="Urls.php" hash="ba891e824c89de69758740898f7d0fcc"/></dir><file name="Offer.php" hash="41a98a94eb87235bd832d4d145289d10"/></dir></dir><dir name="Helper"><file name="Data.php" hash="d15ea4514933d0288a2413db00823693"/></dir><dir name="Model"><file name="Attribute.php" hash="4c934d5f7ce4a97a6d77e1b4d7e87d22"/><dir name="Catalog"><file name="Category.php" hash="ca7606bb0cad983086682f10ec965f6c"/></dir><file name="Category.php" hash="d794dff974191280cfb85cb3432b925c"/><file name="Config.php" hash="66ef70a540729886244378ce8f1c9bfe"/><dir name="Mapping"><dir name="Catalog"><file name="Category.php" hash="0d7a8291e526194e96026787b131081e"/></dir></dir><file name="Mapping.php" hash="57c222b9e595c0582119ea9cba5cfa68"/><dir name="Mysql4"><dir name="Category"><file name="Collection.php" hash="338bfafadc72bc96391f8c0ca5711f9f"/></dir><file name="Category.php" hash="9c33827a672b65938a75884e114bbf75"/><dir name="Mapping"><dir name="Catalog"><dir name="Category"><file name="Collection.php" hash="2e72f29cdbd11a5541bfac14d8a8a50a"/></dir><file name="Category.php" hash="c9853b8361ccb13dad12c0acb8661793"/></dir><file name="Collection.php" hash="781fbff81600c48eb328545f3eb4e471"/></dir><file name="Mapping.php" hash="3d8b32920e6d55819007bd88c5753ec6"/><file name="Setup.php" hash="83c4535b38e26d0d589cecae24ef74ea"/></dir><file name="Product.php" hash="50d47f9e068e681c81abc72281f901cf"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MappingController.php" hash="93376313cf0619ac3056dacd6b6f1050"/><file name="OfferController.php" hash="bb4b980df1b1c04be864c059279b05a9"/></dir><file name="IndexController.php" hash="83d1694dfe519bd4419d1f34c6d0d426"/><file name="ProductsController.php" hash="a658f8c588707a412f8a5c8090244a2e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6e9aec68714db8bea4c96fbea35ec1cf"/><file name="config.xml" hash="24fee8cc94f8e0649a4eaf17caef3960"/><file name="system.xml" hash="e552ff41e29ab10e7ccecbd3d5d2e0b2"/></dir><dir name="sql"><dir name="ceneopl_setup"><file name="mysql4-install-0.1.0.php" hash="ba5fee5905cdf2d51c9103e00d43da47"/><file name="mysql4-install-0.1.1.php" hash="8e3856feedcdbd2af5d29f37444ad4a3"/><file name="mysql4-install-0.1.10.1.php" hash="c1f1dede15e6d79ee037fccc117272b3"/><file name="mysql4-install-0.1.10.php" hash="2ccc1dcc7ee46e69e0c9e4e1ae884d3f"/><file name="mysql4-install-0.1.11.php" hash="9f85f0cb6f8e7e8ff86b7cf94da9f147"/><file name="mysql4-install-0.1.2.php" hash="157f5f1fb86dc8f8d1d67f57316f7e9b"/><file name="mysql4-install-0.1.3.php" hash="d6887836147cf3df6ab03f43a8c47e30"/><file name="mysql4-install-0.1.4.php" hash="9527eec3884e2dace4d90762e394ca48"/><file name="mysql4-install-0.1.5.php" hash="a18774bf8456e9d5be704c31ecd52f6e"/><file name="mysql4-install-0.1.6.php" hash="87f59dd06bb4aeaa40ee1c1568266c22"/><file name="mysql4-install-0.1.7.php" hash="2b0f61da94669a572d99c41836e3236c"/><file name="mysql4-install-0.1.8.php" hash="db6889d3e0d1965b935d65f309b893a9"/><file name="mysql4-install-0.1.9.php" hash="7e4c448ce59ee23a11ef1bc4d03fcbad"/><file name="mysql4-install-0.2.0.php" hash="1bce702593952d964f92d8e396caaea5"/><file name="mysql4-install-0.2.1.php" hash="49f3c904d661f17f8bbba00ce09c3649"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="111ecfbfc972c05f2dc8905bf05b9fba"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="5e82e6593abc9a9e9f7841e4ca292898"/><file name="mysql4-upgrade-0.1.10-0.1.10.1.php" hash="be9e2596647de50e397a77bfbbc7d5c7"/><file name="mysql4-upgrade-0.1.10.1-0.1.11.php" hash="77cb4080f8a58b24c8cd1dad36bc8c13"/><file name="mysql4-upgrade-0.1.11-0.2.0.php" hash="f8e49df772ed51524a5e1a814adea108"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="12fd4bd4089bdb4b6a678a589c3ae9f8"/><file name="mysql4-upgrade-0.1.3-0.1.4.php" hash="1e2f6d09f3cae30f30af95d85ccbfebc"/><file name="mysql4-upgrade-0.1.4-0.1.5.php" hash="cb10654a68980c283993b0134af8c40d"/><file name="mysql4-upgrade-0.1.5-0.1.6.php" hash="4dd3da4caad0fc6d403e437e4bb60b4e"/><file name="mysql4-upgrade-0.1.6.1-0.1.7.php" hash="1d03d8f30f34809cbf655bfef212fc48"/><file name="mysql4-upgrade-0.1.7-0.1.8.php" hash="849eab6a2c3ecceba1d992df92635123"/><file name="mysql4-upgrade-0.1.8-0.1.9.php" hash="6c44aec3026a26286e554a748fc32860"/><file name="mysql4-upgrade-0.1.9-0.1.10.php" hash="94251dc2728a0a7e7563085c3533bfd6"/><file name="mysql4-upgrade-0.2.0-0.2.1.php" hash="1ab5b250ce9935f98c58fd7f56e27543"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="ceneopl"><dir name="mapping"><file name="edit.phtml" hash="919e044eb4c847f528e71c8225be43f9"/></dir><file name="mapping.phtml" hash="249ca56e76148c89795298033c36e4e0"/><dir name="offer"><file name="urls.phtml" hash="81c853da94fe7ed3ca169024a3d505a3"/></dir><file name="offer.phtml" hash="88ff15456c79a17a9ab520dcda222e76"/></dir></dir><dir name="layout"><file name="ceneopl.xml" hash="b2fa73b2270433d8343dcf98d7848b50"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Orba_Ceneopl.xml" hash="e1134a219b76aecd61f14214984d2e23"/></dir></target><target name="magelocale"><dir name="pl_PL"><file name="Orba_Ceneopl.csv" hash="8030a364626f6d7d42fdf8825372e521"/></dir></target><target name="magelib"><dir name="Ceneopl"><file name="simple_xml_extended.php" hash="854e3bf560fd4e9a7818d9c320bad9d3"/></dir></target></contents>
20
<compatible/>
21
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>Orba_Ceneopl</name>
4
+ <version>0.2.2</version>
5
<stability>stable</stability>
6
<license uri="http://www.opensource.org/licenses/academic.php">Academic Free License (AFL)</license>
7
<channel>community</channel>
12
&#xD;
13
Modu&#x142; ten pozwala zmapowa&#x107; atrybuty Twoich produkt&#xF3;w z g&#x142;&#xF3;wnymi atrybutami z Ceneo.pl oraz przypisa&#x107; Twoje produkty do konkretnych kategorii z Ceneo.pl, u&#x17C;ywaj&#x105;c masowych akcji lub po prostu edytuj&#x105;c produkty jeden po drugim. Nast&#x119;pnie, daje Ci adresy URL do dynamicznie generowanych plik&#xF3;w XML (jeden dla ka&#x17C;dego store view), kt&#xF3;re mo&#x17C;esz doda&#x107; do swoich kont w Ceneo.pl.&#xD;
14
Dokumentacja b&#x119;dzie dost&#x119;pna wkr&#xF3;tce. Tymczasem, pomocne moga okaza&#x107; si&#x119; zrzuty ekran&#xF3;w.</description>
15
+ <notes>- proper ACL configuration added</notes>
16
<authors><author><name>ORBA</name><user>orba</user><email>magento@orba.pl</email></author></authors>
17
+ <date>2013-05-06</date>
18
+ <time>06:54:18</time>
19
+ <contents><target name="magecommunity"><dir name="Orba"><dir name="Ceneopl"><dir name="Block"><dir name="Admin"><dir name="Mapping"><dir name="Edit"><file name="Form.php" hash="3dc4ede65fd4919d2e22c19882df5f4e"/></dir><file name="Edit.php" hash="ff6f83712b0c132fb41fec6100da8e2a"/><file name="Grid.php" hash="f58762ca1761214e03eae42ac2f71aac"/></dir><file name="Mapping.php" hash="fb7353651db0c1cd76e763c46ecf84af"/><dir name="Offer"><file name="Grid.php" hash="8ca40a0b04b1eadb160b009a392e6d63"/><dir name="Urls"><file name="Grid.php" hash="670d1352140ea9467a3ba961d5662716"/></dir><file name="Urls.php" hash="563e39422019b4951e86bf28ce88be08"/></dir><file name="Offer.php" hash="4c4e743ee322f512efd4df3d1228cb76"/></dir></dir><dir name="Helper"><file name="Data.php" hash="d15ea4514933d0288a2413db00823693"/></dir><dir name="Model"><file name="Attribute.php" hash="4c934d5f7ce4a97a6d77e1b4d7e87d22"/><dir name="Catalog"><file name="Category.php" hash="ca7606bb0cad983086682f10ec965f6c"/></dir><file name="Category.php" hash="1977dae9e1b4170dff5c760f9723b8c0"/><file name="Config.php" hash="2f725ce5f9d7295637572e6fb24a2412"/><dir name="Mapping"><dir name="Catalog"><file name="Category.php" hash="0d7a8291e526194e96026787b131081e"/></dir></dir><file name="Mapping.php" hash="57c222b9e595c0582119ea9cba5cfa68"/><dir name="Mysql4"><dir name="Category"><file name="Collection.php" hash="338bfafadc72bc96391f8c0ca5711f9f"/></dir><file name="Category.php" hash="9c33827a672b65938a75884e114bbf75"/><dir name="Mapping"><dir name="Catalog"><dir name="Category"><file name="Collection.php" hash="2e72f29cdbd11a5541bfac14d8a8a50a"/></dir><file name="Category.php" hash="c9853b8361ccb13dad12c0acb8661793"/></dir><file name="Collection.php" hash="781fbff81600c48eb328545f3eb4e471"/></dir><file name="Mapping.php" hash="3d8b32920e6d55819007bd88c5753ec6"/><file name="Setup.php" hash="0bffb5ed831f9090ceea24989932f365"/></dir><file name="Product.php" hash="50d47f9e068e681c81abc72281f901cf"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MappingController.php" hash="1926622680f4eaa1b7dd191ac1dfc115"/><file name="OfferController.php" hash="6509d46c2753af5218077a4d77318427"/></dir><file name="IndexController.php" hash="83d1694dfe519bd4419d1f34c6d0d426"/><file name="ProductsController.php" hash="a658f8c588707a412f8a5c8090244a2e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="06f8ede10df0ae18b0a1da27ec7348ed"/><file name="config.xml" hash="d85a6c372945acbf2a4b7a35f13bf8bc"/><file name="system.xml" hash="e552ff41e29ab10e7ccecbd3d5d2e0b2"/></dir><dir name="sql"><dir name="ceneopl_setup"><file name="mysql4-install-0.1.0.php" hash="ba5fee5905cdf2d51c9103e00d43da47"/><file name="mysql4-install-0.1.1.php" hash="8e3856feedcdbd2af5d29f37444ad4a3"/><file name="mysql4-install-0.1.10.1.php" hash="c1f1dede15e6d79ee037fccc117272b3"/><file name="mysql4-install-0.1.10.php" hash="2ccc1dcc7ee46e69e0c9e4e1ae884d3f"/><file name="mysql4-install-0.1.11.php" hash="9f85f0cb6f8e7e8ff86b7cf94da9f147"/><file name="mysql4-install-0.1.2.php" hash="157f5f1fb86dc8f8d1d67f57316f7e9b"/><file name="mysql4-install-0.1.3.php" hash="d6887836147cf3df6ab03f43a8c47e30"/><file name="mysql4-install-0.1.4.php" hash="9527eec3884e2dace4d90762e394ca48"/><file name="mysql4-install-0.1.5.php" hash="a18774bf8456e9d5be704c31ecd52f6e"/><file name="mysql4-install-0.1.6.php" hash="87f59dd06bb4aeaa40ee1c1568266c22"/><file name="mysql4-install-0.1.7.php" hash="2b0f61da94669a572d99c41836e3236c"/><file name="mysql4-install-0.1.8.php" hash="db6889d3e0d1965b935d65f309b893a9"/><file name="mysql4-install-0.1.9.php" hash="7e4c448ce59ee23a11ef1bc4d03fcbad"/><file name="mysql4-install-0.2.0.php" hash="1bce702593952d964f92d8e396caaea5"/><file name="mysql4-install-0.2.1.php" hash="49f3c904d661f17f8bbba00ce09c3649"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="f23bea9b310e25b84936e96dae4c40a5"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="32fa5ed7f5daafa1f64251065927fe76"/><file name="mysql4-upgrade-0.1.10-0.1.10.1.php" hash="1da3c1582ab0eeb169d2c1f325ebf5f7"/><file name="mysql4-upgrade-0.1.10.1-0.1.11.php" hash="80278787dba35beab849b078a36b4746"/><file name="mysql4-upgrade-0.1.11-0.2.0.php" hash="8054bf1d60c9071f2733b7f1449c9065"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="83f9e53f3ee498ced87a2f19cfe6d65d"/><file name="mysql4-upgrade-0.1.3-0.1.4.php" hash="987845dd887db121a783016ad89da724"/><file name="mysql4-upgrade-0.1.4-0.1.5.php" hash="1cf7ed3a4b6bf450f50d84bfd0e35dbb"/><file name="mysql4-upgrade-0.1.5-0.1.6.php" hash="23f8d6167791fccdd714577760b6a493"/><file name="mysql4-upgrade-0.1.6.1-0.1.7.php" hash="e51b21e07830628cafc4d0c06a866a05"/><file name="mysql4-upgrade-0.1.7-0.1.8.php" hash="1e1537398a0199184cb0a5e682ab818a"/><file name="mysql4-upgrade-0.1.8-0.1.9.php" hash="6f82e151d2e270ef22a01bf393e3ee91"/><file name="mysql4-upgrade-0.1.9-0.1.10.php" hash="3a2481167f7cf3fafd29e54e4bc0d495"/><file name="mysql4-upgrade-0.2.0-0.2.1.php" hash="1723ab67238857caf72e5257d8505241"/><file name="mysql4-upgrade-0.2.1-0.2.2.php" hash="f645d0a829664f8c97eaab0f7bf5caa2"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="ceneopl"><dir name="mapping"><file name="edit.phtml" hash="6e1f1131d7f952e313cfb68e5bb65a05"/></dir><file name="mapping.phtml" hash="b45974b91bf07d80cbd1363f107b2271"/><dir name="offer"><file name="urls.phtml" hash="491e15c3bee269816aa2a7d88c6203f6"/></dir><file name="offer.phtml" hash="7da1798135793f99c569117b9076a3c4"/></dir></dir><dir name="layout"><file name="ceneopl.xml" hash="5ff102034e78299fb8e2b80eac3d12f3"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Orba_Ceneopl.xml" hash="c45256768710e7eb2b16eb898483bca5"/></dir></target><target name="magelocale"><dir name="pl_PL"><file name="Orba_Ceneopl.csv" hash="8030a364626f6d7d42fdf8825372e521"/></dir></target><target name="magelib"><dir name="Ceneopl"><file name="simple_xml_extended.php" hash="1e72b54e04b09548dc3c7dd28500a05d"/></dir></target></contents>
20
<compatible/>
21
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
</package>