Jump to content

Uncheck box in checkout form (same address for billing)


Recommended Posts

When proceeding through checkout, shipping and invoice address are standard equal.

 

The checkbox: "Use the same address for billing" is automatically checked.

 

For my client we have imported all clients with seperate billing and shipping addresses, I would like the checkbox to be automatically unchecked. So standard two addresses, client still has to be kept the option to check it and use one address.

 

Do i change this in order-address.tpl?

Line 139:

 

   	 <p class="checkbox">
		<input type="checkbox" name="same" id="addressesAreEquals" value="1" onclick="updateAddressesDisplay();{if $opc}updateAddressSelection();{/if}" {if $cart->id_address_invoice == $cart->id_address_delivery || $addresses|@count == 1}checked="checked"{/if} />
		<label for="addressesAreEquals">{l s='Use the same address for billing.'}</label>
	</p>

Link to comment
Share on other sites

Do i change this in order-address.tpl?

 

That is the correct place if all you want to do is to remove the check from the checkbox. Remove the following from the snippet you posted:

 

{if $cart->id_address_invoice == $cart->id_address_delivery || $addresses|@count == 1}checked="checked"{/if}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...