Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Where is the template of the CC Expiration Fields?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-06-2008, 06:20 AM
 
MOC MOC is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 171
 

Default Where is the template for the CC Expiration Fields?

hi,
i need to change the look of the Credit Card fields in checkout. I'm changing register_cc_info.tpl

but the Expiration field contains just this code
Code:
{html_select_date prefix="card_expire_" display_days=false end_year="+10" month_format="%m" time=$userinfo.card_expire_time}

can somebody tell me where i find the template which produces for the above code the drop down fields? I need to change the width of the both fields.

Thanks in advace
__________________
X-Cart Gold Version 3.5.14 (Live)
X-Cart Gold Version 4.1.10 (in dev)

Modification for 4.1.10
Run with 1 License, 1 Database up to 5 Shops with different domains, config, categories and more. click here for informations
Reply With Quote
  #2  
Old 07-06-2008, 06:42 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Where is the template of the CC Expiration Fields?

This is a smarty feature. You don't have to use it.

http://www.smarty.net/manual/en/language.function.html.select.date.php

You can also manually code a dropdown if you need to...

The smarty code may be able to be formatted using css. I have not done this, but it seems possible. I hope this helps you find your solution.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 07-06-2008, 09:05 AM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default Re: Where is the template for the CC Expiration Fields?

Quote:
Originally Posted by MOC
can somebody tell me where i find the template which produces for the above code the drop down fields?
See the link to the topics below for some tips on changing the skin1/main/register_ccinfo.tpl file

search for this code (to change):

{html_select_date prefix="card_expire_" display_days=false end_year="+10" month_format="%m" time=$userinfo.card_expire_time}

To edit, try some of the things suggested at these topics:

Credit Card Expiration Default Values (see post # 13 and 14):
http://forum.x-cart.com/showthread.php?t=28551

Month as "# - text" in CC info:
http://forum.x-cart.com/showthread.php?t=36919

changing months in words to the numerical instead:
http://forum.x-cart.com/showthread.php?t=12524

Credit card expiration date is beyond options:
http://forum.x-cart.com/showthread.php?t=15463

Credit Card Expiration Date:
http://forum.x-cart.com/showthread.php?t=26686


Robert
__________________
X-cart 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:37 PM.

   

 
X-Cart forums © 2001-2020