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

Go to the source code of this file.

Variables

 $type = $block->getType() . '-' . $block->getViewMode()
 
 $item = $block->getProduct()
 
 $image = $block->getImageType()
 
 $rating = 'short'
 
if( $item->isSaleable())( $item->getTypeInstance() ->hasRequiredOptions( $item))( 'Add to Cart') ?>"> <span><? else = __('Add to Cart')
 
$postData endif = __('Add to Cart')
 
else __pad0__
 

Variable Documentation

◆ $image

$image = $block->getImageType()

Definition at line 17 of file item.phtml.

◆ $item

$item = $block->getProduct()

Definition at line 15 of file item.phtml.

◆ $rating

$rating = 'short'

Definition at line 18 of file item.phtml.

◆ $type

$type = $block->getType() . '-' . $block->getViewMode()

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Definition at line 13 of file item.phtml.

◆ __pad0__

else __pad0__

Definition at line 67 of file item.phtml.

◆ else

if($item->isSaleable()) ($item->getTypeInstance()->hasRequiredOptions($item)) ('Add to Cart') ?>"> <span><? else = __('Add to Cart')

Definition at line 47 of file item.phtml.

◆ endif

endif = __('Add to Cart')

Definition at line 59 of file item.phtml.