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

Go to the source code of this file.

Variables

 $taxAmount = $block->getTotal()->getValue()
 
if(($taxAmount==0 && $this->helper('Magento\Tax\Helper\Data') ->displayZeroTax())||($taxAmount > 0)) $taxIter
 
 $class = "{$block->getTotal()->getCode()} " . ($this->helper('Magento\Tax\Helper\Data')->displayFullSummary() ? 'summary-total' : '')
 
if($this->helper('Magento\Tax\Helper\Data') ->displayFullSummary()) foreach( $block->getTotal() ->getFullInfo() as $info)(isset($info['hidden']) && $info['hidden']) $percent = $info['percent']
 
 $amount = $info['amount']
 
 $rates = $info['rates']
 
 $isFirst = 1
 
foreach( $rates as $rate)($isTop) endif
 
 $isTop = 0
 
 endforeach
 

Variable Documentation

◆ $amount

$amount = $info['amount']

Definition at line 34 of file tax.phtml.

◆ $class

$class = "{$block->getTotal()->getCode()} " . ($this->helper('Magento\Tax\Helper\Data')->displayFullSummary() ? 'summary-total' : '')

Definition at line 13 of file tax.phtml.

◆ $isFirst

$isFirst = 1

Definition at line 36 of file tax.phtml.

◆ $isTop

$isTop = 0

Definition at line 54 of file tax.phtml.

◆ $percent

if ( $this->helper( 'Magento\Tax\Helper\Data') ->displayFullSummary())foreach ($block->getTotal()->getFullInfo() as $info) (isset( $info[ 'hidden']) &&$info[ 'hidden']) $percent = $info['percent']

Definition at line 33 of file tax.phtml.

◆ $rates

$rates = $info['rates']

Definition at line 35 of file tax.phtml.

◆ $taxAmount

$taxAmount = $block->getTotal()->getValue()

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

Definition at line 9 of file tax.phtml.

◆ $taxIter

if (( $taxAmount==0 &&$this->helper( 'Magento\Tax\Helper\Data') ->displayZeroTax())||( $taxAmount > 0)) $taxIter

Definition at line 11 of file tax.phtml.

◆ endforeach

endforeach

Definition at line 55 of file tax.phtml.

◆ endif

endif

Definition at line 38 of file tax.phtml.