File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Catalog/view/frontend/templates/product/list Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ switch ($type = $block->getType()) {
203
203
<?php echo $ 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<?php /* @escapeNotVerified */ echo $ _item ->getId () ?> " name="related_products[]" value="<?php /* @escapeNotVerified */ echo $ _item ->getId () ?> " />
@@ -252,7 +252,7 @@ switch ($type = $block->getType()) {
252
252
<?php endif ; ?>
253
253
</div>
254
254
</div>
255
- <?php echo ($ iterator == count ($ items )+ 1 ) ? '</li> ' : '' ?>
255
+ <?php echo ($ iterator == count ($ items ) + 1 ) ? '</li> ' : '' ?>
256
256
<?php endforeach ?>
257
257
</ol>
258
258
</div>
You can’t perform that action at this time.
0 commit comments