バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > 管理機能 > EC-CUBE2.13にてGoogle アナリティクスのEコマース設定がうまくできません

管理機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
mizuvan
投稿日時: 2016/6/7 17:02
対応状況: −−−
長老
登録日: 2013/3/26
居住地:
投稿: 253
EC-CUBE2.13にてGoogle アナリティクスのEコマース設定がうまくできません
EC-CUBE2.13にてGoogle アナリティクスのEコマース設定を行っています

下記のサイトをみながらチャレンジしているのですが、どういった部分が間違っているのでしょうか?

http://al-lucky.hatenablog.com/entry/2015/08/21/163215


赤の部分が追記部分です

<?php
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

require_once CLASS_EX_REALDIR . 'page_extends/LC_Page_Ex.php';

/**
 * ご注文完了 のページクラス.
 *
 * @package Page
 * @author LOCKON CO.,LTD.
 * @version $Id:LC_Page_Shopping_Complete.php 15532 2007-08-31 14:39:46Z nanasess $
 */
class LC_Page_Shopping_Complete extends LC_Page_Ex
{
    /**
     * Page を初期化する.
     *
     * @return void
     */
    public function init()
    {
        parent::init();
        $this->tpl_title = 'ご注文完了';
    }

    /**
     * Page のプロセス.
     *
     * @return void
     */
    public function process()
    {
        parent::process();
        $this->action();
        $this->sendResponse();
        // プラグインなどで order_id を取得する場合があるため,  ここで unset する
        unset($_SESSION['order_id']);
    }

   public function action()
    {
        $this->arrInfo = SC_Helper_DB_Ex::sfGetBasisData();

        //コンバージョンタグ対応用
        if (is_numeric($_SESSION['order_id'])) {
            $objPurchase = new SC_Helper_Purchase_Ex();
            $this->arrOrder = $objPurchase->getOrder($_SESSION['order_id']);
            $this->arrOrderDetail = $objPurchase->getOrderDetail($_SESSION['order_id']);
        }
    
    /**
     * Page のアクション.
     *
     * @return void
     */
    public function action()
    {
        $this->arrInfo = SC_Helper_DB_Ex::sfGetBasisData();

    // 注文IDを取得
    $this->order_id = $_SESSION['order_id'];

    // 小計価格(税抜)の取得
    $objQuery = SC_Query::getSingletonInstance();
    $col = 'subtotal, tax';
    $table = 'dtb_order';
    $where = 'order_id = ?';
    $arrval = array($this->order_id);
    $arrRet = $objQuery->select($col, $table, $where, $arrval);
    $this->subtotal_exctax = $arrRet[0]['subtotal'] - $arrRet[0]['tax'];

    unset($_SESSION['order_id']);
}


    /**
     * 決済モジュールから遷移する場合があるため, トークンチェックしない.
     */
    public function doValidToken()
    {
        // nothing.
    }
}


----------------

mizuvan
投稿日時: 2016/6/8 10:11
対応状況: −−−
長老
登録日: 2013/3/26
居住地:
投稿: 253
Re: EC-CUBE2.13にてGoogle アナリティクスのEコマース設定がうまくできません
初歩的な話しですみません

public function action()

が2回あるとダメでしょうか?


----------------

スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


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

統計情報

総メンバー数は89,348名です
総投稿数は110,082件です

投稿数ランキング

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