Skip to content

Commit bb983ed

Browse files
committed
Merge 'piotrkwiecinski:fix-feature-flags' into feature/MAGE-877
2 parents 2ba36b5 + 840bc3f commit bb983ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

view/frontend/templates/recommend/cart/recommend_items.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/** @var \Algolia\AlgoliaSearch\ViewModel\Recommend\Cart $block */
33
$viewModel = $block->getViewModel();
44
$recommendConfig = $viewModel->getAlgoliaRecommendConfiguration();
5-
if (isset($recommendConfig['enabledRelatedInCart']) || isset($recommendConfig['enabledFBTInCart']) || isset($recommendConfig['isTrendItemsEnabledInCartPage'])):
5+
if (!empty($recommendConfig['enabledRelatedInCart']) || !empty($recommendConfig['enabledFBTInCart']) || !empty($recommendConfig['isTrendItemsEnabledInCartPage'])):
66
$cartItems = $viewModel->getAllCartItems();
77
?>
88
<div id="frequentlyBoughtTogether" class="recommend-component"></div>

view/frontend/templates/recommend/products.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$viewModel = $block->getViewModel();
44
$recommendConfig = $viewModel->getAlgoliaRecommendConfiguration();
55

6-
if (isset($recommendConfig['enabledFBT']) || isset($recommendConfig['enabledRelated']) || isset($recommendConfig['isTrendItemsEnabledInPDP'])):
6+
if (!empty($recommendConfig['enabledFBT']) || !empty($recommendConfig['enabledRelated']) || !empty($recommendConfig['isTrendItemsEnabledInPDP'])):
77
$product = $viewModel->getProduct(); ?>
88
<div id="frequentlyBoughtTogether" class="recommend-component"></div>
99
<div id="relatedProducts" class="recommend-component"></div>
@@ -24,4 +24,4 @@ if (isset($recommendConfig['enabledFBT']) || isset($recommendConfig['enabledRela
2424
}
2525
}
2626
</script>
27-
<?php endif; ?>
27+
<?php endif; ?>

0 commit comments

Comments
 (0)