View Single Post
  #18  
Old 05-26-2005, 06:20 PM
 
chilll33 chilll33 is offline
 

Senior Member
  
Join Date: Oct 2003
Location: Miami, FL
Posts: 100
 

Default Re: Hide/Flip Shipping Fields?

Quote:
Originally Posted by snorocket
Has anyone been able to succesfully hide/flip the shipping fields in register.tpl?

yea yea yea I know sstillwell posted the code to do this and it works perfectly but the formatting is the most horrendous thing I've ever come across. I've poked around the code for hours in an effort to fix the formatting with no progress, let us know if you have managed to hide/flip the shipping fields while retaining the same formatting as the orginal code, Thank You.


Try This:
Code:
{if $config.General.use_https_login eq "Y"} <INPUT type="hidden" name="{$XCARTSESSNAME}" value="{$XCARTSESSID}"> {/if} <tr> <td align="left" width="50%"><table> {include file="main/register_personal_info.tpl" userinfo=$userinfo}</table></td> </tr> <tr> <td align="left" width="50%"><table>{include file="main/register_billing_address.tpl" userinfo=$userinfo}</table>Shipping same as billing? Yes<input type="radio" name="shipping" checked="checked" onclick="flipdiv('shippingaddress','hide')" /> No<input type="radio" name="shipping" onclick="flipdiv('shippingaddress','show')" /></td> <td align="left" valign="top"><table id="shippingaddress" style="display: none;">{include file="main/register_shipping_address.tpl" userinfo=$userinfo}</table></td> </tr> <tr> <td align="left" width="50%"><table>{include file="main/register_contact_info.tpl" userinfo=$userinfo}</table></td> </tr> <tr> <td align="left" width="50%"><table>{include file="main/register_additional_info.tpl" section='A'}</table></td> </tr> {if $config.General.disable_cc ne "Y"} {include file="main/register_ccinfo.tpl"} {/if}


I would just like to figure out how to keep the Yes checked after the customer is registered with a different shipping address. So far it just defaults to No, confuses the customer if he wants to ship something to the billing address at a later time
__________________
Core version:
5.3.2.7

PHP:
5.6.29
MySQL server:
5.5.5-10.0.27-MariaDB-cll-lveĀ  (InnoDB engine support enabled)
Web server:
Apache
Operating system:
Linux
XML parser:
found
GDLib:
found (0)
Translation driver:
Database
Curl version:
7.29.0
Reply With Quote