addwish - Version 0.18.0

Version Notes

New multisite module

Download this release

Release Info

Developer addwish
Extension addwish
Version 0.18.0
Comparing to
See all releases


Code changes from version 0.17.0 to 0.18.0

Files changed (33) hide show
  1. .DS_Store +0 -0
  2. app/.DS_Store +0 -0
  3. app/code/.DS_Store +0 -0
  4. app/code/local/.DS_Store +0 -0
  5. app/code/local/Addwish/.DS_Store +0 -0
  6. app/code/local/Addwish/Awext/.DS_Store +0 -0
  7. app/code/local/Addwish/Awext/Block/.DS_Store +0 -0
  8. app/code/local/Addwish/Awext/Block/Adminhtml/.DS_Store +0 -0
  9. app/code/local/Addwish/Awext/Block/Adminhtml/Awext.php +0 -12
  10. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/.DS_Store +0 -0
  11. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/Grid.php +0 -51
  12. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/Renderer.php +0 -4
  13. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/.DS_Store +0 -0
  14. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/.DS_Store +0 -0
  15. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Details.php +16 -3
  16. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Details/List.php +0 -20
  17. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Form.php +0 -10
  18. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Recommend.php +16 -3
  19. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Recommend/List.php +0 -20
  20. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Search.php +16 -3
  21. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Search/List.php +0 -20
  22. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Searchconfig.php +0 -7
  23. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Searchconfig/List.php +0 -20
  24. app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tabs.php +4 -4
  25. app/code/local/Addwish/Awext/Block/Awext.php +0 -8
  26. app/code/local/Addwish/Awext/Helper/Data.php +1 -1
  27. app/code/local/Addwish/Awext/controllers/IndexController.php +15 -4
  28. app/code/local/Addwish/Awext/etc/config.xml +2 -8
  29. app/design/adminhtml/default/default/layout/awext.xml +3 -144
  30. app/design/adminhtml/default/default/template/awext/search-config.phtml +0 -63
  31. app/design/frontend/base/default/template/addwish/integrator.phtml +6 -1
  32. app/design/frontend/base/default/template/addwish/product-span.phtml +1 -1
  33. package.xml +1 -1
