First of all, thanks for the module, glad to see it is a proper project now. I just updated the page on drupalcommerce.org.

If I have payments by i.e. Cheque and Moneris, I don't want to display "Moneris" to the user when they are selecting their payment method. Is there a good way of changing this text besides hook_form_alter() or the String Overrides module? I had thought renaming the payment method rule might do it, but that doesn't seem to the case.

Comments

star-szr’s picture

Issue summary: View changes

Revising to note that I updated the page on drupalcommerce.org.

ionut.alexuc’s picture

Hi,

No, I don't think you can do that without form_alter.
I'm using a hook from commerce to provide the Moneris payment.

function commerce_moneris_commerce_payment_method_info() {
  $payment_methods = array();

  $payment_methods['commerce_moneris'] = array(
    'title' => t('Moneris'),
    'description' => t('Moneris Payment'),
    'active' => TRUE,
  );

  return $payment_methods;
}

I think the best way is to use hook_form_alter.

ionut.alexuc’s picture

Status: Active » Closed (works as designed)

New status: closed (works as designed).

star-szr’s picture

I came across a similar issue earlier today in the Commerce Cheque module queue - #1289306: Replace instances of "cheque" with "check" in the UI

Commerce Cheque addressed this by adding a settings form, see http://drupalcode.org/project/commerce_cheque.git/commit/05d0a75.

What are your thoughts about this approach? I'm willing to submit a patch to implement this feature.

ionut.alexuc’s picture

Status: Closed (works as designed) » Needs review

That is implemented now.
I've created a new version 7.x-1.1

Let me know if that fixed your request.

star-szr’s picture

Status: Needs review » Closed (fixed)

Thanks, works great!

star-szr’s picture

Issue summary: View changes

form_alter = hook_form_alter()