バージョン選択

フォーラム

メニュー

オンライン状況

74 人のユーザが現在オンラインです。 (57 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 74
もっと...

サイト内検索

質問 > 管理機能 > 【2.11.1】納品書にお届け先の追加方法

管理機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
ゲスト
投稿日時: 2011/8/18 12:15
対応状況: −−−
Re: 【2.11.1】納品書にお届け先の追加方法
「お届け先」情報の格納を半ば把握出来たので、コードを修正しました。
なお、
・「お届け先」全パターンでの表示確認が出来ていない。
・「お届け先」数が多くなると、表示が崩れる。
と、いうことで、参考までに。。。

正しくは
http://svn.ec-cube.net/open_trac/changeset/20943
他の seasoft様のロジックと差し替える必要があると思います。
事の成り行きは
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=8650&forum=11&post_id=42082#forumpost42082
を参照ください。

    function setOrderData() {
        // DBから受注情報を読み込む
        $this->lfGetOrderData($this->arrData['order_id']);

        // 購入者情報
        $text = "〒 ".$this->arrDisp['order_zip01']." - ".$this->arrDisp['order_zip02'];
        $this->lfText(23, 43, $text, 10); //購入者郵便番号
        $text = $this->arrPref[$this->arrDisp['order_pref']] . $this->arrDisp['order_addr01'];
        $this->lfText(27, 47, $text, 10); //購入者都道府県+住所1
        $this->lfText(27, 51, $this->arrDisp['order_addr02'], 10); //購入者住所2
        $text = $this->arrDisp['order_name01']." ".$this->arrDisp['order_name02']." 様";
        $this->lfText(27, 59, $text, 11); //購入者氏名

        // お届け先情報
        $this->pdf->SetFontSize(10);
        $this->lfText(25, 125, SC_Utils_Ex::sfDispDBDate($this->arrDisp['create_date']), 10); //ご注文日
        $this->lfText(25, 135, $this->arrDisp['order_id'], 10); //注文番号

       // 届先情報 <ここから>
       $objShip = new SC_Helper_Purchase_Ex();
       $this->arrShip = $objShip->getShippings($this->arrDisp['order_id']);
             
       $y = 144; // お届け先開始y軸位置
       
       $count = count($this->arrShip);
       $i = 0; // 配列のindex
       $j = 0; // 届け先取り出し数

       do {
           if ($j == $count) {
               break;
           }
           if ($this->arrShip[$i]['shipping_id'] != "") {
               $y += $j * 4 * 3; // 届け先 * 高さ * 要素数
               $text = "[お届け先". (string)($j + 1) . "]";
               $this->lfText(23, $y, $text, 10);
               $y += 4;
               $text = "〒"
                   . $this->arrShip[$i]['shipping_zip01']
                   . "-"
                   . $this->arrShip[$i]['shipping_zip02']
                   . " "
                   . $this->arrPref[$this->arrShip[$i]['shipping_pref']] 
                   . $this->arrShip[$i]['shipping_addr01']
                   . $this->arrShip[$i]['shipping_addr02'];
               $this->lfText(25, $y, $text, 10);
               $y += 4;
               $text = $this->arrShip[$i]['shipping_name01'] . " " . $this->arrShip[$i]['shipping_name02'] . " 様";
               $this->lfText(25, $y, $text, 10);
               
               $j += 1;
           }
           $i += 1;
       } while (true);
       // <ここまで>

        $this->pdf->SetFont('', '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->Cell(0, 45 + $count * 20, '', 0, 2, '', 0, ''); // 第2引数:Cell上端y軸位置 (20は「適当な値」)
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   【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

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は89,239名です
総投稿数は110,055件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1651
8
red
1570
9
mcontact
1299
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.