File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Catalog/view/frontend/templates/product/widget/new
CatalogWidget/view/frontend/templates/product/widget/content Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33
33
<div class="product-item-actions">
34
34
<div class="actions-primary">
35
35
<?php if ($ _product ->isSaleable ()): ?>
36
- <?php if ($ _product ->getTypeInstance ()->hasRequiredOptions ( $ _product )): ?>
36
+ <?php if (! $ _item ->getTypeInstance ()->isPossibleBuyFromList ( $ _item )): ?>
37
37
<button type="button" title="<?= /* @escapeNotVerified */ __ ('Add to Cart ' ) ?> "
38
38
class="action tocart primary"
39
39
data-mage-init='{"redirectUrl":{"url":"<?= /* @escapeNotVerified */ $ block ->getAddToCartUrl ($ _product ) ?> "}}'>
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
66
66
<?php if ($ showCart ): ?>
67
67
<div class="actions-primary">
68
68
<?php if ($ _item ->isSaleable ()): ?>
69
- <?php if ($ _item ->getTypeInstance ()->hasRequiredOptions ($ _item )): ?>
69
+ <?php if (! $ _item ->getTypeInstance ()->isPossibleBuyFromList ($ _item )): ?>
70
70
<button class="action tocart primary"
71
71
data-mage-init='{"redirectUrl":{"url":"<?= /* @escapeNotVerified */ $ block ->getAddToCartUrl ($ _item ) ?> "}}'
72
72
type="button" title="<?= /* @escapeNotVerified */ __ ('Add to Cart ' ) ?> ">
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
65
65
<?php if ($ showCart ): ?>
66
66
<div class="actions-primary">
67
67
<?php if ($ _item ->isSaleable ()): ?>
68
- <?php if ($ _item ->getTypeInstance ()->hasRequiredOptions ($ _item )): ?>
68
+ <?php if (! $ _item ->getTypeInstance ()->isPossibleBuyFromList ($ _item )): ?>
69
69
<button class="action tocart primary"
70
70
data-mage-init='{"redirectUrl":{"url":"<?= /* @escapeNotVerified */ $ block ->getAddToCartUrl ($ _item ) ?> "}}'
71
71
type="button" title="<?= /* @escapeNotVerified */ __ ('Add to Cart ' ) ?> ">
Original file line number Diff line number Diff line change 61
61
<?php if ($ showCart ): ?>
62
62
<div class="actions-primary">
63
63
<?php if ($ _item ->isSaleable ()): ?>
64
- <?php if ($ _item ->getTypeInstance ()->hasRequiredOptions ($ _item )): ?>
64
+ <?php if (! $ _item ->getTypeInstance ()->isPossibleBuyFromList ($ _item )): ?>
65
65
<button class="action tocart primary" data-mage-init='{"redirectUrl":{"url":"<?= $ block ->escapeUrl ($ block ->getAddToCartUrl ($ _item )) ?> "}}' type="button" title="<?= $ block ->escapeHtmlAttr (__ ('Add to Cart ' )) ?> ">
66
66
<span><?= $ block ->escapeHtml (__ ('Add to Cart ' )) ?> </span>
67
67
</button>
You can’t perform that action at this time.
0 commit comments