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()
9393 $ yearStart = $ this ->_catalogProductOptionTypeDate ->getYearStart ();
9494 $ yearEnd = $ this ->_catalogProductOptionTypeDate ->getYearEnd ();
9595
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 ();
97100 /** Escape RTL characters which are present in some locales and corrupt formatting */
98101 $ escapedDateFormat = preg_replace ('/[^MmDdYy\/\.\-]/ ' , '' , $ dateFormat );
99102 $ value = null ;
You can’t perform that action at this time.
0 commit comments