バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > フロント機能 > 追加した商品サブ画像が表示されません。

フロント機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
yuh
投稿日時: 2014/8/20 10:08
対応状況: −−−
登録日: 2013/1/9
居住地: 大阪
投稿: 1818
Re: 追加した商品サブ画像が表示されません。
detail.tplに

<!--{$arrProduct|@debug_print_var}-->
productsub_max;<!--{$smarty.const.PRODUCTSUB_MAX}-->

を追記すればarrProductとPRODUCTSUB_MAXの値がチェックできます。
myong
投稿日時: 2014/8/20 13:17
対応状況: −−−
半人前
登録日: 2014/8/19
居住地:
投稿: 17
値をチェックしました。
教えてくださったコードを追加したところ
このような値が返ってきました。

-------------------------------
Array (63)
product_id => "6"
name => "トップス"
maker_id => null
status => "1"
comment1 => null
comment2 => null
comment3 => "トップス,"
comment4 => null
comment5 => null
comment6 => null
note => null
main_list_comment => "トップス"
main_list_image => "08042125_53df7bce358ab.jpg"
main_comment => "<table> <tr> <td>Point1:</td> ..."
main_image => "noimage_main.png"
main_large_image => null
sub_title1 => null
sub_comment1 => null
sub_image1 => null
sub_large_image1 => null
sub_title2 => null
sub_comment2 => null
sub_image2 => "08042127_53df7c4e15e91.jpg"
sub_large_image2 => null
sub_title3 => null
sub_comment3 => null
sub_image3 => "08051559_53e080df42a0a.jpg"
sub_large_image3 => null
sub_title4 => null
sub_comment4 => null
sub_image4 => "08042128_53df7c7271c67.jpg"
sub_large_image4 => null
sub_title5 => null
sub_comment5 => "<table > <tr> <td>肩幅</td> ..."
sub_image5 => "08081625_53e47b847d8e9.gif"
sub_large_image5 => "08081654_53e48223ddef5.gif"
sub_title6 => null
sub_comment6 => null
sub_image6 => "08181805_53f1c1d3ad662.jpg"
sub_large_image6 => "08191659_53f303ee987d9.jpg"
del_flg => "0"
creator_id => "2"
create_date => "2014-08-04 21:29:04"
update_date => "2014-08-19 17:00:04"
deliv_date_id => null
product_code_min => "T-0001"
product_code_max => "T-0001"
price01_min => "250"
price01_max => "250"
price02_min => "250"
price02_max => "250"
stock_min => "1"
stock_max => "1"
stock_unlimited_min => "0"
stock_unlimited_max => "0"
point_rate => "0"
deliv_fee => null
class_count => "1"
maker_name => null
price01_min_inctax => 270
price01_max_inctax => 270
price02_min_inctax => 270
price02_max_inctax => 270 productsub_max;9
-----------------------------------------
myong
投稿日時: 2014/8/20 13:32
対応状況: −−−
半人前
登録日: 2014/8/19
居住地:
投稿: 17
確認致しました。
$arrProductの配列が、このように表示されました。
やはり、7枚目以降の画像が取得できていない状況です。
エラーログは出ておりません。
原因はなんでしょうか?
何度も質問にお応えくださいまして、ありがとうございます。

-----------------------
Array (63)
product_id => "6"
name => "トップス"
maker_id => null
status => "1"
comment1 => null
comment2 => null
comment3 => "トップス,"
comment4 => null
comment5 => null
comment6 => null
note => null
main_list_comment => "トップス"
main_list_image => "08042125_53df7bce358ab.jpg"
main_comment => "<table> <tr> <td>Point1:</td> ..."
main_image => "noimage_main.png"
main_large_image => null
sub_title1 => null
sub_comment1 => null
sub_image1 => null
sub_large_image1 => null
sub_title2 => null
sub_comment2 => null
sub_image2 => "08042127_53df7c4e15e91.jpg"
sub_large_image2 => null
sub_title3 => null
sub_comment3 => null
sub_image3 => "08051559_53e080df42a0a.jpg"
sub_large_image3 => null
sub_title4 => null
sub_comment4 => null
sub_image4 => "08042128_53df7c7271c67.jpg"
sub_large_image4 => null
sub_title5 => null
sub_comment5 => "<table > <tr> <td>肩幅</td> ..."
sub_image5 => "08081625_53e47b847d8e9.gif"
sub_large_image5 => "08081654_53e48223ddef5.gif"
sub_title6 => null
sub_comment6 => null
sub_image6 => "08181805_53f1c1d3ad662.jpg"
sub_large_image6 => "08191659_53f303ee987d9.jpg"
del_flg => "0"
creator_id => "2"
create_date => "2014-08-04 21:29:04"
update_date => "2014-08-19 17:00:04"
deliv_date_id => null
product_code_min => "T-0001"
product_code_max => "T-0001"
price01_min => "250"
price01_max => "250"
price02_min => "250"
price02_max => "250"
stock_min => "1"
stock_max => "1"
stock_unlimited_min => "0"
stock_unlimited_max => "0"
point_rate => "0"
deliv_fee => null
class_count => "1"
maker_name => null
price01_min_inctax => 270
price01_max_inctax => 270
price02_min_inctax => 270
price02_max_inctax => 270 productsub_max;9
------------------------------------------
yuh
投稿日時: 2014/8/20 13:54
対応状況: −−−
登録日: 2013/1/9
居住地: 大阪
投稿: 1818
Re: 値をチェックしました。

少々強引ですが、LC_Page_Products_Detail_Ex.phpに
下記のコードを追記すれば動くようになると思います。

    function action(){
        parent::action();
        $subdata = $this->getSubData($this->tpl_product_id);
        $this->arrProduct = array_merge($this->arrProduct,$subdata);
    }
    function getSubData($product_id){
        $objQuery =& SC_Query_Ex::getSingletonInstance();
        $cols = '
        sub_title7
        ,sub_comment7
        ,sub_image7
        ,sub_large_image7
        ,sub_title8
        ,sub_comment8
        ,sub_image8
        ,sub_large_image8
        ,sub_title9
        ,sub_comment9
        ,sub_image9
        ,sub_large_image9
        ,sub_title10
        ,sub_comment10
        ,sub_image10
        ,sub_large_image10
        ';
        return $objQuery->getRow($cols,'dtb_products','del_flg = 0 AND product_id = ?',array($product_id));
    }
myong
投稿日時: 2014/8/20 19:24
対応状況: −−−
半人前
登録日: 2014/8/19
居住地:
投稿: 17
ありがとうございます。
言われたようにコードを追記したところ無事に、表示できました。

本当にありがとうございます。
ご親切に、教えて頂き大変感謝致します。
« 1 (2)
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


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

統計情報

総メンバー数は88,284名です
総投稿数は109,688件です

投稿数ランキング

1
seasoft
7365
2
468
3217
3
AMUAMU
2712
4
nanasess
2303
5
umebius
2085
6
yuh
1818
7
h_tanaka
1610
8
red
1567
9
mcontact
1240
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
796
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.