File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
app/code/Magento/Catalog/view/frontend/templates/product/list Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ switch ($type = $block->getType()) {
203
203
<?= $ block ->getReviewsSummaryHtml ($ _item , $ templateType ) ?>
204
204
<?php endif ; ?>
205
205
206
- <?php if (!$ _item ->isComposite () && $ _item ->isSaleable () && $ type == 'related ' ): ?>
206
+ <?php if ($ canItemsAddToCart && !$ _item ->isComposite () && $ _item ->isSaleable () && $ type == 'related ' ): ?>
207
207
<?php if (!$ _item ->getRequiredOptions ()): ?>
208
208
<div class="field choice related">
209
209
<input type="checkbox" class="checkbox related" id="related-checkbox<?= /* @escapeNotVerified */ $ _item ->getId () ?> " name="related_products[]" value="<?= /* @escapeNotVerified */ $ _item ->getId () ?> " />
You can’t perform that action at this time.
0 commit comments