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

Go to the source code of this file.

Variables

 $priceType = $block->getPrice()
 
 $product = $block->getSaleableItem()
 
 $productId = $product->getId()
 
 $msrpPrice
 
 $priceElementIdPrefix = $block->getPriceElementIdPrefix() ? $block->getPriceElementIdPrefix() : 'product-price-'
 
 $addToCartUrl = ''
 
 $popupId = 'msrp-popup-' . $productId . $block->getRandomString(20)
 

Variable Documentation

◆ $addToCartUrl

$addToCartUrl = ''

Definition at line 33 of file msrp.phtml.

◆ $msrpPrice

$msrpPrice
Initial value:
= $block->renderAmount(
$priceType->getCustomAmount($product->getMsrp() ?: $product->getTypeInstance()->getChildrenMsrp($product)),
[
'price_id' => $block->getPriceId() ? $block->getPriceId() : 'old-price-' . $productId,
'include_container' => false,
'skip_adjustments' => true
]
)
$productId
Definition: msrp.phtml:22
$block
Definition: block.php:8
$priceType
Definition: msrp.phtml:18
$product
Definition: msrp.phtml:21

Definition at line 23 of file msrp.phtml.

◆ $popupId

$popupId = 'msrp-popup-' . $productId . $block->getRandomString(20)

Definition at line 55 of file msrp.phtml.

◆ $priceElementIdPrefix

$priceElementIdPrefix = $block->getPriceElementIdPrefix() ? $block->getPriceElementIdPrefix() : 'product-price-'

Definition at line 31 of file msrp.phtml.

◆ $priceType

$priceType = $block->getPrice()

Definition at line 18 of file msrp.phtml.

◆ $product

$product = $block->getSaleableItem()

Definition at line 21 of file msrp.phtml.

◆ $productId

$productId = $product->getId()

Definition at line 22 of file msrp.phtml.