Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-offline-payments
Block
Info
Purchaseorder.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\OfflinePayments\Block\Info
;
7
8
class
Purchaseorder
extends
\Magento\Payment\Block\Info
9
{
13
protected
$_template
=
'Magento_OfflinePayments::info/purchaseorder.phtml'
;
14
18
public
function
toPdf
()
19
{
20
$this->
setTemplate
(
'Magento_OfflinePayments::info/pdf/purchaseorder.phtml'
);
21
return
$this->
toHtml
();
22
}
23
}
Magento\Payment\Block\Info
Definition:
Info.php:14
Magento\Framework\View\Element\Template\setTemplate
setTemplate($template)
Definition:
Template.php:203
Magento\Framework\View\Element\BlockInterface\toHtml
toHtml()
Magento\OfflinePayments\Block\Info\Purchaseorder\$_template
$_template
Definition:
Purchaseorder.php:13
Magento\OfflinePayments\Block\Info\Purchaseorder\toPdf
toPdf()
Definition:
Purchaseorder.php:18
Magento\OfflinePayments\Block\Info
Definition:
Checkmo.php:6
Magento\OfflinePayments\Block\Info\Purchaseorder
Definition:
Purchaseorder.php:8