File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/Magento/Catalog/Block/Product/View/Options/Type Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,10 @@ public function getCalendarDateHtml()
93
93
$ yearStart = $ this ->_catalogProductOptionTypeDate ->getYearStart ();
94
94
$ yearEnd = $ this ->_catalogProductOptionTypeDate ->getYearEnd ();
95
95
96
- $ dateFormat = $ this ->_localeDate ->getDateFormatWithLongYear ();
96
+ $ fieldsSeparator = '/ ' ;
97
+ $ fieldsOrder = $ this ->_catalogProductOptionTypeDate ->getConfigData ('date_fields_order ' ) ?? '' ;
98
+ $ fieldsOrder = str_replace (", " , $ fieldsSeparator , $ fieldsOrder );
99
+ $ dateFormat = $ fieldsOrder ?: $ this ->_localeDate ->getDateFormatWithLongYear ();
97
100
/** Escape RTL characters which are present in some locales and corrupt formatting */
98
101
$ escapedDateFormat = preg_replace ('/[^MmDdYy\/\.\-]/ ' , '' , $ dateFormat );
99
102
$ value = null ;
You can’t perform that action at this time.
0 commit comments