バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > フロント機能 > 2.11.4のスマホサイトで新着商品を表示するには…

フロント機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
maruuuuuun
投稿日時: 2013/1/11 0:36
対応状況: −−−
半人前
登録日: 2012/2/12
居住地:
投稿: 22
2.11.4のスマホサイトで新着商品を表示するには…
表題の通り、2.11.4系のスマホサイトで「新着商品」を表示する場合は、どうすれば良いのでしょうか?

ちなみにPC用ではデフォルト機能である「“おすすめ商品”」を流用し、問題なく表示されている状態です。

同じような要領だとは思うのですが、フォルダ構成がイマイチ理解出来ず、ここでのご質問に至りました。

どうぞよろしくお願いいたします。
tshohei
投稿日時: 2013/1/11 5:38
対応状況: −−−
新米
登録日: 2011/9/3
居住地: 明石市
投稿: 9
Re: 2.11.4のスマホサイトで新着商品を表示するには…
PCと同じくオススメ商品からの流用でしたら、PCと同じくレイアウトにてブロックを使えば良いかと思いますが。
PCでのおすすめ商品もレイアウトにてブロックを設定することで表示されていますよね。

スマホサイトにおいては標準でトップにおすすめ商品のブロックがレイアウトにて指定されているかと思うのですが。

そういう問題じゃない?それとも何かの理由でブロックを使いたくないとかでしょうか?
maruuuuuun
投稿日時: 2013/1/12 1:04
対応状況: −−−
半人前
登録日: 2012/2/12
居住地:
投稿: 22
Re: 2.11.4のスマホサイトで新着商品を表示するには…
tshohei 様

お返事ありがとうございます。

http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=thread&topic_id=8800&forum=10&post_id=43663#forumpost43663

にスマホの場合でもデータベースの操作も必要とあったため、データベースの方を少し触ってみます。

また不明点あれば返信させていただくかもしれませんので、どうぞよろしくお願いいたします。
maruuuuuun
投稿日時: 2013/1/12 18:07
対応状況: −−−
半人前
登録日: 2012/2/12
居住地:
投稿: 22
Re: 2.11.4のスマホサイトで新着商品を表示するには…
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=thread&topic_id=8800&forum=10&post_id=43663#forumpost43663

を参考にデータベースの方に記述したのですが…ブロック内がやはり表示されません…。

PC用は … productFlag.tpl
スマホ用は … product_flag.tpl

データベースでこちらの「product_flag.tpl」のphp_pathに

「frontparts/bloc/product_flag.php」を記入するやり方では表示されないのでしょうか?

frontparts/bloc/product_flag.php を追加すると「テスト」とブロック内に挿入している文章すら表示されなくなってしまいます。

現状のdtb_blocの情報は…

■新商品紹介(PC用)
  device_type_id=1
  bloc_name ⇒ 新入荷商品
  tpl_path ⇒ productFlag.tpl
  filename ⇒ productFlag
  php_path ⇒ (未記入)

■新商品紹介(スマホ用)
  device_type_id=2
  bloc_name ⇒ 新入荷商品
  tpl_path ⇒ product_flag.tpl
  filename ⇒ product_flag
  php_path ⇒ frontparts/bloc/product_flag.php

です。

また新商品のブロック内に入れているソースはこうです。

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

テストテストテスト
<!--{if count($arrFlagProducts) > 0}-->
<!-- ▼新入荷商品 -->

<section id="product_flag_area" class="mainImageInit">
<h2>新入荷商品</h2>
<ul>
<!--{section name=cnt loop=$arrFlagProducts step=2}-->
<li id="mainImage<!--{$smarty.section.cnt.index}-->">
<div class="recommendblock clearfix"> <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrFlagProducts[cnt].main_list_image|sfNoImageMainList|h}-->&width=80&height=80" alt="<!--{$arrFlagProducts[cnt].name|h}-->" />
<div class="productContents">
<h3><a rel="external" href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrFlagProducts[cnt].product_id|u}-->">
<!--{$arrFlagProducts[cnt].name|h}-->
</a></h3>
<p class="mini comment">
<!--{$arrFlagProducts[cnt].comment|h|nl2br}-->
</p>
<!--{assign var=price01 value=`$arrFlagProducts[cnt].price01_min`}-->
<!--{assign var=price02 value=`$arrFlagProducts[cnt].price02_min`}-->
<!--{if $arrFlagProducts[cnt].price01_min > 0}-->
<p class="sale_price"><span class="mini">
<!--<span class="mini">-->
通常価格(税込):
<!--</span>-->
</span>
<!--{$price01|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
円</p>
<!--{/if}-->
<p class="sale_price"><span class="mini">
<!--<span class="mini">-->
販売価格(税込):
<!--</span>-->
</span><span class="price">
<!--{$price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
円</span></p>
</div>
</div>
</li>
<!--{assign var=cnt2 value=`$smarty.section.cnt.iteration*$smarty.section.cnt.step-1`}-->
<!--{if $arrFlagProducts[$cnt2]|count > 0}-->
<li id="mainImage<!--{$cnt2}-->">
<div class="recommendblock clearfix"> <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrFlagProducts[$cnt2].main_list_image|sfNoImageMainList|h}-->&width=80&height=80" alt="<!--{$arrFlagProducts[$cnt2].name|h}-->" />
<div class="productContents">
<h3><a rel="external" href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrFlagProducts[$cnt2].product_id|u}-->">
<!--{$arrFlagProducts[$cnt2].name|h}-->
</a></h3>
<p class="mini comment">
<!--{$arrFlagProducts[$cnt2].comment|h|nl2br}-->
</p>
<!--{assign var=price01 value=`$arrFlagProducts[$cnt2].price01_min`}-->
<!--{assign var=price02 value=`$arrFlagProducts[$cnt2].price02_min`}-->
<!--{if $arrFlagProducts[cnt].price01_min > 0}-->
<p class="sale_price"><span class="mini">
<!--<span class="mini">-->
通常価格(税込):
<!--</span>-->
</span>
<!--{$price01|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
円</p>
<!--{/if}-->
<p class="sale_price"><span class="mini">
<!--<span class="mini">-->
販売価格(税込):</span>
<!--</span>-->
<span class="price">
<!--{$price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
円</span></p>
</div>
</div>
</li>
<!--{/if}-->
<!--{/section}-->
</ul>
</section>
<!--{/if}-->
<!-- ▲新入荷商品 -->
<script type="application/javascript">
<!--//
$(function(){
$('#product_flag_area ul li').flickSlide({target:'#product_flag_area>ul', duration:5000});
});
//-->
</script>


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


以上、何度も恐れ入りますが、ご教授下さいますと幸いです。



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


 



ログイン


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

統計情報

総メンバー数は88,948名です
総投稿数は110,019件です

投稿数ランキング

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