ZCv1.56c
OPCv2.3.2 (pretty sure still applies in OPC v2.3.3)
A code change request - I think I've got this right.
In the various customer address blocks - store side, the placeholder alert asterisk (ENTRY_STATE_TEXT) is placed inside the state field when it is not a dropdown:
tpl_modules_checkout_new_address.php
echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state" placeholder="' . ENTRY_STATE_TEXT . '"');
tpl_modules_address_book_details.php
echo zen_draw_input_field('state', zen_get_zone_name($entry->fields['entry_country_id'], $entry->fields['entry_zone_id'], $entry->fields['entry_state']), zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state" placeholder="' . ENTRY_STATE_TEXT . '"');
not so in tpl_modules_opc_address_block.php
echo zen_draw_input_field($state_field_name, $address['state'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . " id=\"$state_field_id\"");
if (zen_not_null(ENTRY_STATE_TEXT)) {
echo '<span class="alert">' . ENTRY_STATE_TEXT . '</span>';
}
The placeholder is outside of the state field, I think it could do with being inside it. I've dabbled but can't seem to add the placeholder after the state_field_id without breaking it.
Edit: forgot to include tpl_modules_create_account.php in my examples