• Пользовательские поля $field['formcode']?

    @2715643
    в Virtuemart 3
    /administrator/components/com_virtuemart/models/userfields.php

    929 строка
    case 'webaddress':
    
    							$_return['fields'][$_fld->name]['formcode'] = '<input type="text" id="'
    							. $_prefix.$_fld->name . '_field" name="' . $_prefix.$_fld->name.'" size="' . $_fld->size
    							. '" value="' . $_return['fields'][$_fld->name]['value'] .'" '
    							. ($_fld->required ? ' class="required"' : '')
    							. ($_fld->maxlength ? ' maxlength="' . $_fld->maxlength . '"' : '')
    							. $readonly . ' /> ';
    							break;


    меняем на
    case 'webaddress':
    
    							$_return['fields'][$_fld->name]['formcode'] = '<input type="text" id="'
    							. $_prefix.$_fld->name . '_field" name="' . $_prefix.$_fld->name.'" size="' . $_fld->size
    							. '" value="' . $_return['fields'][$_fld->name]['value'] .'" 
    							placeholder="'.$_fld->title.($_fld->required ? '*' : '').'"'
    							. ($_fld->required ? ' class="required"' : '')
    							. ($_fld->maxlength ? ' maxlength="' . $_fld->maxlength . '"' : '')
    							. $readonly . ' /> ';
    							break;
    Ответ написан
    Комментировать