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.6.0 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.6.0
- app/code/community/Tagalys/Core/Model/ProductDetails.php +19 -11
- app/code/community/Tagalys/Core/etc/config.xml +1 -1
- app/design/frontend/base/default/template/tagalys_mpages/index.phtml +1 -1
- app/design/frontend/base/default/template/tagalys_search/index.phtml +1 -1
- app/design/frontend/base/default/template/tagalys_search_suggestions/search_suggestions.phtml +11 -10
- package.xml +4 -4
app/code/community/Tagalys/Core/Model/ProductDetails.php
CHANGED
@@ -31,17 +31,25 @@ class Tagalys_Core_Model_ProductDetails extends Mage_Core_Model_Abstract {
|
|
31 |
}
|
32 |
}
|
33 |
}
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
$
|
38 |
-
$
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
$utc_now = new DateTime("now", new DateTimeZone('UTC'));
|
47 |
$time_now = $utc_now->format(DateTime::ATOM);
|
31 |
}
|
32 |
}
|
33 |
}
|
34 |
+
$productType = $product->getTypeId();
|
35 |
+
switch($productType) {
|
36 |
+
case Mage_Catalog_Model_Product_Type::TYPE_GROUPED:
|
37 |
+
$associatedProducts = $product->getTypeInstance(true)->getAssociatedProducts($product);
|
38 |
+
foreach($associatedProducts as $associatedProduct) {
|
39 |
+
$price[] = $associatedProduct->getFinalPrice();
|
40 |
+
$mrp[] = $associatedProduct->getPrice();
|
41 |
+
}
|
42 |
+
$productFields->sale_price = min($price);
|
43 |
+
$productFields->price = min($mrp);
|
44 |
+
break;
|
45 |
+
case Mage_Catalog_Model_Product_Type::TYPE_BUNDLE:
|
46 |
+
$productFields->sale_price = Mage::getModel('bundle/product_price')->getTotalPrices($product,'min',1);
|
47 |
+
$productFields->price = Mage::getModel('bundle/product_price')->getTotalPrices($product,'min',1);
|
48 |
+
break;
|
49 |
+
default:
|
50 |
+
$productFields->sale_price = $product->getFinalPrice();
|
51 |
+
$productFields->price = $product->getPrice();
|
52 |
+
break;
|
53 |
}
|
54 |
$utc_now = new DateTime("now", new DateTimeZone('UTC'));
|
55 |
$time_now = $utc_now->format(DateTime::ATOM);
|
app/code/community/Tagalys/Core/etc/config.xml
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
<tagalys>
|
7 |
<package>
|
8 |
<name>Search</name>
|
9 |
-
<version>1.
|
10 |
</package>
|
11 |
</tagalys>
|
12 |
</default>
|
6 |
<tagalys>
|
7 |
<package>
|
8 |
<name>Search</name>
|
9 |
+
<version>1.6.0</version>
|
10 |
</package>
|
11 |
</tagalys>
|
12 |
</default>
|
app/design/frontend/base/default/template/tagalys_mpages/index.phtml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
<script type="text/javascript">
|
6 |
(function( $ ) {
|
7 |
-
$(document).on('tagalys:
|
8 |
<?php $params = Mage::app()->getRequest()->getParams(); ?>
|
9 |
$('#tagalys-namespace').tagalys_mpage({ name: '<?php echo $params['mpage'] ?>' });
|
10 |
});
|
4 |
|
5 |
<script type="text/javascript">
|
6 |
(function( $ ) {
|
7 |
+
$(document).on('tagalys:ready', function() {
|
8 |
<?php $params = Mage::app()->getRequest()->getParams(); ?>
|
9 |
$('#tagalys-namespace').tagalys_mpage({ name: '<?php echo $params['mpage'] ?>' });
|
10 |
});
|
app/design/frontend/base/default/template/tagalys_search/index.phtml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
<script type="text/javascript">
|
6 |
(function( $ ) {
|
7 |
-
$(document).on('tagalys:
|
8 |
$('#tagalys-namespace').tagalys_search_results();
|
9 |
});
|
10 |
}(jQuery));
|
4 |
|
5 |
<script type="text/javascript">
|
6 |
(function( $ ) {
|
7 |
+
$(document).on('tagalys:ready', function() {
|
8 |
$('#tagalys-namespace').tagalys_search_results();
|
9 |
});
|
10 |
}(jQuery));
|
app/design/frontend/base/default/template/tagalys_search_suggestions/search_suggestions.phtml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php if(Mage::helper('tagalys_core')->isTagalysModuleEnabled('search_suggestions') || Mage::helper('tagalys_core')->isTagalysModuleEnabled('search') || Mage::helper('tagalys_core')->isTagalysModuleEnabled('mpages') || Mage::helper('tagalys_core')->isTagalysModuleEnabled('similar_products')): ?>
|
2 |
-
<script src='https://
|
3 |
<?php
|
4 |
$api_credentials = json_decode(Mage::getModel('tagalys_core/config')->getTagalysConfig("api_credentials"), true);
|
5 |
$currency = Mage::helper('search_suggestions')->getCurrentCurrency();
|
@@ -18,7 +18,6 @@
|
|
18 |
fractional_digits:"<?php echo $currency[0]['fractional_digits']; ?>"
|
19 |
}
|
20 |
});
|
21 |
-
$(document).trigger('tagalys:init');
|
22 |
}( jQuery ));
|
23 |
}
|
24 |
catch(err) {
|
@@ -129,14 +128,16 @@
|
|
129 |
}
|
130 |
?>
|
131 |
};
|
132 |
-
$(
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
|
|
|
|
140 |
});
|
141 |
}
|
142 |
catch(err) {
|
1 |
<?php if(Mage::helper('tagalys_core')->isTagalysModuleEnabled('search_suggestions') || Mage::helper('tagalys_core')->isTagalysModuleEnabled('search') || Mage::helper('tagalys_core')->isTagalysModuleEnabled('mpages') || Mage::helper('tagalys_core')->isTagalysModuleEnabled('similar_products')): ?>
|
2 |
+
<script src='https://d3htxdwqp62ai4.cloudfront.net/tagalys-plugins-v4.js' type='text/javascript'></script>
|
3 |
<?php
|
4 |
$api_credentials = json_decode(Mage::getModel('tagalys_core/config')->getTagalysConfig("api_credentials"), true);
|
5 |
$currency = Mage::helper('search_suggestions')->getCurrentCurrency();
|
18 |
fractional_digits:"<?php echo $currency[0]['fractional_digits']; ?>"
|
19 |
}
|
20 |
});
|
|
|
21 |
}( jQuery ));
|
22 |
}
|
23 |
catch(err) {
|
128 |
}
|
129 |
?>
|
130 |
};
|
131 |
+
$(document).on('tagalys:ready', function() {
|
132 |
+
$('<?php echo Mage::getModel('tagalys_core/config')->getTagalysConfig('search_box_selector') ?>').tagalys_search_suggestions({
|
133 |
+
currency: {
|
134 |
+
label: "<?php echo $currency[0]['label']; ?>",
|
135 |
+
exchange_rate: "<?php echo $currency[0]['exchange_rate']; ?>",
|
136 |
+
fractional_digits:"<?php echo $currency[0]['fractional_digits']; ?>"
|
137 |
+
},
|
138 |
+
track: 'asynchronous',
|
139 |
+
align_to_parent: '<?php echo Mage::getModel('tagalys_core/config')->getTagalysConfig('suggestions_align_to_parent_selector') ?>'
|
140 |
+
});
|
141 |
});
|
142 |
}
|
143 |
catch(err) {
|
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.
|
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-05-
|
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"/><file name="Tagalys_Mpages.xml" hash="6ccb4f45669c98fd746c6abd92ab32ca"/><file name="Tagalys_Analytics.xml" hash="59ce2628610a4624235a5c820beac2d2"/></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="1fa634f35204a06d06fa4c7f762c3259"/><file name="Similarproducts.php" hash="390c3a93c5851a6d784e82650be20ae5"/><file name="Support.php" hash="c68547cfe57cbccdcbcf7c3eb35ed6b3"/><file name="Sync.php" hash="3216b0e207a11e8d16cf789eb3c7307d"/><file name="Syncsettings.php" hash="6f32c0fff8996c126889e05b8f8c7adb"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name="Tabs.php" hash="6868651b592381ff8081c8247ebf5214"/><file name=".DS_Store" hash="711f187349473a2c6e6d564d4a2faeb9"/></dir><file name="Edit.php" hash="226c9294905b6583588734b7aaace3e3"/><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="d50fec78e8a30b7f4d019fd6d0e5c7ed"/><file name="Service.php" hash="c633adf3d5bd356a04b24a791854130c"/><file name="SyncFile.php" hash="f1346cb21bb4ea73ba2fcf96a7d43fb8"/></dir><dir name="Model"><file name="Client.php" hash="962269bc508298338b86b48601a7854c"/><file name="Config.php" hash="135012904392f8d26f5c5eaedd3d9c71"/><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="11df34f6c933d433a5d5352f80869c08"/><file name="ProductDetails.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.6.0</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-05-30</date>
|
14 |
+
<time>03:30:23</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"/><file name="Tagalys_Analytics.xml" hash="59ce2628610a4624235a5c820beac2d2"/></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="1fa634f35204a06d06fa4c7f762c3259"/><file name="Similarproducts.php" hash="390c3a93c5851a6d784e82650be20ae5"/><file name="Support.php" hash="c68547cfe57cbccdcbcf7c3eb35ed6b3"/><file name="Sync.php" hash="3216b0e207a11e8d16cf789eb3c7307d"/><file name="Syncsettings.php" hash="6f32c0fff8996c126889e05b8f8c7adb"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name="Tabs.php" hash="6868651b592381ff8081c8247ebf5214"/><file name=".DS_Store" hash="711f187349473a2c6e6d564d4a2faeb9"/></dir><file name="Edit.php" hash="226c9294905b6583588734b7aaace3e3"/><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="d50fec78e8a30b7f4d019fd6d0e5c7ed"/><file name="Service.php" hash="c633adf3d5bd356a04b24a791854130c"/><file name="SyncFile.php" hash="f1346cb21bb4ea73ba2fcf96a7d43fb8"/></dir><dir name="Model"><file name="Client.php" hash="962269bc508298338b86b48601a7854c"/><file name="Config.php" hash="135012904392f8d26f5c5eaedd3d9c71"/><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="11df34f6c933d433a5d5352f80869c08"/><file name="ProductDetails.php" hash="46ccc44fb811f8924692dc2216b7fa20"/><file name="Queue.php" hash="459a74e66f2a7ccd146f480701574464"/><file name=".DS_Store" hash="3db11e65f616ba2524ebf71cf1300fa5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="TagalysController.php" hash="a76d08c29208912d8c090aa5205a71c2"/></dir><file name="SyncfilesController.php" hash="1b8476cbb4d02ec87b7742e4dc9fff4b"/><file name=".DS_Store" hash="db462bf5da1a15c73197a0fefd3f5b51"/></dir><dir name="etc"><file name="config.xml" hash="ed4f0695d641d0a4a467a7f92f185800"/></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 name="Analytics"><dir name="Block"><file name="Productview.php" hash="117109f50c13a14efc4d5740d9e1eace"/></dir><dir name="Model"><file name="Observer.php" hash="650e1c3bacab113e25958af98195de51"/></dir><dir name="controllers"><file name="IndexController.php" hash="3eee2034348dc00d06d91f0f849b7796"/></dir><dir name="etc"><file name="config.xml" hash="ad31a8918cafb214865a7e55fad09383"/></dir></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="a7e019882e6b031018b7955df50330c8"/></dir><dir name="template"><dir name="tagalys"><file name="configuration.phtml" hash="97c1d46ae5793f974ece62371258a324"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="tagalys_search_suggestions.xml" hash="3d3e59b076a4e39c924e122810555b72"/><file name="tagalys_analytics.xml" hash="3d669cedf80245f91745b9e4de5d6012"/></dir><dir name="template"><dir name="tagalys_search_suggestions"><file name="search_suggestions.phtml" hash="350f65b8c46e9a9868192862ed43b2aa"/></dir><dir name="tagalys_search"><file name="index.phtml" hash="8714e4bad3d04fdab69a0875395f6dd9"/></dir><dir name="tagalys_mpages"><file name="index.phtml" hash="a70d8eb7b2c3cb664597a48b77b814a6"/></dir><dir name="tagalys_analytics"><file name="product_view.phtml" hash="08d97d2aaafb09b868bde334b9a5942d"/></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-v1.css" hash="d387a2c115f65a0702d6e00e62c0d6f1"/></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-v2.js" hash="5bdf8c88a7e2ae844db7773f7e037057"/></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>
|