Thanks Jacques for reporting this issue. This could be related to my recent commits around one page.
I will look at it soonish.

Vikas
On Nov 18, 2008, at 6:31 PM, Jacques Le Roux wrote:

Hi,

By default when a new user create his/her profile in eCommerce no billing address is set. So for the moment the one page checkout fails. I propose this patch but I'm not sure it's the best solution (in a hurry)

Index: applications/ecommerce/webapp/ecommerce/WEB-INF/actions/ customer/EditBillingAddress.groovy
===================================================================
--- applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/ EditBillingAddress.groovy (revision 718550) +++ applications/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/ EditBillingAddress.groovy (working copy)
@@ -25,6 +25,10 @@
    party = userLogin.getRelatedOne("Party");
contactMech = EntityUtil.getFirst(ContactHelper.getContactMech(party, "BILLING_LOCATION", "POSTAL_ADDRESS", false));
    if (contactMech) {
+    } else {
+ contactMech = EntityUtil.getFirst(ContactHelper.getContactMech(party, "SHIPPING_LOCATION", "POSTAL_ADDRESS", false));
+    }
+    if (contactMech) {
        postalAddress = contactMech.getRelatedOne("PostalAddress");
        billToContactMechId = postalAddress.contactMechId;
        context.billToContactMechId = billToContactMechId;


Jacques

Reply via email to