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

Go to the source code of this file.

Variables

foreach( $_products->getItems() as $_product)() ?>" titleif($_product->isSaleable()) ($_product->getTypeInstance()->hasRequiredOptions($_product)) ('Add to Cart') ?>" class else
 
 $postData = $postDataHelper->getPostData($block->getAddToCartUrl($_product), ['product' => $_product->getEntityId()])
 
 endif = __('Add to Cart')
 
else __pad7__
 
 endforeach
 

Variable Documentation

◆ $postData

$postData = $postDataHelper->getPostData($block->getAddToCartUrl($_product), ['product' => $_product->getEntityId()])

Definition at line 45 of file new_default_list.phtml.

◆ __pad7__

else __pad7__

Definition at line 62 of file new_default_list.phtml.

◆ else

foreach ($_products->getItems() as $_product) () ?>" titleif($_product->isSaleable()) ($_product->getTypeInstance()->hasRequiredOptions($_product)) ('Add to Cart') ?>" class else
Initial value:
="action tocart primary"
data-mage-init='{"redirectUrl":{"url":"<?= /* @escapeNotVerified */ $block->getAddToCartUrl($_product) ?>"}}'>
<span><?= __('Add to Cart')
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
__()
Definition: __.php:13

Definition at line 35 of file new_default_list.phtml.

◆ endforeach

endforeach

Definition at line 69 of file new_default_list.phtml.

◆ endif

endif = __('Add to Cart')

Definition at line 50 of file new_default_list.phtml.