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
Model
Cashondelivery.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\OfflinePayments\Model
;
7
16
class
Cashondelivery
extends
\Magento\Payment\Model\Method\AbstractMethod
17
{
18
const
PAYMENT_METHOD_CASHONDELIVERY_CODE
=
'cashondelivery'
;
19
25
protected
$_code
=
self::PAYMENT_METHOD_CASHONDELIVERY_CODE
;
26
32
protected
$_formBlockType
= \Magento\OfflinePayments\Block\Form\Cashondelivery::class;
33
39
protected
$_infoBlockType
= \Magento\Payment\Block\Info\Instructions::class;
40
46
protected
$_isOffline
=
true
;
47
53
public
function
getInstructions
()
54
{
55
return
trim($this->
getConfigData
(
'instructions'
));
56
}
57
}
Magento\OfflinePayments\Model\Cashondelivery\$_infoBlockType
$_infoBlockType
Definition:
Cashondelivery.php:39
Magento\OfflinePayments\Model
Definition:
Banktransfer.php:6
Magento\OfflinePayments\Model\Cashondelivery\$_isOffline
$_isOffline
Definition:
Cashondelivery.php:46
Magento\OfflinePayments\Model\Cashondelivery\PAYMENT_METHOD_CASHONDELIVERY_CODE
const PAYMENT_METHOD_CASHONDELIVERY_CODE
Definition:
Cashondelivery.php:18
Magento\Payment\Model\Method\AbstractMethod
Definition:
AbstractMethod.php:30
Magento\Payment\Model\Method\AbstractMethod\getConfigData
getConfigData($field, $storeId=null)
Definition:
AbstractMethod.php:784
Magento\OfflinePayments\Model\Cashondelivery\$_code
$_code
Definition:
Cashondelivery.php:25
Magento\OfflinePayments\Model\Cashondelivery\$_formBlockType
$_formBlockType
Definition:
Cashondelivery.php:32
Magento\OfflinePayments\Model\Cashondelivery
Definition:
Cashondelivery.php:16
Magento\OfflinePayments\Model\Cashondelivery\getInstructions
getInstructions()
Definition:
Cashondelivery.php:53