2007/8/17 金曜日
EC-CUBE 会員登録時付与ポイントが付与されない
EC-CUBEで、会員登録時付与ポイントを登録しているのに会員登録時に付与されない場合の対処方法です。
(EC-CUBEバージョン 1.3.1aと1.3.3で確認)
/html/entry/index.phpの232行目辺りの
/* secret_keyは、テーブルで重複許可されていない場合があるので、 本会員登録では利用されないがセットしておく。 */ $arrRegist["secret_key"] = $uniqid; // 会員登録キー $arrRegist["create_date"] = "now()"; // 作成日 $arrRegist["update_date"] = "now()"; // 更新日 $arrRegist["first_buy_date"] = ""; // 最初の購入日
の下に
// 会員登録時付与ポイント
$point = $objConn->getOne("SELECT welcome_point FROM dtb_baseinfo");
$arrRegist["point"] = $point;
を追加する事で付与されるようになります。
モバイル版も利用している場合には、 /html/mobile/entry/index.phpの354行目辺りの
$arrRegist["secret_key"] = $uniqid; // 仮登録ID発行 $arrRegist["create_date"] = "now()"; // 作成日 $arrRegist["update_date"] = "now()"; // 更新日 $arrRegist["first_buy_date"] = ""; // 最初の購入日
の下に同様に
// 会員登録時付与ポイント
$point = $objConn->getOne("SELECT welcome_point FROM dtb_baseinfo");
$arrRegist["point"] = $point;
を追加してください。
Filed under: EC-CUBE — jun 10:12:23