skip to content
AdaWiki
User Tools
Log In
Site Tools
Search
Tools
Show page
Old revisions
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
You are here:
start
»
tutorials
»
zencartmods
»
addrmismatchinv.html
Trace:
tutorials:zencartmods:addrmismatchinv.html
==== Quickly identify Billing/Shipping Address mismatch ==== 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. === admin.invoice.php === Find (line 117) <code php> <td class="main"><?php echo zen_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?></td> </code> replace with <code php> <td class="main" <?php $boxit = false; if ( ($order->delivery['name'] != $order->billing['name']) || ($order->delivery['state'] != $order->billing['state']) || ($order->delivery['city'] != $order->billing['city']) || ($order->delivery['country'] != $order->billing['country']) ) { $boxit = true; } if ($boxit) { print 'style="border:solid 4px #FF0000"'; } ?> > <?php echo zen_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?> </td> </code>
/home/ladyada/public_html/wiki/data/attic/tutorials/zencartmods/addrmismatchinv.html.1304531050.txt.gz
· Last modified: 2016/01/28 18:05 (external edit)
Page Tools
Show page
Old revisions
Backlinks
Back to top