Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
shared.phtml File Reference

Go to the source code of this file.

Variables

 $isVisibleProduct = $product->isVisibleInSiteVisibility()
 
if( $product->isSaleable())( $isVisibleProduct)(__( 'Add to Cart')) ?>" data-post endif endif
 

Variable Documentation

◆ $isVisibleProduct

$isVisibleProduct = $product->isVisibleInSiteVisibility()

Definition at line 28 of file shared.phtml.

◆ endif

endforeachif ($block->isSaleable()) (__('Add All to Cart')) ?>" data-post endif
Initial value:
='<?= /* @noEscape */ $block->getSharedItemAddToCartUrl($item) ?>'
class="action tocart">
<span><?= $block->escapeHtml(__('Add to Cart'))
__()
Definition: __.php:13
$block
Definition: block.php:8

Definition at line 52 of file shared.phtml.