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

Credit Card Expiry Date Length

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 03-16-2004, 09:04 PM
  jeffwill's Avatar 
jeffwill jeffwill is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: US
Posts: 41
 

Default CC Expiration Date

B00MER,

I did exactly what was indicated, but nothing changed when I tested purchasing a product. I can see what the change looks like by previewing the .tpl file. It just didn't change it on the live site. I have a secure site, do I need to do something different than what you've stated?

Thanks,
__________________
X-Cart ver 3.4.14 (LIVE!)
PHP 4.3.8
MySQL server 4.1.15-log
Web server Apache/1.3.29
Operation system FreeBSD

X-Cart ver 4.0.9 (Dev)
PHP 4.3.4 Details
MySQL server 4.0.18
MySQL client 3.23.49
Reply With Quote
  #12  
Old 03-16-2004, 10:05 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

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

Default

run cleanup.php or delete templates_c/ folder.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #13  
Old 03-17-2004, 12:46 PM
 
jordan0 jordan0 is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: San Francisco, CA
Posts: 77
 

Default

I can't find the "hacking attempt print" that you're referring to around line 51 in include/register.php ... is it different for 3.5.4? Does 3.5.4 still need this mod?
__________________
Jordan Sitkin
http://www.kitkraft.biz
X-Cart 4.0.18 [unix]
Reply With Quote
  #14  
Old 03-17-2004, 12:54 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

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

Default

Putting the line after any include, require statements will work as well.

All this mod does is make the expiration date, two drop downs for month and year, vs an input field.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #15  
Old 03-22-2004, 08:20 PM
  jeffwill's Avatar 
jeffwill jeffwill is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: US
Posts: 41
 

Default Expiry Date Problem

Quote:
Originally Posted by B00MER
run cleanup.php or delete templates_c/ folder.

OK, I completely DELETED the templates_c folder as indicated. Still no change.

Can you tell me how to perform the "Cleanup.php" program you're suggesting?
__________________
X-Cart ver 3.4.14 (LIVE!)
PHP 4.3.8
MySQL server 4.1.15-log
Web server Apache/1.3.29
Operation system FreeBSD

X-Cart ver 4.0.9 (Dev)
PHP 4.3.4 Details
MySQL server 4.0.18
MySQL client 3.23.49
Reply With Quote
  #16  
Old 03-22-2004, 11:25 PM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

You run it through the browser e.g.

http://www.yourdomain.com/xcart/cleanup.php

..just done it on mine and got this message:

Quote:
The compiled templates cache ("templates_c" directory) has been cleaned up.
so I guess it did it's business!

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #17  
Old 03-23-2004, 11:57 AM
 
jordan0 jordan0 is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: San Francisco, CA
Posts: 77
 

Default

www.yoursite.com/xcart_directory/cleanup.php

or www.yoursite.com/cleanup.php
__________________
Jordan Sitkin
http://www.kitkraft.biz
X-Cart 4.0.18 [unix]
Reply With Quote
  #18  
Old 03-27-2004, 06:48 PM
  jeffwill's Avatar 
jeffwill jeffwill is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: US
Posts: 41
 

Default Credit Card Expiry Date Length

Well, I've run that program as well, and nothing has changed.

I must have some custom mod issue causing the problem. I've asked previously, but does it matter that I'm using a secure cart? Are these files stored in a different location. Maybe what I've been changing just isn't reflected online because they're not the correct files?

I'm guessing this may just be beyond my capabilities.
__________________
X-Cart ver 3.4.14 (LIVE!)
PHP 4.3.8
MySQL server 4.1.15-log
Web server Apache/1.3.29
Operation system FreeBSD

X-Cart ver 4.0.9 (Dev)
PHP 4.3.4 Details
MySQL server 4.0.18
MySQL client 3.23.49
Reply With Quote
  #19  
Old 03-30-2004, 07:19 PM
  jeffwill's Avatar 
jeffwill jeffwill is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: US
Posts: 41
 

Default order.php

Having difficulty getting the expiration date to come through on the "Orders" page in the admin area. Once a user processes the order everything works as it should, but the Exp. date: field is left empty.

Isn't there a modification that needs to be done in the orders.php file in order to get the expiration date to be seen.

I've updated the register.php and the register_ccinfo.tpl file as indicated.
__________________
X-Cart ver 3.4.14 (LIVE!)
PHP 4.3.8
MySQL server 4.1.15-log
Web server Apache/1.3.29
Operation system FreeBSD

X-Cart ver 4.0.9 (Dev)
PHP 4.3.4 Details
MySQL server 4.0.18
MySQL client 3.23.49
Reply With Quote
  #20  
Old 04-02-2004, 07:54 AM
 
rickallen1 rickallen1 is offline
 

Member
  
Join Date: Mar 2004
Posts: 16
 

Default Still having problems

I've tried adding month and year dropdowns and still can't get the variable to pass to the payment processor. I'm using I-Transact and it works fine with the default register_ccinfo.tpl.

Boomer, I tried your mod, but 3.5.4 must be different than the other version. It didn't work for me at all.

I'm reasonalbly sure that this mod might work fine for writing the concated card_expire to the database, but it doesn't get passed to the payment processor.

Here is what I went with in skin1/main/register_ccinfo.tpl at about line 62:

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 ""} <select name="card_expire_month"> <option value="01">01</OPTION> <option value="02">02</OPTION> <option value="03">03</OPTION> <option value="04">04</OPTION> <option value="05">05</OPTION> <option value="06">06</OPTION> <option value="07">07</OPTION> <option value="08">08</OPTION> <option value="09">09</OPTION> <option value="10">10</OPTION> <option value="11">11</OPTION> <option value="12">12</OPTION> </select> <select name="card_expire_year"> <option value="04">2004</OPTION> <option value="05">2005</OPTION> <option value="06">2006</OPTION> <option value="07">2007</OPTION> <option value="08">2008</OPTION> <option value="09">2009</OPTION> <option value="10">2010</OPTION> <option value="11">2011</OPTION> <option value="12">2012</OPTION> </select> {else} {#safeCCExp#} <input type=hidden name=card_expire value="{#safeCCExp#}"> {/if} </td> </tr>

I then tried concating the variables in both customer/register.php and payment/payment_cc.php with no luck. Here is the line that was added for that:
Code:
$card_expire = $card_expire_month.$card_expire_year;

When I submit an order through, the card fails and I get no reason from I-transact. The concated date is making it through payment_cc.php though, because the date is showing up in the failed order info in admin along with the cc number. The reason text is blank like this. Reason: : :

My thought is that card_expire is not being added to the array $userinfo["card_expire"] and I have no idea where this is set. Just haven't been at php, smarty or x-cart long enough to figure this one out.

I agree that having a dropdown selection for expiration date would avoid some mistakes and frustration for customers, especially with realtime processing. We have gotten lots of failures due to this.

I know that this is really close if someone can fill in the blanks I'd really appreciate it.

Rick
__________________
X-Cart Ver: 4.2.1
Apache
PHP Ver: 5X
MYSQL Ver: 5X
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 09:08 PM.

   

 
X-Cart forums © 2001-2020