/** * Date (dd/mm/yyyy) html drop-downs * * @return string Formatted Html */ public function getDropDownsDateHtml() { $fieldsSeparator = ' '; $fieldsOrder = $this->_catalogProductOptionTypeDate->getConfigData('date_fields_order'); $fieldsOrder = str_replace(',', $fieldsSeparator, $fieldsOrder); $monthsHtml = $this->_getSelectFromToHtml('month', 1, 12); $daysHtml = $this->_getSelectFromToHtml('day', 1, 31); $yearStart = $this->_catalogProductOptionTypeDate->getYearStart(); $yearEnd = $this->_catalogProductOptionTypeDate->getYearEnd(); $yearsHtml = $this->_getSelectFromToHtml('year', $yearStart, $yearEnd); $translations = array('d' => $daysHtml, 'm' => $monthsHtml, 'y' => $yearsHtml); return strtr($fieldsOrder, $translations); }