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

Go to the source code of this file.

Variables

 $_productCollection = $block->getLoadedProductCollection()
 
 $_helper = $this->helper('Magento\Catalog\Helper\Output')
 
if(! $_productCollection->count())( 'We can\ 't find products matching the selection.') ?></div ></div ><?php else() ?><? if($block->getMode()=='grid') else
 
 $imageDisplayArea = 'category_page_list'
 
 $showDescription = true
 
 $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::FULL_VIEW
 
 $pos = $block->getPositioned()
 
if($pos !=null)< a href="<?= $_product-> getProductUrl () ?>" class $_productNameStripped = $block->stripTags($_product->getName(), null, true)
 
else __pad6__ = __('Add to Cart')
 
 endif
 
 endforeach
 

Variable Documentation

◆ $_helper

$_helper = $this->helper('Magento\Catalog\Helper\Output')

Definition at line 20 of file list.phtml.

◆ $_productCollection

$_productCollection = $block->getLoadedProductCollection()

Definition at line 19 of file list.phtml.

◆ $_productNameStripped

if ( $pos !=null)<a href="<?= $_product-> getProductUrl () ?>" class $_productNameStripped = $block->stripTags($_product->getName(), null, true)

Definition at line 63 of file list.phtml.

◆ $imageDisplayArea

$imageDisplayArea = 'category_page_list'

Definition at line 35 of file list.phtml.

◆ $pos

$pos = $block->getPositioned()

Position for actions regarding image size changing in vde if needed

Definition at line 42 of file list.phtml.

◆ $showDescription

$showDescription = true

Definition at line 36 of file list.phtml.

◆ $templateType

Definition at line 37 of file list.phtml.

◆ __pad6__

else __pad6__ = __('Add to Cart')

Definition at line 87 of file list.phtml.

◆ else

if(!$_productCollection->count()) ('We can\'t find products matching the selection.') ?></div></div> <?php else () ?> <? if ( $block->getMode()=='grid') else
Initial value:
{
$viewMode = 'list'

Definition at line 33 of file list.phtml.

◆ endforeach

endforeach

Definition at line 115 of file list.phtml.

◆ endif

endif
Initial value:
="<?= /* @escapeNotVerified */ $_product->getProductUrl() ?>" title="<?= /* @escapeNotVerified */ $_productNameStripped ?>"
class="action more"><?= __('Learn More')
__()
Definition: __.php:13

Definition at line 96 of file list.phtml.