Zen Cart Logo
Forums / All Other Contributions/Addons / Same Address for shipping/billing checkbox

Same Address for shipping/billing checkbox

Views: 5,833

Results 1 to 4 of 4
14 Jun 2011, 4:52 PM
#1
miff avatar

miff

Zen Follower

Join Date:
Sep 2010
Location:
Stoke-on-Trent, Staffordshire. UK
Posts:
131
Plugin Contributions:
0

Same Address for shipping/billing checkbox

Was hoping someone may be able to point me in the right direction to fix a little issue iv been having with my sign up page.
There is a box which can be checked so that the billing information will automatically be the same as the shipping address without having to type it in twice.
It does work however when you first visit the page only the billing address is shown, yet the box is not checked. If I then check the box and then un-check it again the shipping address will also now appear.
Any ideas?

15 Jun 2011, 8:48 PM
#2
miff avatar

miff

Zen Follower

Join Date:
Sep 2010
Location:
Stoke-on-Trent, Staffordshire. UK
Posts:
131
Plugin Contributions:
0

Re: Same Address for shipping/billing checkbox

SOLVED:clap:

15 Oct 2011, 5:27 PM
#3
rob_musquetier avatar

rob_musquetier

New Zenner

Join Date:
May 2011
Location:
The Netherlands
Posts:
4
Plugin Contributions:
0

Re: Same Address for shipping/billing checkbox

How did you fix it?

2 Mar 2012, 11:45 PM
#4
yaniby avatar

yaniby

New Zenner

Join Date:
Mar 2011
Posts:
4
Plugin Contributions:
0

Re: Same Address for shipping/billing checkbox

Go to /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php

Line: 232: <?php echo zen_draw_checkbox_field('shippingAddress', '1', $ShippingAddress, 'id="shippingAddress-checkbox"') . '<label style="" class="checkboxLabel" for="shippingAddress-checkbox">' . ENTRY_COPYBILLING . '</label>' . (zen_not_null(ENTRY_COPYBILLING_TEXT) ? '<span class="alert">' . ENTRY_COPYBILLING_TEXT . '</span>': ''); ?>

Change it to:

<?php echo zen_draw_checkbox_field('shippingAddress', '1', true, 'id="shippingAddress-checkbox"') . '<label style="" class="checkboxLabel" for="shippingAddress-checkbox">' . ENTRY_COPYBILLING . '</label>' . (zen_not_null(ENTRY_COPYBILLING_TEXT) ? '<span class="alert">' . ENTRY_COPYBILLING_TEXT . '</span>': ''); ?>