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

Go to the source code of this file.

Variables

if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode = 'grid'
 
 $image = 'new_products_content_widget_grid'
 
 $items = $block->getProductCollection()->getItems()
 
 $showWishlist = true
 
 $showCompare = true
 
 $showCart = true
 
 $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::DEFAULT_VIEW
 
 $description = false
 
if( $block->getTitle())(__( $block->getTitle())) ?></strong ></div ><?php endif ?>< div class $iterator = 1
 
if( $showWishlist||$showCompare||$showCart)( $showCart)( $_item->isSaleable())( $_item->getTypeInstance() ->hasRequiredOptions( $_item))(__( 'Add to Cart')) ?>"> <span><? else = $block->escapeHtml(__('Add to Cart'))
 
$postData endif = $block->escapeHtml(__('Add to Cart'))
 
else __pad0__
 

Variable Documentation

◆ $description

$description = false

Definition at line 24 of file grid.phtml.

◆ $image

$image = 'new_products_content_widget_grid'

Definition at line 17 of file grid.phtml.

◆ $items

$items = $block->getProductCollection()->getItems()

Definition at line 18 of file grid.phtml.

◆ $iterator

if ($block->getTitle()) (__($block->getTitle())) ?></strong> </div> <?php endif ?> <div class $iterator = 1

Definition at line 36 of file grid.phtml.

◆ $mode

if ( $exist=( $block->getProductCollection() &&$block->getProductCollection() ->getSize())) $mode = 'grid'

Definition at line 15 of file grid.phtml.

◆ $showCart

$showCart = true

Definition at line 22 of file grid.phtml.

◆ $showCompare

$showCompare = true

Definition at line 21 of file grid.phtml.

◆ $showWishlist

$showWishlist = true

Definition at line 20 of file grid.phtml.

◆ $templateType

Definition at line 23 of file grid.phtml.

◆ __pad0__

else __pad0__

Definition at line 82 of file grid.phtml.

◆ else

if($showWishlist || $showCompare || $showCart)($showCart)($_item->isSaleable()) ($_item->getTypeInstance()->hasRequiredOptions($_item)) (__('Add to Cart')) ?>"> <span><? else = $block->escapeHtml(__('Add to Cart'))

Definition at line 59 of file grid.phtml.

◆ endif

endforeach endif = $block->escapeHtml(__('Add to Cart'))

Definition at line 74 of file grid.phtml.