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

Go to the source code of this file.

Variables

 $_product = $block->getProduct()
 
 $_attributes = $block->decorateArray($block->getAllowAttributes())
 
 $_skipSaleableCheck = $this->helper('Magento\Catalog\Helper\Product')->getSkipSaleableCheck()
 
if (($_product->isSaleable()|| $_skipSaleableCheck) &&count($_attributes)) ('Associated Products') ?></span ></legend >< div class
 
if($_attribute->getDecoratedIsLast()) endforeach = __('Choose an Option...')
 
 endif = $block->getJsonConfig()
 

Variable Documentation

◆ $_attributes

$_attributes = $block->decorateArray($block->getAllowAttributes())

Definition at line 13 of file configurable.phtml.

◆ $_product

$_product = $block->getProduct()

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

Definition at line 12 of file configurable.phtml.

◆ $_skipSaleableCheck

$_skipSaleableCheck = $this->helper('Magento\Catalog\Helper\Product')->getSkipSaleableCheck()

Definition at line 14 of file configurable.phtml.

◆ (($_product->isSaleable()|| $_skipSaleableCheck) &&count($_attributes))

if (( $_product->isSaleable()||$_skipSaleableCheck) &&count( $_attributes))( 'Associated Products') ?></span ></legend >< div class
Initial value:
="product-options">
<div class="field admin__field _required required">
<?php foreach ($_attributes as $_attribute):
$_attributes

Definition at line 15 of file configurable.phtml.

◆ endforeach

if ( $_attribute->getDecoratedIsLast()) endforeach = __('Choose an Option...')

Definition at line 34 of file configurable.phtml.

◆ endif

endif = $block->getJsonConfig()

Definition at line 47 of file configurable.phtml.