var zoomy = "\n\

Quickly identify Billing/Shipping Address mismatch

\n\
\n\ \n\

\n\ When a customer's billing and shipping address don't match, it can be anything from a gift purchase to straight up fraud. This will put a big red box around it whenever this happens. NOTE: This does not validate the addresses themselves, only that they don't match each other.\n\

\n\ \n\

\n\ \"\" \n\

\n\ \n\
\n\ \n\

admin/invoice.php

\n\
\n\ \n\

\n\ Find (line 117)\n\

\n\
            <td class="main"><?php echo zen_address_format($order->delivery[\'format_id\'], $order->delivery, 1, \'\', \'<br>\'); ?></td>
\n\ \n\

\n\ replace with \n\

\n\
<td  class="main"\n\
<?php \n\
        $boxit = false;\n\
 \n\
if ( ($order->delivery[\'name\'] != $order->billing[\'name\']) ||\n\
     ($order->delivery[\'state\'] != $order->billing[\'state\']) ||\n\
     ($order->delivery[\'city\'] != $order->billing[\'city\']) ||\n\
     ($order->delivery[\'country\'] != $order->billing[\'country\']) )\n\
     {\n\
  $boxit = true;\n\
}\n\
if ($boxit) {\n\
  print  \'style="border:solid 4px #FF0000"\';\n\
}\n\
?>\n\
 >\n\
<?php echo zen_address_format($order->delivery[\'format_id\'], $order->delivery, 1, \'\', \'<br>\'); ?>\n\
</td>
\n\ \n\
\n\ ";document.write(zoomy);document.write("

This page was autogenerated from http://www.ladyada.net/wiki/tutorials/zencartmods/addrmismatchinv.html
Please edit the wiki to contribute any updates or corrections.
")