Zen Cart Logo
Forums / Bug Reports / Almost false address mismatch

Almost false address mismatch

Views: 865

Results 1 to 2 of 2
16 May 2013, 10:23 PM
#1
magz avatar

magz

Zen Follower

Join Date:
Apr 2013
Location:
north carolina
Posts:
110
Plugin Contributions:
0

Almost false address mismatch

Hi,

I noticed that billing and shipping addresses are considered a mismatch even when the difference is only in word capitalization or abbreviations vs spelled out words (e.g., st vs street). Is there a way to tell the system to ignore such differences?

Thanks,
Magz

30 May 2013, 4:31 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Almost false address mismatch

You can fix this with:
/your_admin_dir/orders.php

      $show_difference = '';
      if ((strtoupper($orders->fields['delivery_name']) != strtoupper($orders->fields['billing_name']) and trim($orders->fields['delivery_name']) != '')) {
        $show_difference = zen_image(DIR_WS_IMAGES . 'icon_status_red.gif', TEXT_BILLING_SHIPPING_MISMATCH, 10, 10) . ' ';
      }
      if ((strtoupper($orders->fields['delivery_street_address']) != strtoupper($orders->fields['billing_street_address']) and trim($orders->fields['delivery_street_address']) != '')) {
        $show_difference = zen_image(DIR_WS_IMAGES . 'icon_status_red.gif', TEXT_BILLING_SHIPPING_MISMATCH, 10, 10) . ' ';
      }
      $show_payment_type = $orders->fields['payment_module_code'] . '<br />' . $orders->fields['shipping_module_code'];