File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ composer.lock
4
4
vendor /
5
5
.php_cs.cache
6
6
.vscode
7
+ .idea
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 ; ?>
Original file line number Diff line number Diff line change 1
- .product-img {
1
+ .recommend-item . product-img {
2
2
width : 180px ;
3
3
}
4
4
.auc-Recommend-list {
5
5
display : flex;
6
6
justify-content : space-evenly;
7
7
list-style : none;
8
8
}
9
- .product-name {
9
+ .recommend-item . product-name {
10
10
height : 50px ;
11
11
width : 110px ;
12
12
margin : 0 auto;
50
50
flex-wrap : wrap;
51
51
justify-content : flex-start;
52
52
}
53
- .product-details .action .primary , .action-primary {
53
+ .product-details .recommend-item . action .primary , .action-primary {
54
54
background : # f4f4f4 ;
55
55
border : 1px solid # f4f4f4 ;
56
56
color : # 666666 ;
57
57
}
58
- .product-details .action .primary : hover , .action-primary : hover {
58
+ .product-details .recommend-item . action .primary : hover , .action-primary : hover {
59
59
border-color : # 1979c3 ;
60
60
background : # 1979c3 ;
61
61
color : # FFFFFF ;
You can’t perform that action at this time.
0 commit comments