File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
view/frontend/templates/recommend Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
/** @var \Algolia\AlgoliaSearch\ViewModel\Recommend\Cart $block */
3
3
$ viewModel = $ block ->getViewModel ();
4
4
$ 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 ' ])):
6
6
$ cartItems = $ viewModel ->getAllCartItems ();
7
7
?>
8
8
<div id="frequentlyBoughtTogether" class="recommend-component"></div>
Original file line number Diff line number Diff line change 3
3
$ viewModel = $ block ->getViewModel ();
4
4
$ recommendConfig = $ viewModel ->getAlgoliaRecommendConfiguration ();
5
5
6
- if (isset ($ recommendConfig ['enabledFBT ' ]) || isset ($ recommendConfig ['enabledRelated ' ]) || isset ($ recommendConfig ['isTrendItemsEnabledInPDP ' ])):
6
+ if (! empty ($ recommendConfig ['enabledFBT ' ]) || ! empty ($ recommendConfig ['enabledRelated ' ]) || ! empty ($ recommendConfig ['isTrendItemsEnabledInPDP ' ])):
7
7
$ product = $ viewModel ->getProduct (); ?>
8
8
<div id="frequentlyBoughtTogether" class="recommend-component"></div>
9
9
<div id="relatedProducts" class="recommend-component"></div>
@@ -24,4 +24,4 @@ if (isset($recommendConfig['enabledFBT']) || isset($recommendConfig['enabledRela
24
24
}
25
25
}
26
26
</script>
27
- <?php endif ; ?>
27
+ <?php endif ; ?>
You can’t perform that action at this time.
0 commit comments