View Single Post
  #1  
Old 09-13-2011, 02:48 AM
 
fwm fwm is offline
 

Advanced Member
  
Join Date: Apr 2011
Posts: 78
 

Default Ship to different address checkbox

Hi All,

I don't know if this question has been asked before, but having searched through the forums I can't seem to find it.

I was wondering how easy it would be to change the Ship2diff checkbox to make it a radio button group?

I would like to have 2 radio buttons

Same as Billing Address
Ship to different address

I have an idea that copying the code from the Address Book link should enable me to ship to a different address, but I can't see how Clicking on the "Same as billing address" option will remove the shipping address as it's already been entered.

I will consider it to be something like:

Code:
<div class="optional-label"> <label><input type="radio" name="ship2diff" value="N" id="ship2diff1" onclick="javascript: USE THE SAME AS THE BILLING ADDRESS"{if !$ship2diff} checked="checked"{/if}/>Same as Billing Address</label> <br /> <label><input type="radio" name="ship2diff" value="Y" id="ship2diff2" onclick="javascript: POPUP THE ADDRESS BOOK"{if $ship2diff} checked="checked"{/if} />Ship to Different Address</label> <br /> </div>
Any ideas?

Thanks,
FWM.
__________________
X-Cart 4.1.9
X-Cart 4.4.1
X-Cart Platinum 4.6.1
Reply With Quote