I am using it with commerce postal code filter module. Basically this module filter the postal codes where we don't deliver our product.

In case of ananymous user, if user try to checkout with unwanted postal code, addressbook fields disappear from checkout form, only email ID remains & they get error message -
There are errors on the page. Please correct them and resubmit the form.

In case of admin login, it doesn't happen and addressbook field remains on page & I find message & a warning from postal code filter module, which is -

Warning: strpos() [function.strpos]: Empty needle in _commerce_postal_code_filter_postal_code_is_valid() (line 196 of /home/labsind/public_html/sites/all/modules/commerce_postal_code_filter/commerce_postal_code_filter.module).
    We do not deliver to this postal code

I don't understand what is messing with checkout form in there, which results into this behavior of the form. Can I get any help on it ?

Comments

andymantell’s picture

Just to clarify - as of commerce_postal_code_filter-7.x-1.x-dev the strpos issue is fixed, though I believe it to be unrelated to this particular problem. (Corresponding issue in the commerce_postal_code_filter queue here: https://drupal.org/node/2044721#comment-7658601).

So far I've still been unable to reproduce this issue. However, my module is adding a validation callback onto the billing and shipping addressfield panes. Could this somehow be interacting with the addressbook functionality here? See commerce_postal_code_filter_commerce_checkout_pane_info_alter()

lsolesen’s picture

Issue summary: View changes

@Rajeevkr Can you please tell us, whether you fixed your issue?

rajeevk’s picture

@Isolesen - I solved it as I remember. But can't recall much except changing the order of shipping & billing address & their dependency on one another.
I am not working on that project now, so can't see & tell you. Sorry :)

mglaman’s picture

Status: Active » Closed (won't fix)

Issue is on customizations and commerce_postal_code_filter, not Commerce Addressbook.