質問 > 管理機能 > 注文確認メールに年齢表示 |
管理機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
GonGon |
投稿日時: 2013/6/5 20:29
対応状況: −−−
|
常連 登録日: 2008/7/10 居住地: 東京都 投稿: 64 |
Re: 注文確認メールに年齢表示 ご指摘ありがとうございます。
PHPにて記載することにしたのですが、下記内容でエラーが出てしまいます。 <!--{php}--> $now = date('Ymd'); $birth = $arrOrder.order_birth|escape|strtotime|date_format:"%Y%m%d"; print floor(($now-$birth)/10000) . "才"; <!--{/php}--> 下記の方法だとうまく表示されるので、 $birth = $arrOrder.order_birth|escape|strtotime|date_format:"%Y%m%d"; 部分がおかしいとは思うのですが、再度ご教示頂けないでしょうか。 <!--{php}--> $now = date('Ymd'); $birth = "19700101"; print floor(($now-$birth)/10000) . "才"; <!--{/php}--> よろしくお願いいたします。 EC-CUBEバージョン 2.11.5 PHPバージョン PHP 5.3.10 DBバージョン MySQL 5.5.21 |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
注文確認メールに年齢表示 | GonGon | 2013/6/5 15:03 |
Re: 注文確認メールに年齢表示 | cohki | 2013/6/5 15:56 |
Re: 注文確認メールに年齢表示 | red | 2013/6/5 16:23 |
» Re: 注文確認メールに年齢表示 | GonGon | 2013/6/5 20:29 |
Re: 注文確認メールに年齢表示 | bratech | 2013/6/5 23:23 |
Re: 注文確認メールに年齢表示 | GonGon | 2013/6/6 0:11 |
Re: 注文確認メールに年齢表示 | bratech | 2013/6/6 1:02 |
Re: 注文確認メールに年齢表示 | GonGon | 2013/6/10 23:02 |