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

Go to the source code of this file.

Variables

 $_product = $block->getProduct()
 
 $buttonTitle = __('Add to Cart')
 
 endif = $block->getChildHtml('', true)
 

Variable Documentation

◆ $_product

$_product = $block->getProduct()

Definition at line 11 of file addtocart.phtml.

◆ $buttonTitle

$buttonTitle = __('Add to Cart')

Definition at line 12 of file addtocart.phtml.

◆ endif

endif = $block->getChildHtml('', true)

Definition at line 38 of file addtocart.phtml.