Skip to content

Commit d898c5f

Browse files
committed
add objectId
1 parent 4940120 commit d898c5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

view/frontend/web/recommend.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,15 @@ define([
199199
});
200200
} else if (
201201
algoliaConfig.recommend.enabledLookingSimilar &&
202+
config.algoliObjectId &&
202203
typeof config.recommendLSContainer !== 'undefined'
203204
){
204205
let containerValue = '#' + config.recommendLSContainer;
205206
recommendJs.lookingSimilar({
206207
container: containerValue,
207208
recommendClient,
208209
indexName,
210+
objectIDs: config.algoliObjectId,
209211
maxRecommendations: config.numOfLookingSimilarItem
210212
? parseInt(config.numOfLookingSimilarItem)
211213
: algoliaConfig.recommend.limitLookingSimilar,

0 commit comments

Comments
 (0)