Not sure of your version of X-Cart but I'm on 3.5.4 and the code is:
Code:
<input type=text name=card_expire size=4 maxlength=4 value="">
I still haven't tried this hack yet though
.
I'm not sure what your code you posted is trying to do, as it looks like the $userinfo.card_expire has
already been given a value, so I would guess the change needs to happen elsewhere, at an earlier stage perhaps.
Maybe some of the guru's would like to comment.
Dan