.DS_Store ADDED
Binary file
app/.DS_Store ADDED
Binary file
app/code/.DS_Store ADDED
Binary file
app/code/local/.DS_Store ADDED
Binary file
app/code/local/Addwish/.DS_Store ADDED
Binary file
app/code/local/Addwish/Awext/.DS_Store CHANGED
Binary file
app/code/local/Addwish/Awext/Block/.DS_Store ADDED
Binary file
app/code/local/Addwish/Awext/Block/Adminhtml/.DS_Store ADDED
Binary file
app/code/local/Addwish/Awext/Block/Adminhtml/Awext.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- class Addwish_Awext_Block_Adminhtml_Awext extends Mage_Adminhtml_Block_Widget_Grid_Container
3
- {
4
- public function __construct()
5
- {
6
- $this->_controller = 'adminhtml_awext';
7
- $this->_blockGroup = 'awext';
8
- $this->_headerText = Mage::helper('awext')->__('AddWish');
9
- $this->_addButtonLabel = Mage::helper('awext')->__('AddWish');
10
- parent::__construct();
11
- }
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/.DS_Store ADDED
Binary file
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/Grid.php DELETED
@@ -1,51 +0,0 @@
1
- <?php
2
-
3
- class Addwish_Awext_Block_Adminhtml_Awext_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
- {
5
- public function __construct()
6
- {
7
- parent::__construct();
8
- $this->setId('awextGrid');
9
- $this->setDefaultSort('id');
10
- $this->setDefaultDir('ASC');
11
- $this->setSaveParametersInSession(true);
12
- }
13
-
14
- protected function _prepareCollection()
15
- {
16
- $collection = Mage::getModel('awext/awext')->getCollection();
17
- $this->setCollection($collection);
18
- return parent::_prepareCollection();
19
- }
20
-
21
- protected function _prepareColumns()
22
- {
23
- $this->addColumn('id', array(
24
- 'header' => Mage::helper('awext')->__('ID'),
25
- 'align' =>'right',
26
- 'width' => '50px',
27
- 'index' => 'id',
28
- ));
29
-
30
- $this->addColumn('email', array(
31
- 'header' => Mage::helper('awext')->__('Email ID'),
32
- 'align' => 'left',
33
- 'index' => 'email',
34
- ));
35
-
36
- return parent::_prepareColumns();
37
- }
38
-
39
- protected function _prepareMassaction()
40
- {
41
- $this->setMassactionIdField('id');
42
- $this->getMassactionBlock()->setFormFieldName('awext');
43
- return $this;
44
- }
45
-
46
- public function getRowUrl($row)
47
- {
48
- return $this->getUrl('*/*/edit', array('id' => $row->getId()));
49
- }
50
-
51
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/Renderer.php DELETED
@@ -1,4 +0,0 @@
1
- <?php
2
- class Addwish_Awext_Block_Adminhtml_Awext_Renderer extends Mage_Adminhtml_Block_Widget_Form_Container
3
- {
4
- }
 
 
 
 
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/.DS_Store ADDED
Binary file
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/.DS_Store ADDED
Binary file
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Details.php CHANGED
@@ -1,7 +1,20 @@
1
  <?php
2
- class Addwish_Awext_Block_Adminhtml_Awext_View_Tab_Details extends Mage_Adminhtml_Block_Text_List
3
  {
 
 
 
 
4
 
 
 
 
 
 
 
5
 
6
-
7
- }
 
 
 
1
  <?php
2
+ class Addwish_Awext_Block_Adminhtml_Awext_View_Tab_Details extends Mage_Adminhtml_Block_Template
3
  {
4
+ public function __construct()
5
+ {
6
+ $this->setTemplate('awext/list.phtml');
7
+ }
8
 
9
+ protected function _toHtml()
10
+ {
11
+ $awextCollection = Mage::getModel('awext/awext')->getCollection();
12
+ $this->assign('awextCollection', $awextCollection->getData());
13
+ return parent::_toHtml();
14
+ }
15
 
16
+ protected function _prepareLayout()
17
+ {
18
+ return parent::_prepareLayout();
19
+ }
20
+ }
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Details/List.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
- class Addwish_Awext_Block_Adminhtml_Awext_View_Tab_Details_List extends Mage_Adminhtml_Block_Template
3
- {
4
- public function __construct()
5
- {
6
- $this->setTemplate('awext/list.phtml');
7
- }
8
-
9
- protected function _toHtml()
10
- {
11
- $awextCollection = Mage::getModel('awext/awext')->getCollection();
12
- $this->assign('awextCollection', $awextCollection->getData());
13
- return parent::_toHtml();
14
- }
15
-
16
- protected function _prepareLayout()
17
- {
18
- return parent::_prepareLayout();
19
- }
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Form.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
-
3
- class Addwish_Awext_Block_Adminhtml_Awext_View_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
4
- {
5
- protected function _prepareForm()
6
- {
7
- $form = new Varien_Data_Form();
8
- return parent::_prepareForm();
9
- }
10
- }
 
 
 
 
 
 
 
 
 
 
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Recommend.php CHANGED
@@ -1,7 +1,20 @@
1
  <?php
2
- class Addwish_Awext_Block_Adminhtml_Awext_View_Tab_Recommend extends Mage_Adminhtml_Block_Text_List
3
  {
 
 
 
 
4
 
 
 
 
 
 
 
5
 
6
-
7
- }
 
 
 
1
  <?php
2
+ class Addwish_Awext_Block_Adminhtml_Awext_View_Tab_Recommend extends Mage_Adminhtml_Block_Template
3
  {
4
+ public function __construct()
5
+ {
6
+ $this->setTemplate('awext/recommendations.phtml');
7
+ }
8
 
9
+ protected function _toHtml()
10
+ {
11
+ $awextCollection = Mage::getModel('awext/awext')->getCollection();
12
+ $this->assign('awextCollection', $awextCollection->getData());
13
+ return parent::_toHtml();
14
+ }
15
 
16
+ protected function _prepareLayout()
17
+ {
18
+ return parent::_prepareLayout();
19
+ }
20
+ }
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Recommend/List.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
- class Addwish_Awext_Block_Adminhtml_Awext_View_Tab_Recommend_List extends Mage_Adminhtml_Block_Template
3
- {
4
- public function __construct()
5
- {
6
- $this->setTemplate('awext/recommendations.phtml');
7
- }
8
-
9
- protected function _toHtml()
10
- {
11
- $awextCollection = Mage::getModel('awext/awext')->getCollection();
12
- $this->assign('awextCollection', $awextCollection->getData());
13
- return parent::_toHtml();
14
- }
15
-
16
- protected function _prepareLayout()
17
- {
18
- return parent::_prepareLayout();
19
- }
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Search.php CHANGED
@@ -1,7 +1,20 @@
1
  <?php
2
- class Addwish_Awext_Block_Adminhtml_Awext_View_Tab_Search extends Mage_Adminhtml_Block_Text_List
3
  {
 
 
 
 
4
 
 
 
 
 
 
 
5
 
6
-
7
- }
 
 
 
1
  <?php
2
+ class Addwish_Awext_Block_Adminhtml_Awext_View_Tab_Search extends Mage_Adminhtml_Block_Template
3
  {
4
+ public function __construct()
5
+ {
6
+ $this->setTemplate('awext/search.phtml');
7
+ }
8
 
9
+ protected function _toHtml()
10
+ {
11
+ $awextCollection = Mage::getModel('awext/awext')->getCollection();
12
+ $this->assign('awextCollection', $awextCollection->getData());
13
+ return parent::_toHtml();
14
+ }
15
 
16
+ protected function _prepareLayout()
17
+ {
18
+ return parent::_prepareLayout();
19
+ }
20
+ }
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Search/List.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
- class Addwish_Awext_Block_Adminhtml_Awext_View_Tab_Search_List extends Mage_Adminhtml_Block_Template
3
- {
4
- public function __construct()
5
- {
6
- $this->setTemplate('awext/search.phtml');
7
- }
8
-
9
- protected function _toHtml()
10
- {
11
- $awextCollection = Mage::getModel('awext/awext')->getCollection();
12
- $this->assign('awextCollection', $awextCollection->getData());
13
- return parent::_toHtml();
14
- }
15
-
16
- protected function _prepareLayout()
17
- {
18
- return parent::_prepareLayout();
19
- }
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Searchconfig.php DELETED
@@ -1,7 +0,0 @@
1
- <?php
2
- class Addwish_Awext_Block_Adminhtml_Awext_View_Tab_Searchconfig extends Mage_Adminhtml_Block_Text_List
3
- {
4
-
5
-
6
-
7
- }
 
 
 
 
 
 
 
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tab/Searchconfig/List.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
- class Addwish_Awext_Block_Adminhtml_Awext_View_Tab_Searchconfig_List extends Mage_Adminhtml_Block_Template
3
- {
4
- public function __construct()
5
- {
6
- $this->setTemplate('awext/search-config.phtml');
7
- }
8
-
9
- protected function _toHtml()
10
- {
11
- $awextCollection = Mage::getModel('awext/awext')->getCollection();
12
- $this->assign('awextCollection', $awextCollection->getData());
13
- return parent::_toHtml();
14
- }
15
-
16
- protected function _prepareLayout()
17
- {
18
- return parent::_prepareLayout();
19
- }
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Addwish/Awext/Block/Adminhtml/Awext/View/Tabs.php CHANGED
@@ -7,7 +7,7 @@ class Addwish_Awext_Block_Adminhtml_Awext_View_Tabs extends Mage_Adminhtml_Block
7
  {
8
  parent::__construct();
9
  $this->setId('awext_tabs');
10
- $this->setTitle(Mage::helper('awext')->__('addwish Settings'));
11
  }
12
 
13
  protected function _beforeToHtml()
@@ -15,7 +15,7 @@ class Addwish_Awext_Block_Adminhtml_Awext_View_Tabs extends Mage_Adminhtml_Block
15
  $this->addTab('details_section', array(
16
  'label' => Mage::helper('awext')->__('Setup'),
17
  'title' => Mage::helper('awext')->__('Setup'),
18
- 'content' => $this->getLayout()->createBlock('awext/adminhtml_awext_view_tab_details_list')
19
  ->toHtml(),
20
  'active' => ( $this->getRequest()->getParam('tab') == 'details_section' ) ? true : false,
21
  ));
@@ -23,7 +23,7 @@ class Addwish_Awext_Block_Adminhtml_Awext_View_Tabs extends Mage_Adminhtml_Block
23
  $this->addTab('recommendation_section', array(
24
  'label' => Mage::helper('awext')->__('Recommendations'),
25
  'title' => Mage::helper('awext')->__('Recommendations'),
26
- 'content' => $this->getLayout()->createBlock('awext/adminhtml_awext_view_tab_recommend_list')
27
  ->toHtml(),
28
  'active' => ( $this->getRequest()->getParam('tab') == 'recommendation_section' ) ? true : false,
29
  ));
@@ -31,7 +31,7 @@ class Addwish_Awext_Block_Adminhtml_Awext_View_Tabs extends Mage_Adminhtml_Block
31
  $this->addTab('search_section', array(
32
  'label' => Mage::helper('awext')->__('Search'),
33
  'title' => Mage::helper('awext')->__('Search'),
34
- 'content' => $this->getLayout()->createBlock('awext/adminhtml_awext_view_tab_search_list')
35
  ->toHtml(),
36
  'active' => ( $this->getRequest()->getParam('tab') == 'search_section' ) ? true : false,
37
  ));
7
  {
8
  parent::__construct();
9
  $this->setId('awext_tabs');
10
+ $this->setTitle(Mage::helper('awext')->__('addwish settings'));
11
  }
12
 
13
  protected function _beforeToHtml()
15
  $this->addTab('details_section', array(
16
  'label' => Mage::helper('awext')->__('Setup'),
17
  'title' => Mage::helper('awext')->__('Setup'),
18
+ 'content' => $this->getLayout()->createBlock('awext/adminhtml_awext_view_tab_details')
19
  ->toHtml(),
20
  'active' => ( $this->getRequest()->getParam('tab') == 'details_section' ) ? true : false,
21
  ));
23
  $this->addTab('recommendation_section', array(
24
  'label' => Mage::helper('awext')->__('Recommendations'),
25
  'title' => Mage::helper('awext')->__('Recommendations'),
26
+ 'content' => $this->getLayout()->createBlock('awext/adminhtml_awext_view_tab_recommend')
27
  ->toHtml(),
28
  'active' => ( $this->getRequest()->getParam('tab') == 'recommendation_section' ) ? true : false,
29
  ));
31
  $this->addTab('search_section', array(
32
  'label' => Mage::helper('awext')->__('Search'),
33
  'title' => Mage::helper('awext')->__('Search'),
34
+ 'content' => $this->getLayout()->createBlock('awext/adminhtml_awext_view_tab_search')
35
  ->toHtml(),
36
  'active' => ( $this->getRequest()->getParam('tab') == 'search_section' ) ? true : false,
37
  ));
app/code/local/Addwish/Awext/Block/Awext.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- class Addwish_Awext_Block_Awext extends Mage_Core_Block_Template
3
- {
4
- public function _prepareLayout()
5
- {
6
- return parent::_prepareLayout();
7
- }
8
- }
 
 
 
 
 
 
 
 
app/code/local/Addwish/Awext/Helper/Data.php CHANGED
@@ -26,7 +26,7 @@ class Addwish_Awext_Helper_Data extends Mage_Core_Helper_Abstract
26
  $data['currency'] = Mage::app()->getStore()->getCurrentCurrencyCode();
27
  $data['hierarchies'] = $this->getProductHierarchies($product);
28
  $data['brand'] = $product->getData('brand');
29
- $data['inStock'] = $this->getProductInStock($product);
30
 
31
  if($product->getData('gender')) {
32
  $attr = $product->getResource()->getAttribute("gender");
26
  $data['currency'] = Mage::app()->getStore()->getCurrentCurrencyCode();
27
  $data['hierarchies'] = $this->getProductHierarchies($product);
28
  $data['brand'] = $product->getData('brand');
29
+ $data['instock'] = $this->getProductInStock($product);
30
 
31
  if($product->getData('gender')) {
32
  $attr = $product->getResource()->getAttribute("gender");
app/code/local/Addwish/Awext/controllers/IndexController.php CHANGED
@@ -45,11 +45,18 @@ class Addwish_Awext_IndexController extends Mage_Core_Controller_Front_Action
45
 
46
  }
47
 
 
 
 
 
 
 
 
48
  public function storesAction() {
49
  $this->verifyAccess();
50
 
51
  header("Content-type: text/xml");
52
- echo '<?xml version="1.0" encoding="UTF-8"?><stores>';
53
  foreach (Mage::app()->getWebsites() as $website) {
54
  foreach ($website->getGroups() as $group) {
55
  $stores = $group->getStores();
@@ -62,7 +69,7 @@ class Addwish_Awext_IndexController extends Mage_Core_Controller_Front_Action
62
  }
63
  }
64
  echo '</stores>';
65
-
66
  }
67
 
68
  public function orderListAction(){
@@ -93,7 +100,7 @@ class Addwish_Awext_IndexController extends Mage_Core_Controller_Front_Action
93
  ->addAttributeToFilter('status', array('eq' => Mage_Sales_Model_Order::STATE_COMPLETE));
94
 
95
  header("Content-type: text/xml");
96
- echo '<?xml version="1.0" encoding="UTF-8"?><orders';
97
  if($pageSize > 0) {
98
  $orders->setCurPage($page + 1);
99
  $orders->setPageSize($pageSize);
@@ -146,7 +153,7 @@ class Addwish_Awext_IndexController extends Mage_Core_Controller_Front_Action
146
 
147
  header("Content-type: text/xml");
148
 
149
- echo '<?xml version="1.0" encoding="UTF-8"?><products';
150
  if($pageSize > 0) {
151
  $products->setCurPage($page + 1);
152
  $products->setPageSize($pageSize);
@@ -205,5 +212,9 @@ class Addwish_Awext_IndexController extends Mage_Core_Controller_Front_Action
205
  return 'UNKNOWN';
206
  }
207
 
 
 
 
 
208
 
209
  }
45
 
46
  }
47
 
48
+ // No access control on this method
49
+ public function infoAction() {
50
+ header("Content-type: text/xml");
51
+ echo '<?xml version="1.0" encoding="UTF-8"?><info><version>'.$this->getExtensionVersion().'</version></info>';
52
+ exit;
53
+ }
54
+
55
  public function storesAction() {
56
  $this->verifyAccess();
57
 
58
  header("Content-type: text/xml");
59
+ echo '<?xml version="1.0" encoding="UTF-8"?><stores extension-version="'.self::getExtensionVersion().'">';
60
  foreach (Mage::app()->getWebsites() as $website) {
61
  foreach ($website->getGroups() as $group) {
62
  $stores = $group->getStores();
69
  }
70
  }
71
  echo '</stores>';
72
+ exit;
73
  }
74
 
75
  public function orderListAction(){
100
  ->addAttributeToFilter('status', array('eq' => Mage_Sales_Model_Order::STATE_COMPLETE));
101
 
102
  header("Content-type: text/xml");
103
+ echo '<?xml version="1.0" encoding="UTF-8"?><orders extension-version="'.self::getExtensionVersion().'"';
104
  if($pageSize > 0) {
105
  $orders->setCurPage($page + 1);
106
  $orders->setPageSize($pageSize);
153
 
154
  header("Content-type: text/xml");
155
 
156
+ echo '<?xml version="1.0" encoding="UTF-8"?><products extension-version="'.self::getExtensionVersion().'"';
157
  if($pageSize > 0) {
158
  $products->setCurPage($page + 1);
159
  $products->setPageSize($pageSize);
212
  return 'UNKNOWN';
213
  }
214
 
215
+ private static function getExtensionVersion()
216
+ {
217
+ return Mage::getConfig()->getNode()->modules->Addwish_Awext->version;
218
+ }
219
 
220
  }
app/code/local/Addwish/Awext/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Addwish_Awext>
5
- <version>0.17.0</version>
6
  </Addwish_Awext>
7
  </modules>
8
  <frontend>
@@ -73,13 +73,7 @@
73
  <awext module="awext">
74
  <title>addwish</title>
75
  <sort_order>80</sort_order>
76
- <children>
77
- <items module="awext">
78
- <title>addwish Configuration</title>
79
- <sort_order>0</sort_order>
80
- <action>/awext/view</action>
81
- </items>
82
- </children>
83
  </awext>
84
  </menu>
85
  <acl>
2
  <config>
3
  <modules>
4
  <Addwish_Awext>
5
+ <version>0.18.0</version>
6
  </Addwish_Awext>
7
  </modules>
8
  <frontend>
73
  <awext module="awext">
74
  <title>addwish</title>
75
  <sort_order>80</sort_order>
76
+ <action>/awext/view</action>
 
 
 
 
 
 
77
  </awext>
78
  </menu>
79
  <acl>
app/design/adminhtml/default/default/layout/awext.xml CHANGED
@@ -1,155 +1,14 @@
1
  <?xml version="1.0"?>
2
  <layout version="0.1.0">
3
- <awext_adminhtml_awext_index>
4
- <reference name="head">
5
- <action method="setTitle">
6
- <title>addwish Settings</title>
7
- </action>
8
- <action method="setTitle">
9
- <title>addwish Settings</title>
10
- </action>
11
- <action method="setCanLoadTinyMce">
12
- <load>1</load>
13
- </action>
14
- <action method="setCanLoadExtJs">
15
- <flag>1</flag>
16
- </action>
17
- <action method="addJs">
18
- <script>mage/adminhtml/variables.js</script>
19
- </action>
20
- <action method="addJs">
21
- <script>mage/adminhtml/wysiwyg/widget.js</script>
22
- </action>
23
- <action method="addJs">
24
- <script>lib/flex.js</script>
25
- </action>
26
- <action method="addJs">
27
- <script>lib/FABridge.js</script>
28
- </action>
29
- <action method="addJs">
30
- <script>mage/adminhtml/flexuploader.js</script>
31
- </action>
32
- <action method="addJs">
33
- <script>mage/adminhtml/browser.js</script>
34
- </action>
35
- <action method="addJs">
36
- <script>prototype/window.js</script>
37
- </action>
38
- <action method="addItem">
39
- <name>skin/adminhtml/default/default/lib/prototype/windows/themes/magento.css
40
- </name>
41
- </action>
42
- <action method="addItem">
43
- <type>js_css</type>
44
- <name>prototype/windows/themes/default.css</name>
45
- </action>
46
- </reference>
47
  <reference name="content">
48
- <block type="awext/adminhtml_awext" name="awext" />
49
- </reference>
50
- </awext_adminhtml_awext_index>
51
- <awext_adminhtml_awext_edit>
52
- <reference name="head">
53
- <action method="setTitle">
54
- <title>addwish Settings</title>
55
- </action>
56
- <action method="setTitle">
57
- <title>addwish Settings</title>
58
- </action>
59
- <action method="setCanLoadTinyMce">
60
- <load>1</load>
61
- </action>
62
- <action method="setCanLoadExtJs">
63
- <flag>1</flag>
64
- </action>
65
- <action method="addJs">
66
- <script>mage/adminhtml/variables.js</script>
67
- </action>
68
- <action method="addJs">
69
- <script>mage/adminhtml/wysiwyg/widget.js</script>
70
- </action>
71
- <action method="addJs">
72
- <script>lib/flex.js</script>
73
- </action>
74
- <action method="addJs">
75
- <script>lib/FABridge.js</script>
76
- </action>
77
- <action method="addJs">
78
- <script>mage/adminhtml/flexuploader.js</script>
79
- </action>
80
- <action method="addJs">
81
- <script>mage/adminhtml/browser.js</script>
82
- </action>
83
- <action method="addJs">
84
- <script>prototype/window.js</script>
85
- </action>
86
- <action method="addItem">
87
- <name>skin/adminhtml/default/default/lib/prototype/windows/themes/magento.css
88
- </name>
89
- </action>
90
- <action method="addItem">
91
- <type>js_css</type>
92
- <name>prototype/windows/themes/default.css</name>
93
- </action>
94
  </reference>
95
- </awext_adminhtml_awext_edit>
96
- <adminhtml_awext_view>
97
- <reference name="content">
98
- <block type="core/template" name="testing" before="-" template="awext/store-selector.phtml"></block>
99
- </reference>
100
- </adminhtml_awext_view>
101
-
102
 
103
  <awext_adminhtml_awext_view>
104
- <reference name="head">
105
- <action method="setTitle">
106
- <title>addwish Settings</title>
107
- </action>
108
- <action method="setTitle">
109
- <title>addwish Settings</title>
110
- </action>
111
- <action method="setCanLoadTinyMce">
112
- <load>1</load>
113
- </action>
114
- <action method="setCanLoadExtJs">
115
- <flag>1</flag>
116
- </action>
117
- <action method="addJs">
118
- <script>mage/adminhtml/variables.js</script>
119
- </action>
120
- <action method="addJs">
121
- <script>mage/adminhtml/wysiwyg/widget.js</script>
122
- </action>
123
- <action method="addJs">
124
- <script>lib/flex.js</script>
125
- </action>
126
- <action method="addJs">
127
- <script>lib/FABridge.js</script>
128
- </action>
129
- <action method="addJs">
130
- <script>mage/adminhtml/flexuploader.js</script>
131
- </action>
132
- <action method="addJs">
133
- <script>mage/adminhtml/browser.js</script>
134
- </action>
135
- <action method="addJs">
136
- <script>prototype/window.js</script>
137
- </action>
138
- <action method="addItem">
139
- <name>skin/adminhtml/default/default/lib/prototype/windows/themes/magento.css
140
- </name>
141
- </action>
142
- <action method="addItem">
143
- <type>js_css</type>
144
- <name>prototype/windows/themes/default.css</name>
145
- </action>
146
- </reference>
147
  <reference name="content">
148
  <block type="awext/adminhtml_awext_view" name="awext" />
149
  </reference>
150
  </awext_adminhtml_awext_view>
151
-
152
-
153
-
154
-
155
  </layout>
1
  <?xml version="1.0"?>
2
  <layout version="0.1.0">
3
+ <adminhtml_awext_view>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  <reference name="content">
5
+ <block type="core/template" name="store-selector" template="awext/store-selector.phtml"></block>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  </reference>
7
+ </adminhtml_awext_view>
 
 
 
 
 
 
8
 
9
  <awext_adminhtml_awext_view>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  <reference name="content">
11
  <block type="awext/adminhtml_awext_view" name="awext" />
12
  </reference>
13
  </awext_adminhtml_awext_view>
 
 
 
 
14
  </layout>
app/design/adminhtml/default/default/template/awext/search-config.phtml DELETED
@@ -1,63 +0,0 @@
1
- <style type="text/css">
2
- table.addwishgrid {
3
- width: 100%;
4
- border-collapse: collapse;
5
- /* margin:50px auto; */
6
- }
7
- /* Zebra striping */
8
- table.addwishgrid tr:nth-of-type(odd) {
9
- background: #eee;
10
- }
11
- table.addwishgrid th {
12
- background: #6f8992;
13
- color: white;
14
- font-weight: bold;
15
- }
16
- table.addwishgrid td,table.addwishgrid th {
17
- padding: 6px;
18
- border: 1px solid #ccc;
19
- text-align: left;
20
- font-size: 13px;
21
- }
22
- </style>
23
- <form action='' method='post'>
24
- <input type='hidden' name='action' value='updateattributes'/>
25
- <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
26
- <?php
27
- $currentStore= Mage::app()->getDefaultStoreView()->getStoreId();
28
- if(Mage::app()->getRequest()->getParam('storeconfig')){
29
- $currentStore=Mage::app()->getRequest()->getParam('storeconfig');
30
- }
31
- ?>
32
- <div style="float: right; margin-right: 20px;">
33
- <input type="submit" class="form-button" value="Save" name="submit">
34
- </div>
35
- <table class="addwishgrid">
36
- <thead>
37
- <tr>
38
- <th>Attribute Name</th>
39
- <th>Attribute Code</th>
40
- <th>Attribute Type</th>
41
- <th>Include ?</th>
42
- </tr>
43
- </thead>
44
- <tbody>
45
- <?php
46
- $productAttrs = Mage::getResourceModel('catalog/product_attribute_collection');
47
- $model = Mage::getModel('awext/awext')->load($currentStore);
48
- $selected_attributes=explode(",",$model->enabled_attributes);
49
- foreach ($productAttrs as $productAttr) {
50
- /** @var Mage_Catalog_Model_Resource_Eav_Attribute $productAttr */
51
- if($productAttr->getData('is_filterable')==1){
52
- if(in_array($productAttr->getAttributeCode(),$selected_attributes)){
53
- $checked='checked="checked"';
54
- }else{
55
- $checked='';
56
- }
57
- echo "<tr><td>".$productAttr->getFrontendLabel()."</td><td>".$productAttr->getAttributeCode()."</td><td>".$productAttr->getFrontendInput()."</td><td><input type='checkbox' name='includein[]' value='".$productAttr->getAttributeCode()."' ".$checked."></td></tr>";
58
- }
59
- }
60
- ?>
61
- </tbody>
62
- </table>
63
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/addwish/integrator.phtml CHANGED
@@ -1,13 +1,18 @@
1
  <?php
2
  $model = Mage::getModel('awext/awext')->load(Mage::app()->getStore()->getStoreId());
3
  if($model->getData('userId')!=''){
 
 
 
 
 
4
  ?><script type="text/javascript">
5
  (function() {
6
  var aws = document.createElement('script');
7
  aws.type = 'text/javascript';
8
  if (typeof(aws.async) != "undefined") { aws.async = true; }
9
  aws.src = (window.location.protocol == 'https:' ? 'https://d1pna5l3xsntoj.cloudfront.net' :
10
- 'http://cdn.addwish.com') + '/scripts/company/awAddGift.js#<?php echo $model->getData('userId');?>';
11
  var s = document.getElementsByTagName('script')[0];
12
  s.parentNode.insertBefore(aws, s);
13
  })();
1
  <?php
2
  $model = Mage::getModel('awext/awext')->load(Mage::app()->getStore()->getStoreId());
3
  if($model->getData('userId')!=''){
4
+ if(strlen($model->getData('userId'))==32){
5
+ $param="company/awAddGift.js#".$model->getData('userId')."";
6
+ }else{
7
+ $param="partner/".$model->getData('userId').".js";
8
+ }
9
  ?><script type="text/javascript">
10
  (function() {
11
  var aws = document.createElement('script');
12
  aws.type = 'text/javascript';
13
  if (typeof(aws.async) != "undefined") { aws.async = true; }
14
  aws.src = (window.location.protocol == 'https:' ? 'https://d1pna5l3xsntoj.cloudfront.net' :
15
+ 'http://cdn.addwish.com') + '/scripts/<?php echo $param;?>';
16
  var s = document.getElementsByTagName('script')[0];
17
  s.parentNode.insertBefore(aws, s);
18
  })();
app/design/frontend/base/default/template/addwish/product-span.phtml CHANGED
@@ -15,6 +15,6 @@ $productData['formkey'] = Mage::getSingleton('core/session')->getFormKey();
15
  $value = json_encode($value);
16
  }
17
  ?>
18
- data-<?php echo strtolower($key)?>="<?php echo htmlspecialchars($value)?>"
19
  <?php endforeach ?>
20
  ></span>
15
  $value = json_encode($value);
16
  }
17
  ?>
18
+ data-<?php echo $key?>="<?php echo htmlspecialchars($value)?>"
19
  <?php endforeach ?>
20
  ></span>
package.xml CHANGED
@@ -1,2 +1,2 @@
1
  <?xml version="1.0"?>
2
- <package><name>addwish</name><version>0.17.0</version><stability>stable</stability><license>GNU General Public License (GPL)</license><channel>community</channel><extends></extends><summary>New multisite module</summary><description>New multisite module</description><notes>New multisite module</notes><authors><author><name>addwish</name><user>addwish</user><email>krj@addwish.com</email></author></authors><date>2016-09-28</date><time>6:47:23</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="code"><dir name="local"><dir name="Addwish"><dir name="Awext"><dir name="Block"><file name="Awext.php" hash="5d627b94fe5a46ab3c5a77debbabcff6"/><dir name="Adminhtml"><file name="Awext.php" hash="2e46d78792ff55c3285d77780ba3e784"/><dir name="Awext"><file name="Grid.php" hash="0a9e0cc01157a49a58cddf0ef4eddbad"/><file name="Renderer.php" hash="f5f132bb8089270358be38f9e1fb342d"/><file name="View.php" hash="a5a5aa835bdbaf1102b50e90dec526a8"/><dir name="View"><file name="Tabs.php" hash="51d7b9c59068451c28bf614d42fe303d"/><dir name="Tab"><file name="Details.php" hash="9431059a450be7a0bb9d69867c2b2b10"/><file name="Form.php" hash="14b1192bea84fbee58e47ff749a004f4"/><file name="Recommend.php" hash="5d4fe965a062adcb51567c93e5adec2f"/><file name="Search.php" hash="f194d4fa52fa3e106baa49ffd981de06"/><file name="Searchconfig.php" hash="ce2a937906c8f2d13552d06b8c7b4f69"/><dir name="Details"><file name="List.php" hash="629a98942f2354a0a10d14e8564fc542"/></dir><dir name="Recommend"><file name="List.php" hash="a8f994f1e5a29abf1f4bbf48e826e1d2"/></dir><dir name="Search"><file name="List.php" hash="c556a6030e13ae9933bdf16e2ff1ff33"/></dir><dir name="Searchconfig"><file name="List.php" hash="6ef64a77cfc24144aa3a85515f6ce22b"/></dir></dir></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="80fb0d051853dade850c9234797dde06"/><dir name="Adminhtml"><file name="AwextController.php" hash="1cb7469bcc2761763c27756a691b8a32"/></dir></dir><dir name="etc"><file name="config.xml" hash="ba72e74e6de000f510cd61bba56694ff"/></dir><dir name="Helper"><file name="Data.php" hash="24b9ffe936508548090958084d658cf7"/></dir><dir name="Model"><file name="Awext.php" hash="1925cb6fd94cc7cd6baecda71964a424"/><file name="Observer.php" hash="e85fea849acf03c9353e557588e3f21d"/><dir name="Mysql4"><file name="Awext.php" hash="acd112233e367ebe80caf114f5dfe653"/><dir name="Awext"><file name="Collection.php" hash="12afe62372c67a5bd9154695c8d095f3"/></dir></dir></dir><dir name="sql"><dir name="addwish_setup"><file name="mysql4-install-0.0.4.php" hash="77a5d3d50380396c9bd2a9dfdfea8905"/></dir></dir></dir></dir></dir></dir><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="awext.xml" hash="0d94beddc26ad6e8a080ca4f0c8288f8"/></dir><dir name="template"><dir name="awext"><file name="list.phtml" hash="36b662e22b3586bc1cb601c6e1fb9392"/><file name="recommendations.phtml" hash="f8e63393c235903babd5a27a68b4a054"/><file name="search-config.phtml" hash="35e42872b25a359386b1ea239d571947"/><file name="search.phtml" hash="82d7130e256b0689d3b1682bf097fa55"/><file name="store-selector.phtml" hash="275b91522d136265f22de6550c7ca6dc"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="awext.xml" hash="55de3edcbfdd85884f58b322f88cfc27"/></dir><dir name="template"><dir name="addwish"><file name="addwish-head.phtml" hash="c5b6fa2cae55ad1ddd4a5c64f8d532f6"/><file name="basket-span.phtml" hash="e94f8c7f460ab66e3906fcc0e3fdf76b"/><file name="conversion-span.phtml" hash="a112dbaef738171454b0192bbc3722f9"/><file name="integrator.phtml" hash="43fb7dd7c6a56cbbaf25784aa393c110"/><file name="product-span.phtml" hash="3cfb25327ffed490dee813a8568e54ba"/><file name="search-result-page.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="upsells-page.phtml" hash="ac41002da8c7bb57233599a00053ef77"/></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Addwish_Awext.xml" hash="fea2883f86536f249670eea31980f72c"/></dir></dir></dir><dir name="skin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><file name="addwish.css" hash="df6e33a58cf2381ceaba72253a29796d"/></dir><dir name="images"><dir name="addwish"><file name="addwish.png" hash="a588d24d1919d9206eff40a886b88ef1"/></dir></dir></dir></dir></dir></dir></target></contents></package>
1
  <?xml version="1.0"?>
2
+ <package><name>addwish</name><version>0.18.0</version><stability>stable</stability><license>GNU General Public License (GPL)</license><channel>community</channel><extends></extends><summary>New multisite module</summary><description>New multisite module</description><notes>New multisite module</notes><authors><author><name>addwish</name><user>addwish</user><email>krj@addwish.com</email></author></authors><date>2016-10-19</date><time>1:12:07</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="code"><dir name="local"><dir name="Addwish"><dir name="Awext"><dir name="Block"><dir name="Adminhtml"><dir name="Awext"><file name="View.php" hash="a5a5aa835bdbaf1102b50e90dec526a8"/><dir name="View"><file name="Tabs.php" hash="b68e152475528d168d92ca6e8ad6eafc"/><dir name="Tab"><file name="Details.php" hash="eff51a28eacafbe07577af60237ad9c4"/><file name="Recommend.php" hash="02d71705312a1de1da6445027bb0926d"/><file name="Search.php" hash="c94f0146c7529f0542100a871446c4f0"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="450fdfeaa9e8fad57d4ac13940000092"/><dir name="Adminhtml"><file name="AwextController.php" hash="1cb7469bcc2761763c27756a691b8a32"/></dir></dir><dir name="etc"><file name="config.xml" hash="b30f64f9e5e531ba77f6a86242d602d4"/></dir><dir name="Helper"><file name="Data.php" hash="ef9c6ec9dfd7700b41c6f5ea71fd0569"/></dir><dir name="Model"><file name="Awext.php" hash="1925cb6fd94cc7cd6baecda71964a424"/><file name="Observer.php" hash="e85fea849acf03c9353e557588e3f21d"/><dir name="Mysql4"><file name="Awext.php" hash="acd112233e367ebe80caf114f5dfe653"/><dir name="Awext"><file name="Collection.php" hash="12afe62372c67a5bd9154695c8d095f3"/></dir></dir></dir><dir name="sql"><dir name="addwish_setup"><file name="mysql4-install-0.0.4.php" hash="77a5d3d50380396c9bd2a9dfdfea8905"/></dir></dir></dir></dir></dir></dir><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="awext.xml" hash="b632bf4a38cfb992303f97cd7a449a15"/></dir><dir name="template"><dir name="awext"><file name="list.phtml" hash="36b662e22b3586bc1cb601c6e1fb9392"/><file name="recommendations.phtml" hash="f8e63393c235903babd5a27a68b4a054"/><file name="search.phtml" hash="82d7130e256b0689d3b1682bf097fa55"/><file name="store-selector.phtml" hash="275b91522d136265f22de6550c7ca6dc"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="awext.xml" hash="55de3edcbfdd85884f58b322f88cfc27"/></dir><dir name="template"><dir name="addwish"><file name="addwish-head.phtml" hash="c5b6fa2cae55ad1ddd4a5c64f8d532f6"/><file name="basket-span.phtml" hash="e94f8c7f460ab66e3906fcc0e3fdf76b"/><file name="conversion-span.phtml" hash="a112dbaef738171454b0192bbc3722f9"/><file name="integrator.phtml" hash="da61ba45715f12b7153e518bbaa2e15a"/><file name="product-span.phtml" hash="4d2e243368b2ece3f8126400bdce6413"/><file name="search-result-page.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="upsells-page.phtml" hash="ac41002da8c7bb57233599a00053ef77"/></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Addwish_Awext.xml" hash="fea2883f86536f249670eea31980f72c"/></dir></dir></dir><dir name="skin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><file name="addwish.css" hash="df6e33a58cf2381ceaba72253a29796d"/></dir><dir name="images"><dir name="addwish"><file name="addwish.png" hash="a588d24d1919d9206eff40a886b88ef1"/></dir></dir></dir></dir></dir></dir></target></contents></package>