質問 > その他 > 商品詳細画面の関連商品について。 |
その他
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
hunterman2 |
投稿日時: 2010/11/18 7:31
対応状況: −−−
|
常連 ![]() ![]() 登録日: 2010/6/5 居住地: 投稿: 66 |
商品詳細画面の関連商品について。 [EC-CUBE] V 2.4.4
[レンタルサーバ] infitoPLUS [OS] Windows XP [PHP] Version 5.2.9-2 [データベース] Mysql v 5.0.83 [ブラウザ] Fire fox バージョン3.6.2 FFやChrome等のブラウザでは、起きない問題なのですが、IE(Ver7)で見ると下記の問題が生じます。 商品詳細ページの関連商品の画像(文字)のリンクをクリックすると、 商品登録の際に関連付けした商品ページに飛ばずに、商品のサブイメージの最後の写真が表示されてしまいます。 FFですと、ちゃんと指定したリンク先へ飛んでくれます。 detail.tplをデフォルトの物と見比べてみましたが、問題ないように思うのですが、原因が分かりません。 どなたかお知恵をお貸し下さい。 --detail.tpl---- <!--▼サブコメントここから--> <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}--> <!--{assign var=key value="sub_title`$smarty.section.cnt.index+1`"}--> <div class="subarea"> <!--{assign var=ckey value="sub_comment`$smarty.section.cnt.index+1`"}--> <!--拡大写真がある場合ここから--> <!--{assign var=key value="sub_image`$smarty.section.cnt.index+1`"}--> <!--{assign var=lkey value="sub_large_image`$smarty.section.cnt.index+1`"}--> <!--{if $arrFile[$key].filepath != ""}--> <div class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br}--></div> <div class="subphotoimg"> <!--{if $arrFile[$lkey].filepath != ""}--> <ul><li> <a href="<!--{$arrFile[$lkey].filepath}-->" class="colorbox"rel="example1"> <!--{/if}--> <!--サブ画像--> <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrProduct.name|escape}-->" <!--{* width="<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->" height="<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->" />*}--> <!--{if $arrFile[$lkey].filepath != ""}--> </a> </li> </ul> <!--{/if}--> </div> <!--拡大写真がある場合ここまで--> <!--{else}--> <p><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br}--></p> <!--{/if}--> </div> <!--{/section}--> <!--▼オススメ商品ここから--> <!--{if $arrRecommend}--> <div id="whoboughtarea"> <h2><img src="<!--{$TPL_DIR}-->img/products/relatedgunbar.gif" width="650" height="130" alt="オススメ商品" /></h2> <div class="whoboughtblock"> <!--{section name=cnt loop=$arrRecommend}--> <!--{if ($smarty.section.cnt.index % 2) == 0}--> <!--{if $arrRecommend[cnt].product_id}--> <!-- 左列 --> <div class="whoboughtleft"> <!--{if $arrRecommend[cnt].main_list_image != ""}--> <!--{assign var=image_path value="`$arrRecommend[cnt].main_list_image`"}--> <!--{else}--> <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}--> <!--{/if}--> <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"> <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=65&height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a> <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}--> <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}--> <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3> <p>価格<span class="mini">(TAX INC)</span>:<span class="price"> <!--{if $price02_min == $price02_max}--> <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> <!--{else}--> <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->?<!--{$price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> <!--{/if}-->円</span></p> <p class="mini"><!--{$arrRecommend[cnt].comment|escape|nl2br}--></p> </div> <!-- 左列 --> <!--{/if}--> <!--{/if}--> <!--{if ($smarty.section.cnt.index % 2) != 0}--> <!--{* assign var=nextCnt value=$smarty.section.cnt.index+1 *}--> <!--{if $arrRecommend[cnt].product_id}--> <!-- 右列 --> <div class="whoboughtright"> <!--{if $arrRecommend[cnt].main_list_image != ""}--> <!--{assign var=image_path value="`$arrRecommend[cnt].main_list_image`"}--> <!--{else}--> <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}--> <!--{/if}--> <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"> <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=65&height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a> <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}--> <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}--> <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3> <p>価格<span class="mini">(TAX INC)</span>:<span class="price"> <!--{if $price02_min == $price02_max}--> <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> <!--{else}--> <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->?<!--{$price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> <!--{/if}-->円</span></p> <p class="mini"><!--{$arrRecommend[cnt].comment|escape|nl2br}--></p> </div> <!-- 右列 --> <!--{/if}--> <!--{/if}--> <!--{if $smarty.section.cnt.last}--> </div> <!--{/if}--> <!--{/section}--> </div> <!--{/if}--> </div> |
AMUAMU |
投稿日時: 2010/11/19 1:11
対応状況: −−−
|
神 ![]() ![]() 登録日: 2009/5/2 居住地: 東京都 投稿: 2712 |
Re: 商品詳細画面の関連商品について。 ぱっと見、サブ画像のaタグの閉じタグが欠けていると思います。
タグの係り受けを確認されると良いと思います。
|
hunterman2 |
投稿日時: 2010/11/19 7:48
対応状況: 解決済
|
常連 ![]() ![]() 登録日: 2010/6/5 居住地: 投稿: 66 |
Re: 商品詳細画面の関連商品について。 AMUAMU さま、ご指摘ありがとうございました。
ご指摘の通り、aタグの位置が悪かったです。 <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrProduct.name|escape}-->" <!--{* width="<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->" height="<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->" />*}--> <!--{if $arrFile[$lkey].filepath != ""}--> </a> ↓ <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrProduct.name|escape}-->"></a> <!--{* width="<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->" height="<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->" />*}--> <!--{if $arrFile[$lkey].filepath != ""}--> にて解決されました。 |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |