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-customer
view
frontend
templates
widget
dob.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
11
/*
12
<?= $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Dob')
13
->setDate($block->getCustomer()->getDob())
14
->toHtml() ?>
15
16
For checkout/onepage/billing.phtml:
17
18
<?= $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Dob')
19
->setDate($block->getCustomer()->getDob())
20
->setFieldIdFormat('billing:%s')
21
->setFieldNameFormat('billing[%s]')
22
->toHtml() ?>
23
24
NOTE: Regarding styles - if we leave it this way, we'll move it to boxes.css. Alternatively we could calculate widths
25
automatically using block input parameters.
26
*/
27
28
$fieldCssClass
=
'field date field-'
.
$block
->getHtmlId();
29
$fieldCssClass
.=
$block
->isRequired() ?
' required'
:
''
;
30
?>
31
<div
class
=
"<?= $block->escapeHtmlAttr($fieldCssClass) ?>"
>
32
<label
class
=
"label"
for
=
"<?= $block->escapeHtmlAttr($block->getHtmlId()) ?>"
><span><?=
$block
->escapeHtml(
$block
->getLabel()) ?></span></label>
33
<div
class
=
"control customer-dob"
>
34
<?=
$block
->getFieldHtml() ?>
35
<?php
if
($_message =
$block
->getAdditionalDescription()) : ?>
36
<div
class
=
"note"
><?=
$block
->escapeHtml($_message) ?></div>
37
<?php
endif
; ?>
38
</div>
39
</div>
$fieldCssClass
$fieldCssClass
Definition:
dob.phtml:28
$block
$block
Definition:
block.php:8
endif
endif
Definition:
404.phtml:116