Skip to content

Commit a71c815

Browse files
authored
Develop (#1155)
1 parent 0b7145a commit a71c815

File tree

9 files changed

+19
-10
lines changed

9 files changed

+19
-10
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# CHANGE LOG
22

3+
## 1.17.1
4+
5+
### Updates
6+
- Clean up and condition the analytics url (#1149)
7+
- Remove IS enable condition for empty result popular queries (#1151)
8+
9+
### Fixes
10+
- Remove (un)serialize methods to pass new Marketplace expectations (#1152)
11+
312
## 1.17.0
413

514
### Updates

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Algolia Search for Magento 1.6+
22
==================
33

4-
![Latest version](https://img.shields.io/badge/latest-1.17.0-green.svg)
4+
![Latest version](https://img.shields.io/badge/latest-1.17.1-green.svg)
55

66
[![Build Status](https://travis-ci.org/algolia/algoliasearch-magento.svg?branch=master)](https://travis-ci.org/algolia/algoliasearch-magento)
77
![PHP >= 5.3](https://img.shields.io/badge/php-%3E=5.3-green.svg)

app/code/community/Algolia/Algoliasearch/Helper/Config.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public function getCurrency($storeId = null)
618618

619619
public function getPopularQueries($storeId = null)
620620
{
621-
if (!$this->isInstantEnabled($storeId) || !$this->showSuggestionsOnNoResultsPage($storeId)) {
621+
if (!$this->showSuggestionsOnNoResultsPage($storeId)) {
622622
return array();
623623
}
624624

app/code/community/Algolia/Algoliasearch/etc/config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<config>
33
<modules>
44
<Algolia_Algoliasearch>
5-
<version>1.17.0</version>
5+
<version>1.17.1</version>
66
</Algolia_Algoliasearch>
77
</modules>
88
<frontend>

app/code/community/Algolia/Algoliasearch/etc/system.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<algoliasearch translate="label" module="algoliasearch">
55
<label>
66
<![CDATA[
7-
Algolia Search 1.17.0
7+
Algolia Search 1.17.1
88
<style>
99
.algoliasearch-admin-menu span {
1010
padding-left: 38px !important;

app/design/frontend/base/default/template/algoliasearch/internals/configuration.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ $algoliaJsConfig = array(
263263
'maxValuesPerFacet' => (int) $config->getMaxValuesPerFacet(),
264264
'autofocus' => true,
265265
'ccAnalytics' => array(
266+
'enabled' => $config->isClickConversionAnalyticsEnabled(),
266267
'ISSelector' => $config->getClickConversionAnalyticsISSelector(),
267268
'conversionAnalyticsMode' => $config->getConversionAnalyticsMode(),
268269
'addToCartSelector' => $config->getConversionAnalyticsAddToCartSelector(),

app/etc/modules/Algolia_Algoliasearch.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Algolia_Algoliasearch>
55
<active>true</active>
66
<codePool>community</codePool>
7-
<version>1.17.0</version>
7+
<version>1.17.1</version>
88
</Algolia_Algoliasearch>
99
</modules>
1010
</config>

js/algoliasearch/click_conversion_analytics.js

-5
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ algolia.registerHook('beforeInstantsearchStart', function (search) {
7979
return search;
8080
});
8181

82-
algolia.registerHook('beforeWidgetInitialization', function (allWidgetConfiguration) {
83-
allWidgetConfiguration['hits']
84-
return allWidgetConfiguration;
85-
});
86-
8782
algolia.registerHook('beforeInstantsearchInit', function (instantsearchOptions) {
8883
instantsearchOptions.searchParameters['clickAnalytics'] = true;
8984
return instantsearchOptions;

js/algoliasearch/instantsearch.js

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ document.addEventListener("DOMContentLoaded", function (event) {
22
algoliaBundle.$(function ($) {
33

44
function makeUrlForInsights(baseUrl, objectID, queryID, indexName) {
5+
if (algoliaConfig.ccAnalytics.enabled !== true) {
6+
return baseUrl;
7+
}
8+
59
var _baseUrl = baseUrl.indexOf('?') === -1 ? baseUrl + '?' : baseUrl;
610
return _baseUrl + $.param({
711
queryID: queryID,

0 commit comments

Comments
 (0)