バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

機能要望 > フロント機能 > 新入荷商品をブロックに表示したい

フロント機能

新規スレッドを追加する

| 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
ryukyu
投稿日時: 2008/9/8 17:41
対応状況: −−−
半人前
登録日: 2008/8/25
居住地:
投稿: 14
Re: 新入荷商品をブロックに表示したい
アドバイスありがとうございます。

では、こちらの機能を使用できるようにし、
モバイル版に変換できるようにしたいと思います。
rentamon
投稿日時: 2008/9/17 22:53
対応状況: −−−
常連
登録日: 2007/12/19
居住地:
投稿: 50
Re: 新入荷商品をブロックに表示したい
有用な情報ありがとうございます。
duckei様の記載の通りで完璧に動作しております。

質問の件ですが、productFlag.tplの価格表示の所が税抜きの価格になっている為、これを税込価格に変更したいのですがうまくいきません。
過去ログから
<!--{$arrFlagProducts[cnt].price02_min|number_format}-->

<!--{$arrFlagProducts[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
に変更してみましたが、変化が無いです。
大変申し訳ありませんがどちら様か解決策をご存じありませんか?
どうぞ宜しくお願いいたします。

tecotoco
投稿日時: 2008/9/17 23:20
対応状況: −−−
常連
登録日: 2008/9/13
居住地:
投稿: 42
Re: 新入荷商品をブロックに表示したい
以下のようにすると良いです。

<!--{if $arrFlagProducts[cnt].price02_min == $arrFlagProducts[cnt].price02_max}-->
<!--{$arrFlagProducts[cnt].price02_min|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{else}-->
<!--{$arrFlagProducts[cnt].price02_min|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->〜<!--{$arrFlagProducts[cnt].price02_max|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{/if}-->円(税込)

規格を利用してる場合の表示も加えてますので、不要であればその箇所は消すと良いですー。
rentamon
投稿日時: 2008/9/17 23:38
対応状況: −−−
常連
登録日: 2007/12/19
居住地:
投稿: 50
Re: 新入荷商品をブロックに表示したい
tecotoco 様

早速のご回答ありがとうございます。
ご指導していただいた方法にて表示出来ました。
ありがとうございました。
2525
投稿日時: 2008/9/22 11:14
対応状況: −−−
半人前
登録日: 2008/9/1
居住地:
投稿: 12
Re: 新入荷商品をブロックに表示したい
新入荷商品のブロックを追加することは成功したんですが
ここで、商品画像、商品登録日、コメント(の一部)などを表示したい場合どのようにしたら良いでしょうか?

商品画像は「オススメ」とかと同じ感じかなぁ・・・?
と想像してオススメのブロックからコピってみましたが

案の定ノーイメージ(グレーの四角)になってしまいました。

是非、ご教授くださいませ。
tonton
投稿日時: 2008/10/1 22:50
対応状況: −−−
仙人
登録日: 2008/8/14
居住地:
投稿: 437
Re: 新入荷商品をブロックに表示したい
tocotoco様

良い情報をありがとうございます。
私も便乗して早速使わせて頂いたのですが、こちらはなぜか、円(税込)というところだけ訂正されて、金額は税抜きになってしまいます。

何か間違ってますでしょうか。
環境は2.3RC1です。


全体のソースは、下記のようになっています。

<table width="220" border="0" cellspacing="0" cellpadding="0" summary=" ">
<tr valign="top">
<td colspan="3"><img src="<!--{$TPL_DIR}--><!--{$statusName}-->" width="65" height="17" alt="<!--{$statusName}-->" class="r5" />の商品
</td>
</tr>
<tr>
<td colspan="3" height="10"></td>
</tr>
<!--{section name=cnt loop=$arrFlagProducts}-->
<tr valign="top">

<td width="60" align="left" valign="middle">
<span style=margin-left:20;><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrFlagProducts[cnt].product_id}-->">
<img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$arrFlagProducts[cnt].main_image|sfRmDupSlash}-->&width=60&height=60" alt="">
</a></span>
</td>
<td width="160">
<span class="fs12"><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrFlagProducts[cnt].product_id}-->">
<font size=-1><!--{$arrFlagProducts[cnt].name}--></font></a>
<a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--$arrFlagProducts[cnt].product_id}-->"></a></span><br>
<!--{if $arrFlagProducts[cnt].price02_min == $arrFlagProducts[cnt].price02_max}-->
<!--{$arrFlagProducts[cnt].price02_min|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{else}-->
<!--{$arrFlagProducts[cnt].price02_min|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->〜<!--{$arrFlagProducts[cnt].price02_max|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{/if}-->円(税込)
</td>
</tr>
<!--{/section}-->
</table>
引用:

tecotocoさんは書きました:
以下のようにすると良いです。

<!--{if $arrFlagProducts[cnt].price02_min == $arrFlagProducts[cnt].price02_max}-->
<!--{$arrFlagProducts[cnt].price02_min|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{else}-->
<!--{$arrFlagProducts[cnt].price02_min|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->〜<!--{$arrFlagProducts[cnt].price02_max|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{/if}-->円(税込)

規格を利用してる場合の表示も加えてますので、不要であればその箇所は消すと良いですー。
tecotoco
投稿日時: 2008/10/2 0:31
対応状況: −−−
常連
登録日: 2008/9/13
居住地:
投稿: 42
Re: 新入荷商品をブロックに表示したい
以下を金額のところに書いてみたらどうなりますか?

<!--{if $arrFlagProducts[cnt].price02_min == $arrFlagProducts[cnt].price02_max}-->
<!--{$arrFlagProducts[cnt].price02_min|number_format}-->
<!--{else}-->
<!--{$arrFlagProducts[cnt].price02_min|number_format}-->〜<!--{$arrFlagProducts[cnt].price02_max|number_format}-->
<!--{/if}-->円(税込)

お試し後にどうなったか教えて貰えたら嬉しいですー丶(゚∀゚)ノ
tonton
投稿日時: 2008/10/2 1:28
対応状況: −−−
仙人
登録日: 2008/8/14
居住地:
投稿: 437
Re: 新入荷商品をブロックに表示したい
tecotocoさん

早速レスいただいてありがとうございます。
トップ、一覧、詳細ともにメインブロックとサイドブロックで試してみましたが、やはり表示は税抜き価格になっています。
エラーなどは表示されていませんので、読み込みはしているようですが、、、
他にできている方がいるとすると、一旦格納した値がクリアにならず、まだ、持っているのかな?と想像しますが、詳細は分かりません。すみません。

試せることがあれば、どんどん申し付けてください。
tecotoco
投稿日時: 2008/10/2 3:48
対応状況: −−−
常連
登録日: 2008/9/13
居住地:
投稿: 42
Re: 新入荷商品をブロックに表示したい
/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_ProductFlag.php
のファイル内の、40行目辺りの以下の内容がなかったりしませんかー?ヽ(・∀・)ノ

		// 基本情報を渡す
		$objSiteInfo = new SC_SiteInfo();
		$this->arrInfo = $objSiteInfo->data;


このフォーラム、フォントの色変更の仕方が判らないんですがどうやって色付けするんですか?

ちょと間違えたので書き直し。。。コソコソ


    function process() {
		if (defined("MOBILE_SITE") && MOBILE_SITE) {
			$objView = new SC_MobileView();
		} else {
			$objView = new SC_SiteView();
			}
		$objSiteInfo = $objView->objSiteInfo;

		// 基本情報を渡す
		$objSiteInfo = new SC_SiteInfo();
		$this->arrInfo = $objSiteInfo->data;
tonton
投稿日時: 2008/10/2 10:32
対応状況: −−−
仙人
登録日: 2008/8/14
居住地:
投稿: 437
Re: 新入荷商品をブロックに表示したい
tecotocoさん

こんにちは。
コードを入れてみましたが、表示は変わらないようでした。

function process() {

の直下と、ちょうど40行目とどのあたりに入れるのか分からなかったので、両方試してみましたが、ダメでした;


ちなみに40行目あたりまでは、こういうソースになっています。

<?php

// {{{ requires
require_once(CLASS_PATH . "pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php");

/**
* productStatus のページクラス.
*
* @package Page
*/
class LC_Page_FrontParts_Bloc_ProductFlag extends LC_Page_FrontParts_Bloc {

// }}}
// {{{ functions

/**
* Page を初期化する.
*
* @return void
*/
function init() {
parent::init();
$bloc_file = 'productFlag.tpl';
$this->setTplMainpage($bloc_file);
}

/**
* Page のプロセス.
*
* @return void
*/
function process() {


$objQuery = new SC_Query();

//検索したい商品のステータスを設定
//NEW→1, 残りわずか→2, ポイント2倍→3, オススメ→4, 限定品→5
$productFlag = 1;

//検索する商品のステータスをランダムに決定し、表示させたい場合は以下のコメントを外してください。
//$id_count = $objQuery->count(mtb_status);
//$productFlag = rand(1,$id_count);

$this->statusName =$objQuery->get("mtb_status_image", "name", "id={$productFlag}");

//表示する商品の件数
$listCount = 3;
« 1 2 3 4 (5) 6 7 8 »
| 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


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

統計情報

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

投稿数ランキング

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