Used in conjuction with a free order the following error occurred.
I added the condition for an "Order balance comparison" > 0, to my active payment rule, which disabled all payment methods -- I get the errors:

Notice: Undefined index: payment_method in commerce_payment_fields_commerce_payment_pane_checkout_form() (line 26 of ...sites/all/modules/commerce_payment_fields/includes/commerce_payment_fields.checkout_pane.inc).
Notice: Undefined offset: 1 in commerce_payment_fields_commerce_payment_pane_checkout_form() (line 26 of ../sites/all/modules/commerce_payment_fields/includes/commerce_payment_fields.checkout_pane.inc).

Comments

  • vasike committed 339f601 on 7.x-1.x
    Issue #2346933: Fix error notices for no payment method defined for...
vasike’s picture

Status: Active » Fixed

probably it could happen.
there is a new commit that adds new condition to check if the a payment method exists for checkotu pane form.

i hope no it is fixed.

@markbannister : could you please confirm. thank you

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

acrazyanimal’s picture

I encountered this issue using 7.x-1.0-beta3 and updated to the latest dev release.

I can confirm that the issue has been fixed. Thank you.