Skip to content

Commit 6e29394

Browse files
committed
2.0.0 - экспорт YML и модификации алгоритмов.
1 parent 766403b commit 6e29394

File tree

14 files changed

+679
-206
lines changed

14 files changed

+679
-206
lines changed

classes/Rees46/Component/RecommendHandler.php

+9-3
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@ public static function run($arParams)
3333
$params['cart'] = Functions::getRealItemIDsArray($params['cart']);
3434
}
3535

36+
3637
$jsonParams = array(
37-
'recommender_type' => $recommender,
38-
'limit' => Options::getRecommendCount(),
38+
'recommender_type' => $recommender,
39+
'limit' => Options::getRecommendCount(),
3940
);
4041

42+
43+
if (empty($params['modification']) === false) {
44+
$jsonParams['modification'] = $params['modification'];
45+
}
46+
4147
// check required params for recommenders
4248
switch ($recommender) {
4349
case 'buying_now':
@@ -133,6 +139,6 @@ public static function run($arParams)
133139
});
134140
});
135141
</script>
136-
<?php
142+
<?php
137143
}
138144
}

0 commit comments

Comments
 (0)