Hi all,
trying to use string override to rename the credit card label to credit / debit card but with no success
created the string and replacements as shown in attachment
any help greatly appreciated!
| Preview | Attachment | Size |
|---|---|---|
![]() | 19-08-2009 10-31-11.png | 24.13 KB |


If you inspect the text which is outputed in the form it is actually "Credit card:", I think if you add ":" to the end of your string it should then work.
So original = Credit card:
Replacement = whatever text you want to appear instead.
You could also use a hook_form_alter in your own module instead.
<?phpfunction your_module_form_alter() {
if($form_id == 'uc_cart_checkout_form' && isset($form['panes']['payment']['payment_method']['#options']['credit'])){
$form['panes']['payment']['payment_method']['#options']['credit'] = 'Credit/Debit Card whatever text you want to appear';
}
}
?>