Closed (fixed)
Project:
e-Commerce
Version:
6.x-4.x-dev
Component:
ec_customer
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2009 at 16:08 UTC
Updated:
10 Jul 2009 at 13:30 UTC
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
Comment #1
3dloco commentedHello,
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
Comment #2
gordon commentedI 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.
Comment #3
3dloco commentedThis 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
Comment #4
sonlinemedia commentedgordon 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
Comment #5
gordon commentedThere 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.
Comment #6
sonlinemedia commentedThank you for clearing that up gordon. I just updated to the rc11 which was just released today and all problems are addressed.