adibranch Posted February 23, 2012 Share Posted February 23, 2012 Hi all, the 'choose delivery address' dropdown on order-address is pretty useless if the customer is a new one, and has only entered one address. I need to remove it if only one address has been entered, similar to the way the invoice address dropdown works. Has anyone got any ideas? I played about for a while but couldnt suss it.. Thanks Link to comment Share on other sites More sharing options...
Fixfinn Posted February 14, 2013 Share Posted February 14, 2013 Hi! Did You solve this problem? 1 Link to comment Share on other sites More sharing options...
axelfx07 Posted March 25, 2013 Share Posted March 25, 2013 Hey, I'd like a solution fort this one. The piece of code responsible is <label for="id_address_delivery">{if $cart->isVirtualCart()}{l s='Choose a billing address:'}{else}{l s='Choose a delivery address:'}{/if}</label> <select name="id_address_delivery" id="id_address_delivery" class="address_select" onchange="updateAddressesDisplay();{if $opc}updateAddressSelection();{/if}"> lines 214 and 215 of order-adresses.tpl commenting out the first line removes "Choose a delivery address:", but leaves the drop box. Commenting out the second one removes the whole address block. Link to comment Share on other sites More sharing options...
axelfx07 Posted March 25, 2013 Share Posted March 25, 2013 here is inelegant solution you can add .hide { visibility:hidden; } to your template's css and then replace this call in the second line. It will hide the selection box but will leave quite a big margin Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now