バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

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

管理機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
ゲスト
投稿日時: 2011/7/26 12:31
対応状況: −−−
Re: 【2.11.1】納品書にお届け先の追加方法
とりあえず、表示できたので、参考までに、、、

<<p.s. '11.08.17 ここから>>
下記コードは「たまたま」の条件の場合のみ巧く表示します。
正しくは
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
を参照ください。
<<ここまで>>


<<コードを修正しました '11.08.18>>
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=thread&topic_id=8431&forum=11&post_id=42125#forumpost42125
を参照ください。



   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); //注文番号
       
&#160;&#160; &#160; &#160; // 届先情報 <ここから>
&#160;&#160; &#160; &#160; $objShip = new SC_Helper_Purchase_Ex();
&#160;&#160; &#160; &#160; $this->arrShip = $objShip->getShippings($this->arrDisp['order_id']);
&#160;&#160; &#160; &#160; $y = 144; // お届け先開始y軸位置
&#160;&#160; &#160; &#160; for($i =0; $i < count($this->arrShip); $i++){
&#160;&#160; &#160; &#160; &#160; &#160; $y += $i * 4 * 3; // 届け先 * 高さ * 要素数
&#160;&#160; &#160; &#160; &#160; &#160; $text = "[お届け先". (string)($i+1) . "]";
&#160;&#160; &#160; &#160; &#160; &#160; $this->lfText(23, $y, $text, 10);
&#160;&#160; &#160; &#160; &#160; &#160; $y += 4;
&#160;&#160; &#160; &#160; &#160; &#160; $text = "〒"
&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; . $this->arrShip[$i]['shipping_zip01']
&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; . "-"
&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; . $this->arrShip[$i]['shipping_zip02']
&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; . " "
&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; . $this->arrPref[$this->arrShip[$i]['shipping_pref']]&#160;
&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; . $this->arrShip[$i]['shipping_addr01']
&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; . $this->arrShip[$i]['shipping_addr02'];
&#160;&#160; &#160; &#160; &#160; &#160; $this->lfText(25, $y, $text, 10);
&#160;&#160; &#160; &#160; &#160; &#160; $y += 4;
&#160;&#160; &#160; &#160; &#160; &#160; $text = $this->arrShip[$i]['shipping_name01'] . " " . $this->arrShip[$i]['shipping_name02'] . " 様";
&#160;&#160; &#160; &#160; &#160; &#160; $this->lfText(25, $y, $text, 10);
&#160;&#160; &#160; &#160; &#160; &#160;&#160;
&#160;&#160; &#160; &#160; }
&#160;&#160; &#160; &#160; // <ここまで>

&#160;&#160; &#160; &#160; $this->pdf->SetFont('', 'B', 15);
&#160;&#160; &#160; &#160; $this->pdf->Cell(0, 10, $this->lfConvSjis($this->tpl_title), 0, 2, 'C', 0, ''); &#160;//文書タイトル(納品書・請求書)
&#160;&#160; &#160; &#160; $this->pdf->Cell(0, 66, '', 0, 2, 'R', 0, '');
&#160;&#160; &#160; &#160; $this->pdf->Cell(5, 0, '', 0, 0, 'R', 0, '');
&#160;&#160; &#160; &#160; $this->pdf->Cell(67, 8, $this->lfConvSjis(number_format($this->arrDisp['payment_total'])." 円"), 0, 2, 'R', 0, '');

&#160;&#160; &#160; &#160; // <ここ>
&#160;&#160; &#160; &#160; //$this->pdf->Cell(0, 45, '', 0, 2, '', 0, '');
&#160;&#160; &#160; &#160; $this->pdf->Cell(0, 45 + $i * 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,873名です
総投稿数は110,243件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1670
8
red
1570
9
mcontact
1339
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.