Improve display_title value, as end user doesn't care whether payment is going through Ogone or not...
Hi Sven,
Do you have any idea how I can set the display_title different? Is it possible to set it via a hook?
Thanks
This can be achieved in a custom module, via the following code:
function MODULENAME_commerce_payment_method_info_alter(&$payment_methods) { $payment_methods['ogone']['display_title'] = t('CUSTOM DISPLAY TITLE'); }
Thanks, but using that hook, I can only change the module's display name.
My situation: I have 2 ogone entries: 1 for paypal, 1 for ideal. I 'duplicated' the first ogone and named it ogone_ideal.
Now I want to name 1 of them paypal an the other ideal. Any idea how that could be implemented?
That should probably be something like this then:
function MODULENAME_commerce_payment_method_info_alter(&$payment_methods) { $payment_methods['ogone']['display_title'] = t('Ogone'); $payment_methods['ogone_ideal']['display_title'] = t('iDeal'); }
Thank you svendecabooter!
The addition mentioned in #2 solved the problem perfectly for me.
Comments
Comment #1
marcus_w commentedHi Sven,
Do you have any idea how I can set the display_title different? Is it possible to set it via a hook?
Thanks
Comment #2
svendecabooterThis can be achieved in a custom module, via the following code:
Comment #3
svendecabooterComment #4
marcus_w commentedThanks, but using that hook, I can only change the module's display name.
My situation:
I have 2 ogone entries: 1 for paypal, 1 for ideal.
I 'duplicated' the first ogone and named it ogone_ideal.
Now I want to name 1 of them paypal an the other ideal. Any idea how that could be implemented?
Thanks
Comment #5
svendecabooterThat should probably be something like this then:
Comment #6
roball commentedThank you svendecabooter!
The addition mentioned in #2 solved the problem perfectly for me.