Skip to content

Commit b54a4da

Browse files
committed
Updated Synonyms notice text
1 parent d36333e commit b54a4da

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

etc/adminhtml/system.xml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
327327
<comment>
328328
<![CDATA[
329-
This feature is only applicable with premium plans
329+
Virtual Replica is only available on Premium plans <a target="_blank" href="https://www.algolia.com/doc/integration/magento-2/how-it-works/indexing/?client=php#switching-to-virtual-replica">documentation</a>
330330
]]>
331331
</comment>
332332
<depends>
@@ -782,20 +782,6 @@
782782
</field>
783783
</group>
784784
</section>
785-
<section id="algoliasearch_synonyms" translate="label" type="text" sortOrder="66" showInDefault="1" showInWebsite="1" showInStore="1">
786-
<label>Synonyms</label>
787-
<tab>algolia</tab>
788-
<resource>Algolia_AlgoliaSearch::algolia_algoliasearch</resource>
789-
<group id="synonyms_group" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
790-
<label>Synonyms</label>
791-
<field id="notice" translate="label comment" type="label" sortOrder="10" showInDefault="1">
792-
<label>Notice:</label>
793-
<comment>
794-
<![CDATA[Configurations related to Synonyms have been deprecated from the Magento dashboard. We advise you to configure synonyms from the Algolia dashboard]]>
795-
</comment>
796-
</field>
797-
</group>
798-
</section>
799785
<section id="algoliasearch_cc_analytics" translate="label" type="text" sortOrder="67" showInDefault="1" showInWebsite="1" showInStore="1">
800786
<label><![CDATA[Click & Conversion Analytics]]></label>
801787
<tab>algolia</tab>

view/adminhtml/web/js/config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ require(
2929
var pageIds = [
3030
'#algoliasearch_products_products',
3131
'#algoliasearch_categories_categories',
32-
'#algoliasearch_synonyms_synonyms_group',
32+
'#algoliasearch_credentials_credentials',
3333
'#algoliasearch_extra_settings_extra_settings'
3434
];
3535

@@ -38,14 +38,14 @@ require(
3838
pageWarning += '</div>';
3939

4040
var pageWarningSynonyms = '<div class="algolia_dashboard_warning algolia_dashboard_warning_page">';
41-
pageWarningSynonyms += '<p>These settings are also available in the Algolia Dashboard. We advise you to configure synonyms configuration from the Algolia dashboard as this is going to be deprecated in release 3.9.2.</p>';
41+
pageWarningSynonyms += '<p>Configurations related to Synonyms have been deprecated from the Magento dashboard. We advise you to configure synonyms from the Algolia dashboard.</p>';
4242
pageWarningSynonyms += '</div>';
4343

4444
for (var i=0; i < pageIds.length; i++) {
4545
var element = $(pageIds[i]);
46-
if (element.length > 0 && pageIds[i] != "#algoliasearch_synonyms_synonyms_group") {
46+
if (element.length > 0 && pageIds[i] != "#algoliasearch_credentials_credentials") {
4747
element.find('.comment').append(pageWarning);
48-
} else if (element.length > 0 && pageIds[i] == "#algoliasearch_synonyms_synonyms_group"){
48+
} else if (element.length > 0 && pageIds[i] == "#algoliasearch_credentials_credentials"){
4949
element.find('.comment').append(pageWarningSynonyms);
5050
}
5151
}

0 commit comments

Comments
 (0)