坂倉 潤一
saka_jet****@hotma*****
2004年 3月 25日 (木) 18:27:27 JST
お世話になっています。鈴木です。 ちょっと仕様が違うかもしれませんが、私は以前以下の仕様で改造を行いましたの で、 ソース一部分ですが参考になればと思います。 ・請求先は選択させない ・支払方法は「銀行振り込み」と「代引き」のみ ・「銀行振り込み」の場合は請求先は顧客 ・「代引き」の場合は配送先 // Stock Check $any_out_of_stock = false; if (STOCK_CHECK == 'true') { for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { if (tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty'])) { $any_out_of_stock = true; } } // Out of Stock if ( (STOCK_ALLOW_CHECKOUT != 'true') && ($any_out_of_stock == true) ) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_CONFIRMATION); $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_2); //--------[ ここから追加 ]--------------------------------------------------- switch ($order->info['payment_method']) { //[ 代引きの場合、請求先情報に配送先情報を設定 ] case MODULE_PAYMENT_COD_TABLE_TEXT_TITLE: $billto = $sendto; $order->billing['firstname'] = $order->delivery['firstname']; $order->billing['lastname'] = $order->delivery['lastname']; $order->billing['company'] = $order->delivery['company']; $order->billing['street_address'] = $order->delivery['street_address']; $order->billing['suburb'] = $order->delivery['suburb']; $order->billing['city'] = $order->delivery['city']; $order->billing['postcode'] = $order->delivery['postcode']; $order->billing['state'] = $order->delivery['state']; $order->billing['country']['title'] = $order->delivery['country']['title']; $order->billing['country_id'] = $order->delivery['country_id']; $order->billing['zone_id'] = $order->delivery['zone_id']; $order->billing['telephone'] = $order->delivery['telephone']; $order->billing['format_id'] = $order->delivery['format_id']; break; //[ 銀行振込の場合請求先情報に顧客情報を設定 ] case MODULE_PAYMENT_MONEYORDER_TEXT_TITLE: $billto = '1'; $order->billing['firstname'] = $order->customer['firstname']; $order->billing['lastname'] = $order->customer['lastname']; $order->billing['company'] = $order->customer['company']; $order->billing['street_address'] = $order->customer['street_address']; $order->billing['suburb'] = $order->customer['suburb']; $order->billing['city'] = $order->customer['city']; $order->billing['postcode'] = $order->customer['postcode']; $order->billing['state'] = $order->customer['state']; $order->billing['country']['title'] = $order->customer['country']['title']; $order->billing['country_id'] = $order->customer['country_id']; $order->billing['zone_id'] = $order->customer['zone_if']; $order->billing['telephone'] = $order->customer['telephone']; $order->billing['format_id'] = $order->customer['format_id']; break; } //--------[ ここまで追加 ]--------------------------------------------------- _________________________________________________________________ 友達と24時間ホットライン「MSN メッセンジャー」、今すぐダウンロード! http://messenger.msn.co.jp