Skip to content

Commit db6d467

Browse files
authored
Merge pull request #1428 from algolia/update/MAGE-772
Fix issue with promotion class being added to all products in autocom…
2 parents 8199538 + e32426c commit db6d467

File tree

1 file changed

+1
-1
lines changed
  • view/frontend/web/internals/template/autocomplete

1 file changed

+1
-1
lines changed

view/frontend/web/internals/template/autocomplete/products.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ define([], function () {
7373
const priceGroup = algoliaConfig.priceGroup || 'default';
7474

7575
return html `<div className="algoliasearch-autocomplete-price">
76-
<span className="after_special ${algoliaConfig.origFormatedVar != null ? 'promotion' : ''}">
76+
<span className="after_special ${item['price'][algoliaConfig.currencyCode][priceGroup + '_original_formated'] != null ? 'promotion' : ''}">
7777
${item['price'][algoliaConfig.currencyCode][priceGroup + '_formated']}
7878
</span>
7979
${this.getOriginalPriceHtml(item, html, priceGroup)}

0 commit comments

Comments
 (0)