Bug in registering shipping/billing address that does not require address2.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 14 ans
the method in customermanager:

public static bool CanUseAddressAsShippingAddress(Address address)

The lines will prevent shipping address being inserted if address 2 is not required (as it's not in many non-us countries):

if (address.Address2 == null)
                return false;
            if (String.IsNullOrEmpty(address.Address2.Trim()))
                return false;

Simply replace with this:

if (address.Address2 == null && CustomerManager.FormFieldStreetAddress2Required)
                return false;
            if (String.IsNullOrEmpty(address.Address2.Trim()) && CustomerManager.FormFieldStreetAddress2Required)
                return false;


The same goes for:
    public static bool CanUseAddressAsBillingAddress(Address address)
Il y a 14 ans
Thanks
Il y a 14 ans
Which file is it in? And what is the correct replacement for the billing? Thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.