moonmosaic Posted September 18, 2009 Share Posted September 18, 2009 I need to have the billing and delivery addresses different by default because my customers rarely send gifts to themselves. If the delivery and the billing addresses are the same then they have to click the box, otherwise they need to add an address for delivery.I can't believe how many of my visitors have complained about setting this up being a pain.....looks easy to me!Anyway, what do I need to change in the php file to make this happen? {l s='Choose a delivery address:'} {foreach from=$addresses key=k item=address}id_address_delivery}selected="selected"{/if}>{$address.alias|escape:'htmlall':'UTF-8'} {/foreach} <input type="checkbox" name="same" id="addressesAreEquals" value="1">id_address_invoice == $cart->id_address_delivery || $addresses|@count == 1}checked="checked"{/if} />{l s='Use the same address for billing.'} I know this is the area, but not sure what to change and where.Thank you so much!! Link to comment Share on other sites More sharing options...
presta-dyr Posted September 19, 2009 Share Posted September 19, 2009 Perhaps you can be inspired by my demo-shop. Users don't login and there are fewer steps in the checkout. You could easily change the "Use the same address" checkbox to be unchecked per default./Kjeld Link to comment Share on other sites More sharing options...
moonmosaic Posted September 20, 2009 Author Share Posted September 20, 2009 but how do I do that? I don't know much php:( Link to comment Share on other sites More sharing options...
moonmosaic Posted September 28, 2009 Author Share Posted September 28, 2009 Anyone please? how do i make the "billing and delivery" box unchecked by default? Link to comment Share on other sites More sharing options...
Star Posted September 29, 2009 Share Posted September 29, 2009 Anyone please? how do i make the "billing and delivery" box unchecked by default? Go to themes/your_themes/order-address.tpl, somewhere in line 32, <input type="checkbox" name="same" id="addressesAreEquals" value="1" change it to <input type="checkbox" name="same" id="addressesAreEquals" value="0" Link to comment Share on other sites More sharing options...
moonmosaic Posted September 29, 2009 Author Share Posted September 29, 2009 I did that but it didn't work. Perhaps I should change something else too? Link to comment Share on other sites More sharing options...
Star Posted September 29, 2009 Share Posted September 29, 2009 I did that but it didn't work. Perhaps I should change something else too? Oh, sorry. The thread ate half of the codes. form<input type="checkbox" name="same" id="addressesAreEquals" value="1">id_address_invoice == $cart->id_address_delivery}checked="checked"{/if} />to <input type="checkbox" name="same" id="addressesAreEquals" value="0">id_address_invoice > $cart->id_address_delivery}checked="checked"{/if} />I think it will work. Link to comment Share on other sites More sharing options...
Roarke80 Posted October 24, 2009 Share Posted October 24, 2009 Hi, Thanks for the tip, but it doesn't work for me. All I get is a blank page when I change the code. Link to comment Share on other sites More sharing options...
metta Posted October 24, 2009 Share Posted October 24, 2009 Perhaps you can be inspired by my demo-shop. Users don't login and there are fewer steps in the checkout. You could easily change the "Use the same address" checkbox to be unchecked per default./Kjeld Your check out has problem. If I use other people's email address and then I will get all of their info, address, phone number, and order history? You will have a lot of legal issue to deal with.... Link to comment Share on other sites More sharing options...
presta-dyr Posted October 24, 2009 Share Posted October 24, 2009 You're quite right. My security relies on the fact that I have very few customers. ;-)Anyway, I like the checkout made by zelarg described in the thread Single page checkout. His strategy is to generate a password that you can get via e-mail if you are a returning customer./Kjeld Link to comment Share on other sites More sharing options...
iDevil Posted March 4, 2010 Share Posted March 4, 2010 I also need this function. Who can help me?Thank you! Link to comment Share on other sites More sharing options...
dirgeforwinter Posted April 22, 2010 Share Posted April 22, 2010 I did that but it didn't work. Perhaps I should change something else too? Oh, sorry. The thread ate half of the codes. form<input type="checkbox" name="same" id="addressesAreEquals" value="1">id_address_invoice == $cart->id_address_delivery}checked="checked"{/if} />to <input type="checkbox" name="same" id="addressesAreEquals" value="0">id_address_invoice > $cart->id_address_delivery}checked="checked"{/if} />I think it will work. Thanks Star, it worked for me! Link to comment Share on other sites More sharing options...
TheBrickStore Posted March 16, 2012 Share Posted March 16, 2012 I need to do the same, but I am using 1.4.7 and my code looks a little different than what is shown above. Can someone tell me how to change this so the checkbox will be unchecked by default? <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} /> Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted March 16, 2012 Share Posted March 16, 2012 All you need to do is remove checked="checked" Hope that helps! Marty Shue Link to comment Share on other sites More sharing options...
TheBrickStore Posted March 27, 2012 Share Posted March 27, 2012 That worked! Thanks so much! Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted March 27, 2012 Share Posted March 27, 2012 You're welcome! Glad it worked. Marty Shue Link to comment Share on other sites More sharing options...
Tahsin_85 Posted March 20, 2017 Share Posted March 20, 2017 Hallo, in the checkout process, you have on top of your addresses a checkbox it is checked for using same address for delivery and billing. Link to comment Share on other sites More sharing options...
Recommended Posts