View Single Post
  #10  
Old 03-15-2004, 08:27 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

skin1/main/register_ccinfo.tpl

find:
Code:
<tr valign=middle> <td align=right>{$lng.lbl_cc_expiration}</td> <td><font class=Star>{if $config.General.check_cc_number eq "Y"}*{else}{/if}</font></td> <td nowrap colspan=3> {if #safeCCNum# eq ""} <input type=text name=card_expire size=4 maxlength=4 value="{$userinfo.card_expire}"> {else} {#safeCCExp#} <input type=hidden name=card_expire value="{#safeCCExp#}"> {/if} </td> </tr>

Comment or remove the above code, replace it with:

Code:
<tr valign=middle> <td align=right>{$lng.lbl_cc_expiration}</td> <td><font class=Star>{if $config.General.check_cc_number eq "Y"}*{else}{/if}</font></td> <td nowrap colspan=3> {html_select_date prefix="card_expire_" time=$time start_year="-2" end_year="+8" display_days=false} </td> </tr>

Now edit include/register.php

After hacking attempt print (around line 51) add:

Code:
$card_expire = $card_expire_Month.substr($card_expire_Year,2,2);

donations: paypal@molotovbliss.com

I'm also moving this thread to Custom Mods
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote