Results 1 to 7 of 7
  1. #1
    Join Date
    May 2008
    Location
    Thousand Oaks, CA
    Posts
    29
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    May 2008
    Location
    Thousand Oaks, CA
    Posts
    29
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Dec 2008
    Location
    San Fran
    Posts
    382
    Plugin Contributions
    0

    Default 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:)

  4. #4
    Join Date
    Dec 2009
    Posts
    18
    Plugin Contributions
    0

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

    Quote Originally Posted by swamyg1 View Post
    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?

  5. #5
    Join Date
    Dec 2008
    Posts
    55
    Plugin Contributions
    0

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

    Quote Originally Posted by vatertime View Post
    Any updates? Anyone try the code above?
    also curious, would like to use this if it works

  6. #6
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

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

    Quote Originally Posted by vatertime View Post
    Any updates? Anyone try the code above?
    Quote Originally Posted by ShopShogun View Post
    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?

  7. #7

    Default 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!

 

 

Similar Threads

  1. blank order information when billing and shipping address match
    By dealman876 in forum Managing Customers and Orders
    Replies: 3
    Last Post: 23 Mar 2013, 05:10 PM
  2. Force Billing and Shipping Address to match?
    By skywalker826 in forum General Questions
    Replies: 1
    Last Post: 5 May 2011, 10:17 AM
  3. making First Order shipping and billing address match
    By NamSingh in forum General Questions
    Replies: 6
    Last Post: 11 Apr 2011, 01:36 AM
  4. shipping and billing address don't match
    By happy meme in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 13 Aug 2009, 06:26 AM
  5. Billing and Shipping address not match
    By artcoder in forum Managing Customers and Orders
    Replies: 5
    Last Post: 8 May 2007, 08:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR