[解決済み] 基本テーマ以外の商品詳細ページに受信コメントを表示したい!

フォーラム テンプレート(テーマ) [解決済み] 基本テーマ以外の商品詳細ページに受信コメントを表示したい!

  • このトピックには4件の返信、2人の参加者があり、最後にonlydokiにより10年、 12ヶ月前に更新されました。
5件の投稿を表示中 - 1 - 5件目 (全5件中)
  • 投稿者
    投稿
  • #52698
    onlydoki
    参加者

    動作に関するご質問の場合は必ずご記入ください。


    WordPress のバージョン:3.5.1

    Welcart のバージョン:Version 1.3.1.1304012

    ご利用のテーマ:templx welcart-05

    症状を確認したブラウザ:

    サーバー(会社名、サービス名):lolipop

    SSLの利用: 無し | 専用SSL | 共用SSL

    WordPress のパーマリンク設定:


    こんにちは.

    世話になっています.

    商品詳細ページにコメント機能を追加したいですが, 難しいです.

    前の質問と返事を参考してさまざまな方法で試みたんですが失敗しました.

    現在使用中のテーマ編集->wc_item_single.php 選択すれば下のような内容です.


    <?php

    /*

    *

    * <meta content=”charset=UTF-8″>

    * @package Welcart

    * @subpackage Welcart Default Theme

    */

    ?>

    <?php

    $tx_template_first_entrepot = get_option(‘tx_template_first_update’);

    $tx_template_all_entrepot = get_option(‘tx_template_all_update’);

    $tx_template_sub_entrepot = get_option(‘tx_template_sub_update’);

    $tx_template_free_entrepot = get_option(‘tx_template_free_update’);

    if(isset($_SERVER)){

    $tx_smart = $_SERVER;

    if (preg_match(“/Android/”,$tx_smart)) {

    if (preg_match(“/Mobile/”,$tx_smart)) {

    if ($tx_template_first_entrepot == ‘Android’){

    include(‘smart-wc/wc_item_single.php’);

    } else { include(‘pc-wc/wc_item_single.php’); }

    } else {

    if ($tx_template_first_entrepot == ‘Android’){

    include(‘tablet-wc/wc_item_single.php’);

    } else { include(‘pc-wc/wc_item_single.php’); }

    }

    }elseif (preg_match(“/iPad/”,$tx_smart)) {

    if ($tx_template_first_entrepot == ‘iPad’){

    include(‘tablet-wc/wc_item_single.php’);

    }else{ include(‘pc-wc/wc_item_single.php’); }

    }elseif (preg_match(“/iPhone/”,$tx_smart)) {

    if ($tx_template_first_entrepot == ‘iPhone’){

    include(‘smart-wc/wc_item_single.php’);

    }else{ include(‘pc-wc/wc_item_single.php’); }

    }else{ include(‘pc-wc/wc_item_single.php’); }

    }

    ?>


    ある部分にどんな文字を追加しなければなりませんか?

    もし思って, デフォルトテーマの wc_item_single.phpも修正したんですが結果は失敗です.

    煩わしいですがよろしくお願いします. m(_ _)m

    #66617
    komokomo
    参加者

    作成者に問い合わせたら如何ですか?

    私も使用してますがファイルが全然違いますよ。

    pc-wcと言うフォルダがあると思うのでその中のwc_item_single.phpですよ。

    #66618
    onlydoki
    参加者

    こんにちは, komokomo様の返事を見て FTPでフォルダを捜してまた試みました.

    他の方の返事で見たことを入力すれば,

    添付ファイルの絵のようにあんな文字が出力されています.

    もうまともになったファイルは捜したんですが, どの文字を入力するとコメントフォームが出ることでしょうか?

    煩わしいがもう一度お願いします. m(_ _)m

    [attachment=10240,243]

    #66619
    komokomo
    参加者

    ファイルは分かったのですよね?

    <?php comments_template( '', true ); ?>

    を入れてみてください。

    私はこれでOKでしたよ。

    #66620
    onlydoki
    参加者

    解決されました.

    心よりありがとうございます. m(_ _)m


    私のような素人の方のため->

    必ず設置したテーマの wc_single_item.php ファイルを修正してください.

5件の投稿を表示中 - 1 - 5件目 (全5件中)
  • このトピックに返信するにはログインが必要です。