I am getting ready to launch a site and when an anonymouse user tries to purchase a product I get the following error. I have read other post on this issue but it is not correcting the issue. I am using version 6.x-4.0-rc10

Here is the line of code:

  foreach (ec_customer_get_addresses($txn->customer) as $address) {
    $address = (array)$address;
    $options[$address['aid']] = t('@firstname @lastname, @street in @city', array('@firstname' => $address['firstname'], '@lastname' => $address['lastname'], '@street' => $address['street1'], '@city' => $address['city']));
  }

Comments

3dloco’s picture

Version: 6.x-4.0-rc10 » 6.x-4.x-dev

Hello,

I am getting the same error and I am using the 6.x-4.x dev (jun 23rd).

I believe this error is also breaking up the Order Summary form as I am not able to submit the "place your order button" (it is grayed out).
Here is what is working for me during testing:

1. First hit "Update order" button so the "Place your order" button becomes available.
2. Now hit the "Place your order" button without an email address.
2. You will get an "email required error"...which clears up the "invalid argument supplied for each" error.
3. Lastly, fill in the email address and submit.

Thanks,

KH

gordon’s picture

Status: Active » Fixed

I have fixed this issue in dev, so this should not be happening anymore.

#1 - This is correct behavior as changing information in the checkout page may cause the total to change. So updating will make sure that all the amount they are agreeing to pay is the same amount that is being charged to the credit card. If you have any further ideas on how to handle this please open a new issue.

3dloco’s picture

This fixed the error! I appreciate your quick response.

Regarding the need to "Update Order" before "Placing your order"...I have posted a feature modification request @ http://drupal.org/node/501482

sonlinemedia’s picture

gordon I am using 6.x-4.0-rc10. Isn't that the most current dev? If not maybe I am misunderstanding what you mean by fixed this issue in dev. I have updraded it to 6.x-4.0-rc10 and ran the upgrade.php

gordon’s picture

There are the rc releases and the dev release. The RC releases are at a point in time, where as the dev release is continually being updated as changes are made.

See http://drupal.org/project/ecommerce for all the releases that are available to download.

sonlinemedia’s picture

Thank you for clearing that up gordon. I just updated to the rc11 which was just released today and all problems are addressed.

Status: Fixed » Closed (fixed)

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