| 質問 > フロント機能 > 会員登録の流れを飛ばしたい |
フロント機能
| フラット表示 | 前のトピック | 次のトピック |
| 投稿者 | スレッド |
|---|---|
| jyokobit |
投稿日時: 2012/2/2 19:10
対応状況: −−−
|
新米 ![]() ![]() 登録日: 2012/2/2 居住地: 投稿: 1 |
会員登録の流れを飛ばしたい 会員登録の流れを省きたい。
皆様よろしくお願いいたします。 当方初心者で他のHPなどを見てカスタマイズしたのですが どうも上手くいきません。 サーバー:ヘテムル バージョン:2.11.4 参考URLhttp://ugatria.co.jp/deblog/?p=49 上記のURLを参考にしてやってみたのですが php初心者の自分には難しく質問させていただきました。 上記URLをみてのfunction action()内編集後のソースです。 function action() { $objSiteSess = new SC_SiteSession_Ex(); $objCartSess = new SC_CartSession_Ex(); $objCustomer = new SC_Customer_Ex(); $objCookie = new SC_Cookie_Ex(); $objPurchase = new SC_Helper_Purchase_Ex(); $objFormParam = new SC_FormParam_Ex(); $nonmember_mainpage = 'shopping/nonmember_input.tpl'; $nonmember_title = 'お客様情報入力'; $this->tpl_uniqid = $objSiteSess->getUniqId(); $objPurchase->verifyChangeCart($this->tpl_uniqid, $objCartSess); $this->cartKey = $objCartSess->getKey(); // ログイン済みの場合は次画面に遷移 if ($objCustomer->isLoginSuccess(true)) { SC_Response_Ex::sendRedirect( $this->getNextlocation($this->cartKey, $this->tpl_uniqid, $objCustomer, $objPurchase, $objSiteSess)); exit; } // 非会員かつ, ダウンロード商品の場合はエラー表示 else { if ($this->cartKey == PRODUCT_TYPE_DOWNLOAD) { SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, $objSiteSess, false, "ダウンロード商品を含むお買い物は、会員登録が必要です。<br/>" . "お手数ですが、会員登録をお願いします。"); exit; } } switch ($this->getMode()) { // ログイン実行 case 'login': $this->tpl_mainpage = $nonmember_mainpage; $this->tpl_title = $nonmember_title; $this->lfInitParam($objFormParam); // ※breakなし // お客様情報入力ページの表示 case 'nonmember': $this->tpl_mainpage = $nonmember_mainpage; $this->tpl_title = $nonmember_title; $this->lfInitParam($objFormParam); // ※breakなし default: $this->setFormParams($objFormParam, $objPurchase, $this->tpl_uniqid); $objPurchase->unsetShippingTemp(); } // 記憶したメールアドレスを取得 $this->tpl_login_email = $objCookie->getCookie('login_email'); if (!SC_Utils_Ex::isBlank($this->tpl_login_email)) { $this->tpl_login_memory = "1"; } // 入力値の取得 $this->arrForm = $objFormParam->getFormParamList(); // 携帯端末IDが一致する会員が存在するかどうかをチェックする。 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_MOBILE) { $this->tpl_valid_phone_id = $objCustomer->checkMobilePhoneId(); } } ご指導お願いいたします。 |
| フラット表示 | 前のトピック | 次のトピック |
| 題名 | 投稿者 | 日時 |
|---|---|---|
| » |
jyokobit | 2012/2/2 19:10 |
| |
AMUAMU | 2012/2/3 20:07 |
どうか教えて下さい!



