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 www.batterygenie.com.
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:
Quote:
$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:
Quote:
$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:
Quote:
<div class="buttonRow forward"><?php echo '<a href="' . $editShippingButtonLink . '">' . zen_image_button(BUTTON_IMAGE_CHANGE_ADDRESS, BUTTON_CHANGE_ADDRESS_ALT) . '</a>'; ?></div>
Quote:
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:
Quote:
<address><?php echo zen_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></address>
Hopefully someone will find that info useful.
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:)
Re: How to make shipping match billing address to prevent fraud?
Quote:
Originally Posted by
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?
Re: How to make shipping match billing address to prevent fraud?
Quote:
Originally Posted by
vatertime
Any updates? Anyone try the code above?
also curious, would like to use this if it works
Re: How to make shipping match billing address to prevent fraud?
Quote:
Originally Posted by
vatertime
Any updates? Anyone try the code above?
Quote:
Originally Posted by
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?
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!