質問 > 管理機能 > 【2.11.1】納品書にお届け先の追加方法 |
管理機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
kuru |
投稿日時: 2011/7/15 15:32
対応状況: −−−
|
半人前 登録日: 2011/7/15 居住地: 投稿: 11 |
【2.11.1】納品書にお届け先の追加方法 初投稿です。宜しくお願い致します。
現在、EC-CUBE(2.11.1)にてサイトを構築しているのですが 納品書にお届け先が追加されなくて困っています。 前バージョン(2.3.4)では、デフォルトで SCFpdf.php内に下記部分のようにお届け先が表示されるようになっていました。 class/SC_Fpdf.php(2.3.4) ----------------------------------------------------------- // お届け先情報 $this->pdf->SetFont('SJIS', '', 10); $text = "〒 ".$this->arrDisp['deliv_zip01']." - ".$this->arrDisp['deliv_zip02']; $this->lfText(22, 128, $text, 10); //お届け先郵便番号 $text = $this->arrPref[$this->arrDisp['deliv_pref']] . $this->arrDisp['deliv_addr01']; $this->lfText(26, 132, $text, 10); //お届け先都道府県+住所1 $this->lfText(26, 136, $this->arrDisp['deliv_addr02'], 10); //お届け先住所2 $text = $this->arrDisp['deliv_name01']." ".$this->arrDisp['deliv_name02']." 様"; $this->lfText(26, 140, $text, 10); //お届け先氏名 $this->lfText(144, 121, SC_Utils_Ex::sfDispDBDate($this->arrDisp['create_date']), 10); //ご注文日 $this->lfText(144, 131, $this->arrDisp['order_id'], 10); //注文番号 $this->pdf->SetFont('SJIS', 'B', 15); $this->pdf->Cell(0, 10, $this->sjis_conv($this->tpl_title), 0, 2, 'C', 0, ''); //文書タイトル(納品書・請求書) $this->pdf->Cell(0, 66, '', 0, 2, 'R', 0, ''); $this->pdf->Cell(5, 0, '', 0, 0, 'R', 0, ''); $this->pdf->Cell(67, 8, $this->sjis_conv(number_format($this->arrDisp['payment_total'])." 円"), 0, 2, 'R', 0, ''); $this->pdf->Cell(0, 45, '', 0, 2, '', 0, ''); $this->pdf->SetFont('SJIS', '', 9); $monetary_unit = $this->sjis_conv("円"); $point_unit = $this->sjis_conv("pt"); ----------------------------------------------------------- class/SC_Fpdf.php(2.11.1) ----------------------------------------------------------- // お届け先情報 $this->pdf->SetFont('SJIS', '', 10); $this->lfText(25, 125, SC_Utils_Ex::sfDispDBDate($this->arrDisp['create_date']), 10); //ご注文日 $this->lfText(25, 135, $this->arrDisp['order_id'], 10); //注文番号 $this->pdf->SetFont('SJIS', 'B', 15); $this->pdf->Cell(0, 10, $this->lfConvSjis($this->tpl_title), 0, 2, 'C', 0, ''); //文書タイトル(納品書・請求書) $this->pdf->Cell(0, 66, '', 0, 2, 'R', 0, ''); $this->pdf->Cell(5, 0, '', 0, 0, 'R', 0, ''); $this->pdf->Cell(67, 8, $this->lfConvSjis(number_format($this->arrDisp['payment_total'])." 円"), 0, 2, 'R', 0, ''); $this->pdf->Cell(0, 45, '', 0, 2, '', 0, ''); $this->pdf->SetFont('SJIS', '', 8); $monetary_unit = $this->lfConvSjis("円"); $point_unit = $this->lfConvSjis('Pt'); ----------------------------------------------------------- 2.11.1バージョンでも納品書内にお届け先を追加したく、 下記部分を ------------------------------------------------------------ $this->pdf->SetFont('SJIS', '', 10); $text = "〒 ".$this->arrDisp['deliv_zip01']." - ".$this->arrDisp['deliv_zip02']; $this->lfText(22, 128, $text, 10); //お届け先郵便番号 $text = $this->arrPref[$this->arrDisp['deliv_pref']] . $this->arrDisp['deliv_addr01']; $this->lfText(26, 132, $text, 10); //お届け先都道府県+住所1 $this->lfText(26, 136, $this->arrDisp['deliv_addr02'], 10); //お届け先住所2 $text = $this->arrDisp['deliv_name01']." ".$this->arrDisp['deliv_name02']." 様"; $this->lfText(26, 140, $text, 10); //お届け先氏名 ----------------------------------------------------------- ↓ 下記のように修正して追加してみましたが、 全く反映されていませんでした。 ----------------------------------------------------------- $this->pdf->SetFont('SJIS', '', 10); $text = "〒 ".$this->arrDisp['shipping_zip01']." - ".$this->arrDisp['shipping_zip02']; $this->lfText(23, 128, $text, 10); //お届け先郵便番号 $text = $this->arrPref[$this->arrDisp['shipping_pref']] . $this->arrDisp['shipping_addr01']; $this->lfText(27, 132, $text, 10); //お届け先都道府県+住所1 $this->lfText(27, 136, $this->arrDisp['shipping_addr02'], 10); //お届け先住所2 $text = $this->arrDisp['shipping_name01']." ".$this->arrDisp['shipping_name02']." 様"; $this->lfText(27, 140, $text, 11); //お届け先氏名 ----------------------------------------------------------- 何か記述が間違っているのでしょうか? それともclass/SC_Fpdf.php(2.11.1)ここでお届け先の取得をしないといけないのでしょうか? それとも何かほかにやり方があるのでしょうか? どうか教えて下さい。宜しくお願い致します。 ----------------------------------------------------------- [EC-CUBE]:2.11.1 [OS]:Windows XP [PHP] PHP 5.1.6 [データベース] PostgreSQL 8.1.11 [WEBサーバ] Apache/2.2.3 (CentOS) ----------------------------------------------------------- |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
» 【2.11.1】納品書にお届け先の追加方法 | kuru | 2011/7/15 15:32 |
Re: 【2.11.1】納品書にお届け先の追加方法 | AMUAMU | 2011/7/16 13:26 |
Re: 【2.11.1】納品書にお届け先の追加方法 | kuru | 2011/7/19 18:04 |
Re: 【2.11.1】納品書にお届け先の追加方法 | AMUAMU | 2011/7/25 17:25 |
Re: 【2.11.1】納品書にお届け先の追加方法 | ゲスト | 2011/7/26 12:31 |
Re: 【2.11.1】納品書にお届け先の追加方法 | kakiha | 2011/7/28 12:02 |
Re: 【2.11.1】納品書にお届け先の追加方法 | kuru | 2011/7/28 18:23 |
Re: 【2.11.1】納品書にお届け先の追加方法 | brother | 2011/8/16 11:29 |
Re: 【2.11.1】納品書にお届け先の追加方法 | ゲスト | 2011/8/16 13:03 |
Re: 【2.11.1】納品書にお届け先の追加方法 | brother | 2011/8/16 13:28 |
Re: 【2.11.1】納品書にお届け先の追加方法 | ゲスト | 2011/8/16 14:55 |
Re: 【2.11.1】納品書にお届け先の追加方法 | brother | 2011/8/16 15:17 |
Re: 【2.11.1】納品書にお届け先の追加方法 | ゲスト | 2011/8/16 15:30 |
Re: 【2.11.1】納品書にお届け先の追加方法 | brother | 2011/8/16 15:40 |
Re: 【2.11.1】納品書にお届け先の追加方法 | ゲスト | 2011/8/18 12:15 |
Re: 【2.11.1】納品書にお届け先の追加方法 | comcom | 2011/12/16 15:41 |
Re: 【2.11.1】納品書にお届け先の追加方法 | ゲスト | 2011/12/16 18:05 |
Re: 【2.11.1】納品書にお届け先の追加方法 | kakiha | 2011/7/25 11:16 |