EC-CUBEバージョン : 2.3.4
PHPバージョン : PHP 5.2.8
DBバージョン : MySQL 5.1.32
---------------------------------------------------
モバイルサイトの商品一覧ページに商品画像のサムネイルを表示する。
「\html\require.php」最後の方の
----------------------------------------------------------------------------------------------
header("Location: ". SC_Utils_Ex::sfRmDupSlash($url . $path));
exit;
----------------------------------------------------------------------------------------------
を
----------------------------------------------------------------------------------------------
/* resize_image.phpのときだけ、リダイレクト解除 */
if(!preg_match("/resize_image.php/i", $path)) {
header("Location: ". SC_Utils_Ex::sfRmDupSlash($url . $path));
exit;
}
-----------------------------------------------------------------------------------------------
の様に修正する。
そして、\data\Smarty\templates\quilt\mobile\products\list.tplの
サムネイル表示したい個所に、以下のようなタグを挿入する。
-----------------------------------------------------------------------------------------------
<!--▼携帯にサムネイルを表示する ここから-->
<img src="<!--{$smarty.const.IMAGE_SAVE_URL|sfTrimURL}-->/<!--{$arrProduct.main_list_image}-->" alt="<!--{$arrProduct.name|escape}-->" width="100">
<!--▲携帯にサムネイルを表示する ここまで-->
-----------------------------------------------------------------------------------------------
PHPバージョン : PHP 5.2.8
DBバージョン : MySQL 5.1.32
---------------------------------------------------
モバイルサイトの商品一覧ページに商品画像のサムネイルを表示する。
「\html\require.php」最後の方の
----------------------------------------------------------------------------------------------
header("Location: ". SC_Utils_Ex::sfRmDupSlash($url . $path));
exit;
----------------------------------------------------------------------------------------------
を
----------------------------------------------------------------------------------------------
/* resize_image.phpのときだけ、リダイレクト解除 */
if(!preg_match("/resize_image.php/i", $path)) {
header("Location: ". SC_Utils_Ex::sfRmDupSlash($url . $path));
exit;
}
-----------------------------------------------------------------------------------------------
の様に修正する。
そして、\data\Smarty\templates\quilt\mobile\products\list.tplの
サムネイル表示したい個所に、以下のようなタグを挿入する。
-----------------------------------------------------------------------------------------------
<!--▼携帯にサムネイルを表示する ここから-->
<img src="<!--{$smarty.const.IMAGE_SAVE_URL|sfTrimURL}-->/<!--{$arrProduct.main_list_image}-->" alt="<!--{$arrProduct.name|escape}-->" width="100">
<!--▲携帯にサムネイルを表示する ここまで-->
-----------------------------------------------------------------------------------------------



コメントする