バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > フロント機能 > 2.13系メール便の対応について

フロント機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
harusame
投稿日時: 2014/8/4 11:42
対応状況: −−−
半人前
登録日: 2014/7/30
居住地: 奈良
投稿: 27
Re: 2.13系メール便の対応について
ありがとうございます。確認を致しました。

データベース上の設定確認でよろしかったのでしょうか。

getCartListから帰ってくるデータにmail_deliver_enabledが入っているのか、
どちらを確認すべきかわからなかった為、
長文となってしまいますが、順に記載させていただこうと思います。
申し訳ございません。


設定につきましては、

●dtb_products内に、
┣名前:mail_deliver_enabled
┣データ型:SMALLINT
┣長さ/値:6
┣デフォルト値:ユーザー定義 0
┗その他項目:記入なし

上記のようにカラムを増やしております。


●/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php内に、

public function lfInitFormParam(&$objFormParam, $arrPost)
{
$objFormParam->addParam('商品ID', 'product_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
$objFormParam->addParam('商品名', 'name', STEXT_LEN, 'KVa', array('EXIST_CHECK', 'SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
$objFormParam->addParam('商品カテゴリ', 'category_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
$objFormParam->addParam('公開・非公開', 'status', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
$objFormParam->addParam('商品ステータス', 'product_status', INT_LEN, 'n', array('EXIST_CHECK', 'MAX_LENGTH_CHECK'));
$objFormParam->addParam('メール便対応', 'mail_deliver_enabled', INT_LEN, 'an', array('SPTAB_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
--------以下省略--------

上記のように「商品ステータス」の下に追加しました。

そして、

●/data/mtb_constants_init.php内に、

/** 1:メール便対応 0:メール便非対応 */
define('MAIL_DELIVER_DISABLED', 0);

上記を追加

●/html/install/sql/insert_data.sql内に、

INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('MAIL_DELIVER_ENABLED', '1', 1603, 'メール便対応');
INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('MAIL_DELIVER_DISABLED', '0', 1603, 'メール便非対応');

上記クエリを追加

●mtb_constantsに上記クエリを実行し追加

●mtb_constantsキャッシュを削除

●/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php内に、

public function lfSetViewParam_InputPage(&$objUpFile, &$objDownFile, &$arrForm)
{
// カテゴリマスターデータ取得
$objDb = new SC_Helper_DB_Ex();
list($this->arrCatVal, $this->arrCatOut) = $objDb->sfGetLevelCatList(false);

if (isset($arrForm['category_id']) && !is_array($arrForm['category_id'])) {
$arrForm['category_id'] = SC_Utils_Ex::jsonDecode($arrForm['category_id']);
}
$this->tpl_json_category_id = !empty($arrForm['category_id']) ? SC_Utils_Ex::jsonEncode($arrForm['category_id']) : SC_Utils_Ex::jsonEncode(array());
if ($arrForm['status'] == '') {
$arrForm['status'] = DEFAULT_PRODUCT_DISP;
}
if($arrForm['mail_deliver_enabled'] == '') {
$arrForm['mail_deliver_enabled'] = MAIL_DELIVER_DISABLED;
}
if ($arrForm['product_type_id'] == '') {
$arrForm['product_type_id'] = DEFAULT_PRODUCT_DOWN;
}
--------以下省略--------

上記のように「status」の下に追加しました。

●/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php内に、

public function lfRegistProduct(&$objUpFile, &$objDownFile, $arrList)
{
$objQuery =& SC_Query_Ex::getSingletonInstance();
$objDb = new SC_Helper_DB_Ex();

// 配列の添字を定義
$checkArray = array('name', 'status',
'main_list_comment', 'main_comment',
'deliv_fee', 'comment1', 'comment2', 'comment3',
'comment4', 'comment5', 'comment6',
'sale_limit', 'deliv_date_id', 'maker_id', 'note');
$arrList = SC_Utils_Ex::arrayDefineIndexes($arrList, $checkArray);

// INSERTする値を作成する。
$sqlval['name'] = $arrList['name'];
$sqlval['status'] = $arrList['status'];
$sqlval['mail_deliver_enabled'] = $arrList['mail_deliver_enabled'];
$sqlval['main_list_comment'] = $arrList['main_list_comment'];
$sqlval['main_comment'] = $arrList['main_comment'];
$sqlval['comment1'] = $arrList['comment1'];
$sqlval['comment2'] = $arrList['comment2'];
$sqlval['comment3'] = $arrList['comment3'];
$sqlval['comment4'] = $arrList['comment4'];
$sqlval['comment5'] = $arrList['comment5'];
$sqlval['comment6'] = $arrList['comment6'];
$sqlval['deliv_date_id'] = $arrList['deliv_date_id'];
$sqlval['maker_id'] = $arrList['maker_id'];
$sqlval['note'] = $arrList['note'];
$sqlval['update_date'] = 'CURRENT_TIMESTAMP';
$sqlval['creator_id'] = $_SESSION['member_id'];
$arrRet = $objUpFile->getDBFileList();
$sqlval = array_merge($sqlval, $arrRet);
--------以下省略--------

上記のように「status」の下に追加しました。


以上のような設定を行っています。



※こちらに記入しながら確認していましたところ、下記に疑問を感じ修正を行いました。

・/data/mtb_constants_init.php内の、

/** 1:メール便対応 0:メール便非対応 */
define('MAIL_DELIVER_DISABLED', 0);

上記から下記に訂正

/** 1:メール便対応 0:メール便非対応 */
define('MAIL_DELIVER_ENABLED', 1);
define('MAIL_DELIVER_DISABLED', 0);



以上となっております。

誤りがございましたら、ご指摘いただければ幸いです。
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   2.13系メール便の対応について harusame 2014/7/30 17:05
     Re: 2.13系メール便の対応について bucchi 2014/8/3 14:21
       Re: 2.13系メール便の対応について harusame 2014/8/3 18:11
         Re: 2.13系メール便の対応について yuh 2014/8/3 20:59
         » Re: 2.13系メール便の対応について harusame 2014/8/4 11:42
             Re: 2.13系メール便の対応について yuh 2014/8/4 13:50
               Re: 2.13系メール便の対応について harusame 2014/8/4 17:25
                 Re: 2.13系メール便の対応について yuh 2014/8/4 17:35
                   Re: 2.13系メール便の対応について harusame 2014/8/4 18:56
                     Re: 2.13系メール便の対応について yuh 2014/8/4 21:35
                       Re: 2.13系メール便の対応について harusame 2014/8/5 15:09
                         Re: 2.13系メール便の対応について yuh 2014/8/5 15:33
                           Re: 2.13系メール便の対応について harusame 2014/8/5 16:00
                             Re: 2.13系メール便の対応について yuh 2014/8/5 16:10
                               Re: 2.13系メール便の対応について harusame 2014/8/5 17:07
                                 Re: 2.13系メール便の対応について yuh 2014/8/5 17:36
                                   Re: 2.13系メール便の対応について harusame 2014/8/5 19:01
                                     Re: 2.13系メール便の対応について yuh 2014/8/5 21:36
                                       Re: 2.13系メール便の対応について harusame 2014/8/5 23:47
                                         Re: 2.13系メール便の対応について yuh 2014/8/5 23:58
                                           Re: 2.13系メール便の対応について harusame 2014/8/9 10:39
                                             Re: 2.13系メール便の対応について yuh 2014/8/9 19:12
                                               Re: 2.13系メール便の対応について harusame 2014/8/10 11:06
                                                 Re: 2.13系メール便の対応について harusame 2014/8/10 11:34
                                                   Re: 2.13系メール便の対応について harusame 2014/8/10 11:50
                                                     Re: 2.13系メール便の対応について yuh 2014/8/10 12:17
                                                       Re: 2.13系メール便の対応について harusame 2014/8/10 12:28
                                                         Re: 2.13系メール便の対応について harusame 2014/8/10 13:32
                                                           Re: 2.13系メール便の対応について yuh 2014/8/10 13:44
                                                             Re: 2.13系メール便の対応について harusame 2014/8/10 14:04
                                                               Re: 2.13系メール便の対応について harusame 2014/12/16 15:53

 



ログイン


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

統計情報

総メンバー数は90,108名です
総投稿数は110,315件です

投稿数ランキング

1
seasoft
7369
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1681
8
red
1571
9
mcontact
1351
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.