Forums / Managing Customers and Orders / How to make shipping match billing address to prevent fraud?

How to make shipping match billing address to prevent fraud?

Views: 5,147

Results 1 to 7 of 7
7 May 2008, 4:24 PM
#1
batterygenie avatar

batterygenie

New Zenner

Join Date:
May 2008
Location:
Thousand Oaks, CA
Posts:
30
Plugin Contributions:
0

How to make shipping match billing address to prevent fraud?

Does anyone know how to make the shipping and billing address match so that we can minimize fraud? At some point someone on our site changed the maximum address book entries to 0 but that removes the change address button on the billing page. I can manually hide the change address button on the shipping page, but that just means that the customer won't be able to change the shipping address when it is entered the first time. What I would like to do is have them be able to change their billing address with the "change your address" button and have that change the shipping address at the same time?

Anyone have any ideas?

Website is https://www.batterygenie.com.

8 May 2008, 4:46 PM
#2
batterygenie avatar

batterygenie

New Zenner

Join Date:
May 2008
Location:
Thousand Oaks, CA
Posts:
30
Plugin Contributions:
0

Re: How to make shipping match billing address to prevent fraud?

In case anyone is interested, I've figured out how to make this work.

There are three files to edit (I suggest making backups of these files):
order.php
tpl_checkout_shipping default
tpl_checkout_confirmation_default.php

In order.php change the following:

$sql_data_array = array('customers_id' => $_SESSION['customer_id'],
'customers_name' => $this->customer['firstname'] . ' ' . $this->customer['lastname'],
'customers_company' => $this->customer['company'],
'customers_street_address' => $this->customer['street_address'],
'customers_suburb' => $this->customer['suburb'],
'customers_city' => $this->customer['city'],
'customers_postcode' => $this->customer['postcode'],
'customers_state' => $this->customer['state'],
'customers_country' => $this->customer['country']['title'],
'customers_telephone' => $this->customer['telephone'],
'customers_email_address' => $this->customer['email_address'],
'customers_address_format_id' => $this->customer['format_id'],
'delivery_name' => $this->delivery['firstname'] . ' ' . $this->delivery['lastname'],
'delivery_company' => $this->delivery['company'],
'delivery_street_address' => $this->delivery['street_address'],
'delivery_suburb' => $this->delivery['suburb'],
'delivery_city' => $this->delivery['city'],
'delivery_postcode' => $this->delivery['postcode'],
'delivery_state' => $this->delivery['state'],
'delivery_country' => $this->delivery['country']['title'],
'delivery_address_format_id' => $this->delivery['format_id'],

to this:

$sql_data_array = array('customers_id' => $_SESSION['customer_id'],
'customers_name' => $this->customer['firstname'] . ' ' . $this->customer['lastname'],
'customers_company' => $this->customer['company'],
'customers_street_address' => $this->customer['street_address'],
'customers_suburb' => $this->customer['suburb'],
'customers_city' => $this->customer['city'],
'customers_postcode' => $this->customer['postcode'],
'customers_state' => $this->customer['state'],
'customers_country' => $this->customer['country']['title'],
'customers_telephone' => $this->customer['telephone'],
'customers_email_address' => $this->customer['email_address'],
'customers_address_format_id' => $this->customer['format_id'],
'delivery_name' => $this->billing['firstname'] . ' ' . $this->billing['lastname'],
'delivery_company' => $this->billing['company'],
'delivery_street_address' => $this->billing['street_address'],
'delivery_suburb' => $this->billing['suburb'],
'delivery_city' => $this->billing['city'],
'delivery_postcode' => $this->billing['postcode'],
'delivery_state' => $this->billing['state'],
'delivery_country' => $this->billing['country']['title'],
'delivery_address_format_id' => $this->billing['format_id'],

In tpl_checkout_shipping_default.php remove or hide:

<div class="buttonRow forward"><?php echo '<a href="' . $editShippingButtonLink . '">' . zen_image_button(BUTTON_IMAGE_CHANGE_ADDRESS, BUTTON_CHANGE_ADDRESS_ALT) . '</a>'; ?></div>

In tpl_checkout_confirmation_default.php change:

<div class="buttonRow forward"><?php echo '<a href="' . $editShippingButtonLink . '">' . zen_image_button(BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT) . '</a>'; ?></div> <address><?php echo zen_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'); ?></address>

to this:

<address><?php echo zen_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></address>

Hopefully someone will find that info useful.

9 Jan 2009, 4:47 AM
#3
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: How to make shipping match billing address to prevent fraud?

Has anybody used this? Does it work properly? After the first order is placed with the same address then the customer can change it for the next orders? Seems to me this is VERY useful, if it works properly:)

3 Aug 2010, 4:29 PM
#4
vatertime avatar

vatertime

New Zenner

Join Date:
Dec 2009
Posts:
18
Plugin Contributions:
0

Re: How to make shipping match billing address to prevent fraud?

swamyg1:

Has anybody used this? Does it work properly? After the first order is placed with the same address then the customer can change it for the next orders? Seems to me this is VERY useful, if it works properly:)

Any updates? Anyone try the code above?

6 Aug 2010, 4:43 PM
#5
shopshogun avatar

shopshogun

New Zenner

Join Date:
Dec 2008
Posts:
55
Plugin Contributions:
0

Re: How to make shipping match billing address to prevent fraud?

vatertime:

Any updates? Anyone try the code above?

also curious, would like to use this if it works

6 Aug 2010, 11:48 PM
#6
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: How to make shipping match billing address to prevent fraud?

vatertime:

Any updates? Anyone try the code above?

ShopShogun:

also curious, would like to use this if it works

Seeing that both of you are interested in this, why doesn't one of you try it out and report back here?

6 May 2011, 1:41 PM
#7
ramjammer avatar

ramjammer

New Zenner

Join Date:
May 2011
Posts:
13
Plugin Contributions:
0

Re: How to make shipping match billing address to prevent fraud?

Haven't tried it yet, but looking over the code changes provided it should work. Code looks good! Back up your files and give it a shot!