Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit 3949357

Browse files
committed
Changed JS variables name - prepended "apisearch_"
- Increased version to 1.2.2
1 parent 18669f5 commit 3949357

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

apisearch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ public function hookHeader()
338338
}
339339

340340
Media::addJsDef(array(
341-
'admin_url' => $admin_url,
341+
'apisearch_admin_url' => $admin_url,
342342
'apisearch_user_token' => $token,
343-
'index_id' => Configuration::get('AS_INDEX', Context::getContext()->language->id),
343+
'apisearch_index_id' => Configuration::get('AS_INDEX', Context::getContext()->language->id),
344344
));
345345

346346
$this

config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<module>
33
<name>apisearch</name>
44
<displayName><![CDATA[Apisearch]]></displayName>
5-
<version><![CDATA[1.2.1]]></version>
5+
<version><![CDATA[1.2.2]]></version>
66
<description><![CDATA[Search over your products, and give to your users unique, amazing and unforgettable experiences.]]></description>
77
<author><![CDATA[Apisearch Team]]></author>
88
<tab><![CDATA[search_filter]]></tab>

model/apisearch_defaults.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class ApisearchDefaults {
55
const DEFAULT_AS_ADMIN_URL = 'https://static.apisearch.cloud';
66
const DEFAULT_AS_API_VERSION = 'v1';
77
const PLUGIN_NAME = 'apisearch';
8-
const PLUGIN_VERSION = '1.2.1';
8+
const PLUGIN_VERSION = '1.2.2';
99

1010
const DEFAULT_INDEX_PRODUCTS_WITHOUT_IMAGE = true;
1111
const DEFAULT_REAL_TIME_INDEXATION = true;

views/js/front.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* to avoid any conflicts with others containers.
2727
*/
2828

29-
const as_url = admin_url + '/' + index_id + '.iframe.min.js';
29+
const as_url = apisearch_admin_url + '/' + apisearch_index_id + '.iframe.min.js';
3030
(function (d, t) {
3131
var f = d.createElement(t), s = d.getElementsByTagName(t)[0];
3232
f.src = as_url;

0 commit comments

Comments
 (0)