Version Notes
Any questions or concerns, please email cs@tagalys.com and we will get back to you in less than 24 hours.
Download this release
Release Info
Developer | Palani |
Extension | Personalized-localized-and-Intelligent-Site-Search |
Version | 1.1.3 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.1.3
- app/code/community/Tagalys/Core/Block/Adminhtml/Tagalys/Edit/Tab/Mpages.php +83 -0
- app/code/community/Tagalys/Core/Block/Adminhtml/Tagalys/Edit/Tab/Search.php +4 -0
- app/code/community/Tagalys/Core/Block/Adminhtml/Tagalys/Edit/Tab/Searchsuggestions.php +12 -6
- app/code/community/Tagalys/Core/Block/Adminhtml/Tagalys/Edit/Tabs.php +4 -0
- app/code/community/Tagalys/Core/Model/Config.php +3 -0
- app/code/community/Tagalys/Core/controllers/Adminhtml/TagalysController.php +7 -0
- app/code/community/Tagalys/Core/etc/config.xml +1 -1
- app/code/community/Tagalys/Mpages/.DS_Store +0 -0
- app/code/community/Tagalys/Mpages/controllers/IndexController.php +48 -0
- app/code/community/Tagalys/Mpages/etc/config.xml +32 -0
- app/code/community/Tagalys/Search/controllers/IndexController.php +15 -11
- app/design/frontend/base/default/template/tagalys_mpages/index.phtml +23 -0
- app/design/frontend/base/default/template/tagalys_search_suggestions/search_suggestions.phtml +2 -6
- app/etc/modules/Tagalys_Mpages.xml +11 -0
- package.xml +4 -4
app/code/community/Tagalys/Core/Block/Adminhtml/Tagalys/Edit/Tab/Mpages.php
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Tagalys_Core_Block_Adminhtml_Tagalys_Edit_Tab_Mpages extends Mage_Adminhtml_Block_Widget_Form implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
4 |
+
|
5 |
+
public function __construct() {
|
6 |
+
parent::__construct();
|
7 |
+
}
|
8 |
+
|
9 |
+
protected function _prepareForm() {
|
10 |
+
$this->_helper = Mage::helper('tagalys_core');
|
11 |
+
|
12 |
+
$form = Mage::getModel('varien/data_form', array(
|
13 |
+
'id' => 'edit_form',
|
14 |
+
'action' => $this->getUrl('*/tagalys', array('_current' => true)),
|
15 |
+
'method' => 'post'
|
16 |
+
));
|
17 |
+
|
18 |
+
$form->setHtmlIdPrefix('admin_tagalys_core_');
|
19 |
+
$htmlIdPrefix = $form->getHtmlIdPrefix();
|
20 |
+
|
21 |
+
$fieldset = $form->addFieldset('tagalys_mpages_fieldset', array('legend' => $this->__('Merchandising Pages')));
|
22 |
+
|
23 |
+
$fieldset->addField('enable_mpages', 'select', array(
|
24 |
+
'name' => 'enable_mpages',
|
25 |
+
'label' => 'Enable',
|
26 |
+
'title' => 'Enable',
|
27 |
+
'options' => array(
|
28 |
+
'0' => $this->__('No'),
|
29 |
+
'1' => $this->__('Yes'),
|
30 |
+
),
|
31 |
+
'required' => true,
|
32 |
+
'style' => 'width:100%',
|
33 |
+
'value' => Mage::getModel('tagalys_core/config')->getTagalysConfig("module:mpages:enabled")
|
34 |
+
));
|
35 |
+
|
36 |
+
$fieldset->addField('submit', 'submit', array(
|
37 |
+
'name' => 'tagalys_submit_action',
|
38 |
+
'value' => 'Save Merchandising Pages Settings',
|
39 |
+
'class'=> "tagalys-btn",
|
40 |
+
'tabindex' => 1
|
41 |
+
));
|
42 |
+
|
43 |
+
$this->setForm($form);
|
44 |
+
return parent::_prepareForm();
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Tab label getter
|
49 |
+
*
|
50 |
+
* @return string
|
51 |
+
*/
|
52 |
+
public function getTabLabel() {
|
53 |
+
return $this->__('Merchandising Pages');
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Tab title getter
|
58 |
+
*
|
59 |
+
* @return string
|
60 |
+
*/
|
61 |
+
public function getTabTitle() {
|
62 |
+
return $this->__('Merchandising Pages');
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Check if tab can be shown
|
67 |
+
*
|
68 |
+
* @return bool
|
69 |
+
*/
|
70 |
+
public function canShowTab() {
|
71 |
+
return true;
|
72 |
+
}
|
73 |
+
|
74 |
+
/**
|
75 |
+
* Check if tab hidden
|
76 |
+
*
|
77 |
+
* @return bool
|
78 |
+
*/
|
79 |
+
public function isHidden() {
|
80 |
+
return false;
|
81 |
+
}
|
82 |
+
|
83 |
+
}
|
app/code/community/Tagalys/Core/Block/Adminhtml/Tagalys/Edit/Tab/Search.php
CHANGED
@@ -20,6 +20,9 @@ class Tagalys_Core_Block_Adminhtml_Tagalys_Edit_Tab_Search extends Mage_Adminhtm
|
|
20 |
|
21 |
$fieldset = $form->addFieldset('tagalys_search_fieldset', array('legend' => $this->__('Search')));
|
22 |
|
|
|
|
|
|
|
23 |
$fieldset->addField('enable_search', 'select', array(
|
24 |
'name' => 'enable_search',
|
25 |
'label' => 'Enable',
|
@@ -29,6 +32,7 @@ class Tagalys_Core_Block_Adminhtml_Tagalys_Edit_Tab_Search extends Mage_Adminhtm
|
|
29 |
'1' => $this->__('Yes'),
|
30 |
),
|
31 |
'required' => true,
|
|
|
32 |
'style' => 'width:100%',
|
33 |
'value' => Mage::getModel('tagalys_core/config')->getTagalysConfig("module:search:enabled")
|
34 |
));
|
20 |
|
21 |
$fieldset = $form->addFieldset('tagalys_search_fieldset', array('legend' => $this->__('Search')));
|
22 |
|
23 |
+
$search_enabled = Mage::getModel('tagalys_core/config')->getTagalysConfig("module:search:enabled");
|
24 |
+
$search_suggestions_enabled = Mage::getModel('tagalys_core/config')->getTagalysConfig('module:search_suggestions:enabled');
|
25 |
+
|
26 |
$fieldset->addField('enable_search', 'select', array(
|
27 |
'name' => 'enable_search',
|
28 |
'label' => 'Enable',
|
32 |
'1' => $this->__('Yes'),
|
33 |
),
|
34 |
'required' => true,
|
35 |
+
'after_element_html' => ((!$search_suggestions_enabled && !$search_enabled) ? '<small>Choosing \'Yes\' will automatically enable Search Suggestions.</small>' : ''),
|
36 |
'style' => 'width:100%',
|
37 |
'value' => Mage::getModel('tagalys_core/config')->getTagalysConfig("module:search:enabled")
|
38 |
));
|
app/code/community/Tagalys/Core/Block/Adminhtml/Tagalys/Edit/Tab/Searchsuggestions.php
CHANGED
@@ -20,6 +20,8 @@ class Tagalys_Core_Block_Adminhtml_Tagalys_Edit_Tab_Searchsuggestions extends Ma
|
|
20 |
|
21 |
$fieldset = $form->addFieldset('tagalys_searchsuggestions_fieldset', array('legend' => $this->__('Search Suggestions')));
|
22 |
|
|
|
|
|
23 |
$fieldset->addField('enable_searchsuggestions', 'select', array(
|
24 |
'name' => 'enable_searchsuggestions',
|
25 |
'label' => 'Enable',
|
@@ -29,16 +31,20 @@ class Tagalys_Core_Block_Adminhtml_Tagalys_Edit_Tab_Searchsuggestions extends Ma
|
|
29 |
'1' => $this->__('Yes'),
|
30 |
),
|
31 |
'required' => true,
|
|
|
|
|
32 |
'style' => 'width:100%',
|
33 |
'value' => Mage::getModel('tagalys_core/config')->getTagalysConfig("module:search_suggestions:enabled")
|
34 |
));
|
35 |
|
36 |
-
|
37 |
-
'
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
|
|
42 |
|
43 |
$this->setForm($form);
|
44 |
return parent::_prepareForm();
|
20 |
|
21 |
$fieldset = $form->addFieldset('tagalys_searchsuggestions_fieldset', array('legend' => $this->__('Search Suggestions')));
|
22 |
|
23 |
+
$search_enabled = Mage::getModel('tagalys_core/config')->getTagalysConfig('module:search:enabled');
|
24 |
+
|
25 |
$fieldset->addField('enable_searchsuggestions', 'select', array(
|
26 |
'name' => 'enable_searchsuggestions',
|
27 |
'label' => 'Enable',
|
31 |
'1' => $this->__('Yes'),
|
32 |
),
|
33 |
'required' => true,
|
34 |
+
'disabled' => $search_enabled,
|
35 |
+
'after_element_html' => ($search_enabled ? '<small>Required for Search</small>' : ''),
|
36 |
'style' => 'width:100%',
|
37 |
'value' => Mage::getModel('tagalys_core/config')->getTagalysConfig("module:search_suggestions:enabled")
|
38 |
));
|
39 |
|
40 |
+
if (!$search_enabled) {
|
41 |
+
$fieldset->addField('submit', 'submit', array(
|
42 |
+
'name' => 'tagalys_submit_action',
|
43 |
+
'value' => 'Save Search Suggestions Settings',
|
44 |
+
'class'=> "tagalys-btn",
|
45 |
+
'tabindex' => 1
|
46 |
+
));
|
47 |
+
}
|
48 |
|
49 |
$this->setForm($form);
|
50 |
return parent::_prepareForm();
|
app/code/community/Tagalys/Core/Block/Adminhtml/Tagalys/Edit/Tabs.php
CHANGED
@@ -64,6 +64,10 @@ class Tagalys_Core_Block_Adminhtml_Tagalys_Edit_Tabs extends Mage_Adminhtml_Bloc
|
|
64 |
'label' => 'Search',
|
65 |
'content' => $this->getLayout()->createBlock('tagalys_core/adminhtml_tagalys_edit_tab_search')->toHtml(),
|
66 |
));
|
|
|
|
|
|
|
|
|
67 |
}
|
68 |
|
69 |
$this->addTab('support', array(
|
64 |
'label' => 'Search',
|
65 |
'content' => $this->getLayout()->createBlock('tagalys_core/adminhtml_tagalys_edit_tab_search')->toHtml(),
|
66 |
));
|
67 |
+
$this->addTab('mpages', array(
|
68 |
+
'label' => 'Merchandising Pages',
|
69 |
+
'content' => $this->getLayout()->createBlock('tagalys_core/adminhtml_tagalys_edit_tab_mpages')->toHtml(),
|
70 |
+
));
|
71 |
}
|
72 |
|
73 |
$this->addTab('support', array(
|
app/code/community/Tagalys/Core/Model/Config.php
CHANGED
@@ -28,6 +28,9 @@ class Tagalys_Core_Model_Config extends Mage_Core_Model_Abstract {
|
|
28 |
case 'Search':
|
29 |
$modules_to_activate = array('search_suggestions', 'search');
|
30 |
break;
|
|
|
|
|
|
|
31 |
}
|
32 |
Mage::getSingleton('tagalys_core/client')->log('info', 'All stores synced. Enabling Tagalys features.', array('modules_to_activate' => $modules_to_activate));
|
33 |
foreach($modules_to_activate as $module_to_activate) {
|
28 |
case 'Search':
|
29 |
$modules_to_activate = array('search_suggestions', 'search');
|
30 |
break;
|
31 |
+
case 'Mpages':
|
32 |
+
$modules_to_activate = array('mpages');
|
33 |
+
break;
|
34 |
}
|
35 |
Mage::getSingleton('tagalys_core/client')->log('info', 'All stores synced. Enabling Tagalys features.', array('modules_to_activate' => $modules_to_activate));
|
36 |
foreach($modules_to_activate as $module_to_activate) {
|
app/code/community/Tagalys/Core/controllers/Adminhtml/TagalysController.php
CHANGED
@@ -74,8 +74,15 @@ class Tagalys_Core_Adminhtml_TagalysController extends Mage_Adminhtml_Controller
|
|
74 |
break;
|
75 |
case 'Save Search Settings':
|
76 |
Mage::getModel('tagalys_core/config')->setTagalysConfig('module:search:enabled', $params['enable_search']);
|
|
|
|
|
|
|
77 |
$redirect_to_tab = 'search';
|
78 |
break;
|
|
|
|
|
|
|
|
|
79 |
case 'Trigger full products resync now':
|
80 |
Mage::getSingleton('tagalys_core/client')->log('warn', 'Triggering full products resync');
|
81 |
foreach (Mage::helper('tagalys_core')->getStoresForTagalys() as $store_id) {
|
74 |
break;
|
75 |
case 'Save Search Settings':
|
76 |
Mage::getModel('tagalys_core/config')->setTagalysConfig('module:search:enabled', $params['enable_search']);
|
77 |
+
if ($params['enable_search'] == '1') {
|
78 |
+
Mage::getModel('tagalys_core/config')->setTagalysConfig('module:search_suggestions:enabled', $params['enable_search']);
|
79 |
+
}
|
80 |
$redirect_to_tab = 'search';
|
81 |
break;
|
82 |
+
case 'Save Merchandising Pages Settings':
|
83 |
+
Mage::getModel('tagalys_core/config')->setTagalysConfig('module:mpages:enabled', $params['enable_mpages']);
|
84 |
+
$redirect_to_tab = 'mpages';
|
85 |
+
break;
|
86 |
case 'Trigger full products resync now':
|
87 |
Mage::getSingleton('tagalys_core/client')->log('warn', 'Triggering full products resync');
|
88 |
foreach (Mage::helper('tagalys_core')->getStoresForTagalys() as $store_id) {
|
app/code/community/Tagalys/Core/etc/config.xml
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
<tagalys>
|
7 |
<package>
|
8 |
<name>Search</name>
|
9 |
-
<version>1.1.
|
10 |
</package>
|
11 |
</tagalys>
|
12 |
</default>
|
6 |
<tagalys>
|
7 |
<package>
|
8 |
<name>Search</name>
|
9 |
+
<version>1.1.3</version>
|
10 |
</package>
|
11 |
</tagalys>
|
12 |
</default>
|
app/code/community/Tagalys/Mpages/.DS_Store
ADDED
Binary file
|
app/code/community/Tagalys/Mpages/controllers/IndexController.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Tagalys_Mpages_IndexController extends Mage_Core_Controller_Front_Action {
|
3 |
+
|
4 |
+
public function indexAction() {
|
5 |
+
$this->loadLayout();
|
6 |
+
|
7 |
+
if (Mage::helper('tagalys_core')->isTagalysModuleEnabled('mpages')) {
|
8 |
+
try {
|
9 |
+
$params = Mage::app()->getRequest()->getParams();
|
10 |
+
$response = Mage::getSingleton('tagalys_core/client')->storeApiCall(Mage::app()->getStore()->getId().'', '/v1/mpages/'.$params['mpage'], array('request' => array('variables', 'banners')));
|
11 |
+
if ($response !== false) {
|
12 |
+
$head = $this->getLayout()->getBlock('head');
|
13 |
+
if ($head) {
|
14 |
+
if (isset($response['variables'])) {
|
15 |
+
if (isset($response['variables']['page_title']) && $response['variables']['page_title'] != '' ) {
|
16 |
+
$head->setTitle($response['variables']['page_title']);
|
17 |
+
} else {
|
18 |
+
$head->setTitle($response['name']);
|
19 |
+
}
|
20 |
+
if (isset($response['variables']['meta_keywords'])) {
|
21 |
+
$head->setKeywords($response['variables']['meta_keywords']);
|
22 |
+
}
|
23 |
+
if (isset($response['variables']['meta_description'])) {
|
24 |
+
$head->setDescription($response['variables']['meta_description']);
|
25 |
+
}
|
26 |
+
}
|
27 |
+
}
|
28 |
+
}
|
29 |
+
} catch (Exception $e) {
|
30 |
+
|
31 |
+
}
|
32 |
+
|
33 |
+
$block = $this->getLayout()->createBlock(
|
34 |
+
'Mage_Core_Block_Template',
|
35 |
+
'search',
|
36 |
+
array('template' => 'tagalys_mpages/index.phtml')
|
37 |
+
);
|
38 |
+
$this->getLayout()->getBlock('root')->setTemplate('page/1column.phtml');
|
39 |
+
$this->getLayout()->getBlock('content')->append($block);
|
40 |
+
$this->_initLayoutMessages('core/session');
|
41 |
+
$this->renderLayout();
|
42 |
+
} else {
|
43 |
+
$this->norouteAction();
|
44 |
+
return;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
|
48 |
+
}
|
app/code/community/Tagalys/Mpages/etc/config.xml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
|
3 |
+
<config>
|
4 |
+
|
5 |
+
<modules>
|
6 |
+
<Tagalys_Mpages>
|
7 |
+
<version>0.1.0</version>
|
8 |
+
</Tagalys_Mpages>
|
9 |
+
</modules>
|
10 |
+
|
11 |
+
<frontend>
|
12 |
+
<routers>
|
13 |
+
<tagalys_mpage>
|
14 |
+
<use>standard</use>
|
15 |
+
<args>
|
16 |
+
<module>Tagalys_Mpages</module>
|
17 |
+
<frontName>m</frontName>
|
18 |
+
</args>
|
19 |
+
</tagalys_mpage>
|
20 |
+
</routers>
|
21 |
+
</frontend>
|
22 |
+
|
23 |
+
<global>
|
24 |
+
<rewrite>
|
25 |
+
<tagalys_mpage>
|
26 |
+
<from><![CDATA[#^/m/([\w-]+)/?#]]></from>
|
27 |
+
<to><![CDATA[/m/index/index/mpage/$1]]></to>
|
28 |
+
<complete>1</complete>
|
29 |
+
</tagalys_mpage>
|
30 |
+
</rewrite>
|
31 |
+
</global>
|
32 |
+
</config>
|
app/code/community/Tagalys/Search/controllers/IndexController.php
CHANGED
@@ -3,18 +3,22 @@ class Tagalys_Search_IndexController extends Mage_Core_Controller_Front_Action {
|
|
3 |
|
4 |
public function indexAction() {
|
5 |
$this->loadLayout();
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
-
|
8 |
-
'
|
9 |
-
'
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
$this->_initLayoutMessages('core/session');
|
17 |
-
$this->renderLayout();
|
18 |
}
|
19 |
|
20 |
}
|
3 |
|
4 |
public function indexAction() {
|
5 |
$this->loadLayout();
|
6 |
+
if (Mage::helper('tagalys_core')->isTagalysModuleEnabled('search')) {
|
7 |
+
$block = $this->getLayout()->createBlock(
|
8 |
+
'Mage_Core_Block_Template',
|
9 |
+
'search',
|
10 |
+
array('template' => 'tagalys_search/index.phtml')
|
11 |
+
);
|
12 |
|
13 |
+
$this->getLayout()->getBlock('root')->setTemplate('page/1column.phtml');
|
14 |
+
$this->getLayout()->getBlock('head')->setTitle('Search Results for "' . Mage::app()->getRequest()->getParam('q', null) . '"');
|
15 |
+
$this->getLayout()->getBlock('content')->append($block);
|
16 |
+
$this->_initLayoutMessages('core/session');
|
17 |
+
$this->renderLayout();
|
18 |
+
} else {
|
19 |
+
$this->norouteAction();
|
20 |
+
return;
|
21 |
+
}
|
|
|
|
|
22 |
}
|
23 |
|
24 |
}
|
app/design/frontend/base/default/template/tagalys_mpages/index.phtml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="tagalys-namespace" id="tagalys-namespace">
|
2 |
+
|
3 |
+
</div>
|
4 |
+
|
5 |
+
<script type="text/javascript">
|
6 |
+
<?php
|
7 |
+
$api_credentials = json_decode(Mage::getModel('tagalys_core/config')->getTagalysConfig("api_credentials"), true);
|
8 |
+
$currency = Mage::helper('search_suggestions')->getCurrentCurrency();
|
9 |
+
?>
|
10 |
+
(function( $ ) {
|
11 |
+
$('body').tagalys_context({
|
12 |
+
api_server: '<?php echo $api_credentials['api_server'] ?>',
|
13 |
+
api_identification: {"client_code":"<?php echo $api_credentials['client_code'] ?>","api_key":"<?php echo $api_credentials['public_api_key'] ?>","store_id":"<?php echo Mage::app()->getStore()->getStoreId() ?>","currency":"<?php echo $currency[0]['id']; ?>"},
|
14 |
+
currency: {
|
15 |
+
label: "<?php echo $currency[0]['label']; ?>",
|
16 |
+
exchange_rate: "<?php echo $currency[0]['exchange_rate']; ?>",
|
17 |
+
fractional_digits:"<?php echo $currency[0]['fractional_digits']; ?>"
|
18 |
+
}
|
19 |
+
});
|
20 |
+
<?php $params = Mage::app()->getRequest()->getParams(); ?>
|
21 |
+
$('#tagalys-namespace').tagalys_mpage({ name: '<?php echo $params['mpage'] ?>' });
|
22 |
+
}(jQuery));
|
23 |
+
</script>
|
app/design/frontend/base/default/template/tagalys_search_suggestions/search_suggestions.phtml
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<?php if(Mage::helper('tagalys_core')->isTagalysModuleEnabled('search_suggestions') || Mage::helper('tagalys_core')->isTagalysModuleEnabled('search')): ?>
|
2 |
<script src='https://s3-ap-southeast-1.amazonaws.com/tagalys-assets/tagalys-plugins-v2.js' type='text/javascript'></script>
|
3 |
<?php endif; ?>
|
4 |
<?php if(Mage::helper('tagalys_core')->isTagalysModuleEnabled('search_suggestions')): ?>
|
@@ -25,11 +25,7 @@
|
|
25 |
} else {
|
26 |
<?php if($tagalys_search_enabled): ?>
|
27 |
str = Object.keys(qf).map(function(key){
|
28 |
-
|
29 |
-
keyword = "cat";
|
30 |
-
else
|
31 |
-
keyword = key;
|
32 |
-
return encodeURIComponent(keyword) + "-"+ encodeURIComponent(qf[key]);
|
33 |
}).join('~');
|
34 |
qf_param = encodeURIComponent("qf") + '=' + str;
|
35 |
|
1 |
+
<?php if(Mage::helper('tagalys_core')->isTagalysModuleEnabled('search_suggestions') || Mage::helper('tagalys_core')->isTagalysModuleEnabled('search') || Mage::helper('tagalys_core')->isTagalysModuleEnabled('mpages')): ?>
|
2 |
<script src='https://s3-ap-southeast-1.amazonaws.com/tagalys-assets/tagalys-plugins-v2.js' type='text/javascript'></script>
|
3 |
<?php endif; ?>
|
4 |
<?php if(Mage::helper('tagalys_core')->isTagalysModuleEnabled('search_suggestions')): ?>
|
25 |
} else {
|
26 |
<?php if($tagalys_search_enabled): ?>
|
27 |
str = Object.keys(qf).map(function(key){
|
28 |
+
return encodeURIComponent(key) + "-"+ encodeURIComponent(qf[key]);
|
|
|
|
|
|
|
|
|
29 |
}).join('~');
|
30 |
qf_param = encodeURIComponent("qf") + '=' + str;
|
31 |
|
app/etc/modules/Tagalys_Mpages.xml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version = "1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Tagalys_Mpages>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
<version>0.1.0</version>
|
8 |
+
</Tagalys_Mpages>
|
9 |
+
</modules>
|
10 |
+
</config>
|
11 |
+
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Personalized-localized-and-Intelligent-Site-Search</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license>Tagalys</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>The extension powers search suggestions and resulting search results. Upon clicking the search bar, show visitors the most popular or trending searches in your ecommerce store. When a visitor starts typing, we auto complete the query into suggestions from the active product-tag-attribute database. </description>
|
11 |
<notes>Any questions or concerns, please email cs@tagalys.com and we will get back to you in less than 24 hours. </notes>
|
12 |
<authors><author><name>Palani</name><user>Palani</user><email>pc@tagalys.com</email></author></authors>
|
13 |
-
<date>2017-04-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir><dir name="modules"><file name="Tagalys_Core.xml" hash="7576ed5aa125c580f0b791018f24a0e9"/><file name="Tagalys_SearchSuggestions.xml" hash="dbf6f4ff1859ef2df72560c9282af435"/><file name="Tagalys_Search.xml" hash="820b96f53d2f0e86cb49906a4dda7f41"/></dir></dir></target><target name="magecommunity"><dir><dir name="Tagalys"><dir name="Core"><dir name="Block"><dir name="Adminhtml"><dir name="Tagalys"><dir name="Edit"><file name="Form.php" hash="31cae34d1e9bd5cb0c881ae5a6fc03c0"/><dir name="Tab"><file name="Apicredentials.php" hash="9005c30790a51ad077cb4be46a07b766"/><file name="Search.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>7.0.10</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Personalized-localized-and-Intelligent-Site-Search</name>
|
4 |
+
<version>1.1.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>Tagalys</license>
|
7 |
<channel>community</channel>
|
10 |
<description>The extension powers search suggestions and resulting search results. Upon clicking the search bar, show visitors the most popular or trending searches in your ecommerce store. When a visitor starts typing, we auto complete the query into suggestions from the active product-tag-attribute database. </description>
|
11 |
<notes>Any questions or concerns, please email cs@tagalys.com and we will get back to you in less than 24 hours. </notes>
|
12 |
<authors><author><name>Palani</name><user>Palani</user><email>pc@tagalys.com</email></author></authors>
|
13 |
+
<date>2017-04-19</date>
|
14 |
+
<time>16:26:26</time>
|
15 |
+
<contents><target name="mageetc"><dir><dir name="modules"><file name="Tagalys_Core.xml" hash="7576ed5aa125c580f0b791018f24a0e9"/><file name="Tagalys_SearchSuggestions.xml" hash="dbf6f4ff1859ef2df72560c9282af435"/><file name="Tagalys_Search.xml" hash="820b96f53d2f0e86cb49906a4dda7f41"/><file name="Tagalys_Mpages.xml" hash="6ccb4f45669c98fd746c6abd92ab32ca"/></dir></dir></target><target name="magecommunity"><dir><dir name="Tagalys"><dir name="Core"><dir name="Block"><dir name="Adminhtml"><dir name="Tagalys"><dir name="Edit"><file name="Form.php" hash="31cae34d1e9bd5cb0c881ae5a6fc03c0"/><dir name="Tab"><file name="Apicredentials.php" hash="9005c30790a51ad077cb4be46a07b766"/><file name="Mpages.php" hash="ba526eb77efd4000ae96404bd04aa638"/><file name="Search.php" hash="fef14680d0feb63bb4e928296c3b9032"/><file name="Searchsuggestions.php" hash="5c87af24ad22c663da17e0a1ffe9a655"/><file name="Support.php" hash="c68547cfe57cbccdcbcf7c3eb35ed6b3"/><file name="Sync.php" hash="849f7bb77ff568e7f29cf63d54e7faa8"/><file name="Syncsettings.php" hash="eecdbdee1c7b3a0e7b978f46b6879acc"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name="Tabs.php" hash="20d85d9037ba7a885c33030657900c88"/><file name=".DS_Store" hash="711f187349473a2c6e6d564d4a2faeb9"/></dir><file name="Edit.php" hash="9da04e9a4aec76ce5f5bd88c453390cd"/><file name=".DS_Store" hash="2f95379345a665b8fd261ff7c2f5a7af"/></dir><file name=".DS_Store" hash="96cf5cac0d87be80da73c36e96971923"/></dir><file name=".DS_Store" hash="8c5a4cb1f6f8e10ade87d78ff4d0bfe4"/></dir><dir name="Helper"><file name="Data.php" hash="9b1d43244175ebd78a57e983a831308b"/><file name="Service.php" hash="3eeaa766255db6636e352f7be47876f5"/><file name="SyncFile.php" hash="5b60934e482b5d2332e7eae44c907a72"/></dir><dir name="Model"><file name="Client.php" hash="30e1a58406d31c97bc249acc8ebeee9c"/><file name="Config.php" hash="784ee62e5d029503f915bfdaf9cff003"/><dir name="Mysql4"><dir name="Config"><file name="Collection.php" hash="0967ac6ac1a049d9e09288641d2b4a58"/></dir><file name="Config.php" hash="3562b9ffdf260e34945f9e7830facc1b"/><dir name="Queue"><file name="Collection.php" hash="db01d5b412ca3f8cbc1cbbe8b1ed3d0d"/></dir><file name="Queue.php" hash="50fd814880c6adf02dcb9babe5874811"/><file name=".DS_Store" hash="d3dec31675796dca442be9f6076210df"/></dir><file name="Observer.php" hash="9197f6fb573484db244c141607872b95"/><file name="ProductDetails.php" hash="0e06fa7061b325734554b05f81673201"/><file name="Queue.php" hash="459a74e66f2a7ccd146f480701574464"/><file name=".DS_Store" hash="3db11e65f616ba2524ebf71cf1300fa5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="TagalysController.php" hash="ae3d1b6cc8d229e98130704b8e010e17"/></dir><file name="SyncfilesController.php" hash="1b8476cbb4d02ec87b7742e4dc9fff4b"/><file name=".DS_Store" hash="db462bf5da1a15c73197a0fefd3f5b51"/></dir><dir name="etc"><file name="config.xml" hash="ad6794f9809b3e8442cdc3dab8df2d91"/></dir><dir name="sql"><dir name="tagalys_core_setup"><file name="mysql4-install-0.3.0.php" hash="fca9f934db6850d950dfdcd71dba7dcd"/><file name="mysql4-upgrade-0.1.0-0.3.0.php" hash="1eb2da3bdf0753b6f4904f1fd62af32f"/><file name="mysql4-upgrade-0.2.0-0.3.0.php" hash="1eb2da3bdf0753b6f4904f1fd62af32f"/></dir><file name=".DS_Store" hash="d87f0e93ae82377a5ceeda9bd58740e8"/></dir><file name=".DS_Store" hash="d1024e81b6252a3d102a906452f53021"/></dir><dir name="SearchSuggestions"><dir name="Helper"><file name="Data.php" hash="a88adfc9f92bb01b4fdb851ea4f265d3"/></dir><dir name="Model"><file name="Observer.php" hash="73e90449054eac498e3b4dfd55db33f1"/></dir><dir name="etc"><file name="config.xml" hash="1e1ee26e326c03473e5854f5dae06c59"/></dir></dir><dir name="Search"><dir name="controllers"><file name="IndexController.php" hash="baaeb347db3b8d32d09a83d3369388a8"/></dir><dir name="etc"><file name="config.xml" hash="5e5a0a2d2de927241c1e97f435a382f7"/></dir><file name=".DS_Store" hash="822777d708619165d544d3256174adc2"/></dir><dir name="Mpages"><dir name="controllers"><file name="IndexController.php" hash="1d80e73a3e3d2a51cff12ebbe1b1364e"/></dir><dir name="etc"><file name="config.xml" hash="80d1b3c82d4da93c271376881f663db5"/></dir><file name=".DS_Store" hash="822777d708619165d544d3256174adc2"/></dir></dir></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="tagalys_core.xml" hash="a0875951441399a46dfb5cb3d346b7d8"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="tagalys_search_suggestions.xml" hash="fc80c019c80782d9b956553c56f236e1"/></dir><dir name="template"><dir name="tagalys_search_suggestions"><file name="search_suggestions.phtml" hash="b55dbbb4f333ca8351772a3c4f2102ea"/></dir><dir name="tagalys_search"><file name="index.phtml" hash="45947e71dd01470b5d1664a7e7eaa5bd"/></dir><dir name="tagalys_mpages"><file name="index.phtml" hash="8ad2aeed80bc1d9b86649ac34e5eaa2f"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><dir name="tagalys"><file name="tagalys-configuration.css" hash="fa3b8f3a4d1bebbbcef261f10e4652b7"/></dir></dir><dir name="images"><dir name="tagalys"><file name="tagalys-logo.png" hash="b26278b173e29b21edc16ddd06ca0192"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir><dir name="js"><file name="tagalys-configuration.js" hash="310c28a4b52225884d06a9e596758053"/></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>7.0.10</max></php></required></dependencies>
|
18 |
</package>
|