[Tep-j-general] Re: 支払いモジュール>クレジットカードについて

Back to archive index

mac_user mac_user****@itpma*****
2003年 6月 24日 (火) 13:35:33 JST


梅田です

お返事ありがとうございます。

> catalog/includes/modules/payment/cc.php (MS1 では78行目)
> ------------------------------------------------------------
> for ($i=1; $i<13; $i++) {
>   $expires_month[] = array('id' => sprintf('%02d', $i),
>     'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));
> }
> ------------------------------------------------------------
>
> ここの strftime('%B',mktime(0,0,0,$i,1,2000)) を、
>   (strftime('%m',mktime(0,0,0,$i,1,2000)) . '月')
> のように変更すればいいと思います。


下記のように変更し、目的とする動作になりました。
ありがとうございます。

for ($i=1; $i<13; $i++) {
  $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => (strftime('%m',mktime(0,0,0,$i,1,2000)) . ' 月'));
}

$today = getdate();
for ($i=$today['year']; $i < $today['year']+10; $i++) {
  $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => (strftime('%Y',mktime(0,0,0,1,1,$i)) . ' 年'));
}

















Tep-j-general メーリングリストの案内
Back to archive index