Hello guys,
I have a problem with the internationalization anbd sorting of a ubercart installation.
Following Problem:
(1) Street Address and ist not translatable! Also the other field names normally not (Street Address 1 , Street Address 2). With a small trick you can make this fields also translatable .
/** example for billing **/
foreach (element_children($form['panes']['billing']) as $key)
{
$form['panes']['billing'][$key]['#title'] = t($form['panes']['billing'][$key]['#title']);
}
(2) The other problem is, that i want to sort this fields. The Postal Code should come before the City. This was my try :
function hook_uc_cart_checkout_form(&$form)
{
$form['panes']['billing']['billing_postal_code']['#weight'] = -10;
}
bu nothing happens ;- (
Have an idea ?
