source: branches/version-2_5-dev/data/Smarty/templates/default/detail.tpl @ 18830

Revision 18830, 27.7 KB checked in by nanasess, 14 years ago (diff)

商品種別によってカートを分ける(#823)

  • dtb_products_class.down を使用した暫定的な対応
  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
5 *
6 * http://www.lockon.co.jp/
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 *}-->
22<script type="text/javascript" src="<!--{$TPL_DIR}-->jquery.fancybox/jquery.mousewheel-3.0.2.pack.js"></script>
23<script type="text/javascript" src="<!--{$TPL_DIR}-->jquery.fancybox/jquery.fancybox-1.3.1.pack.js"></script>
24<link rel="stylesheet" href="<!--{$TPL_DIR}-->jquery.fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />
25<script type="text/javascript">//<![CDATA[
26// 規格2に選択肢を割り当てる。
27function fnSetClassCategories(form, classcat_id2_selected) {
28    sele1 = form.classcategory_id1;
29    sele2 = form.classcategory_id2;
30
31    if (sele1) {
32        if (sele2) {
33            // 規格2の選択肢をクリア
34            count = sele2.options.length;
35            for(i = count; i >= 0; i--) {
36                sele2.options[i] = null;
37            }
38
39            // 規格2に選択肢を割り当てる
40            classcats = classCategories[sele1.value];
41            i = 0;
42            for (var classcat_id2_key in classcats) {
43                sele2.options[i] = new Option(classcats[classcat_id2_key].name, classcat_id2_key);
44                if (classcat_id2_key == classcat_id2_selected) {
45                    sele2.options[i].selected = true;
46                }
47                i++;
48            }
49        }
50        fnCheckStock(form);
51    }
52}
53function fnCheckStock(form) {
54    classcat_id1 = form.classcategory_id1.value;
55    classcat_id2 = form.classcategory_id2 ? form.classcategory_id2.value : 0;
56    classcat2 = classCategories[classcat_id1][classcat_id2];
57
58    // 商品コード
59    eleDefault = document.getElementById('product_code_default');
60    eleDynamic = document.getElementById('product_code_dynamic');
61    if (
62           classcat2
63        && typeof classcat2.product_code != 'undefined'
64    ) {
65        eleDefault.style.display = 'none';
66        eleDynamic.innerHTML = classcat2.product_code;
67    } else {
68        eleDefault.style.display = '';
69        eleDynamic.innerHTML = '';
70    }
71
72    // 在庫(品切れ)
73    eleDefault = document.getElementById('cartbtn_default');
74    eleDynamic = document.getElementById('cartbtn_dynamic');
75    if (
76           classcat2
77        && classcat2.stock_find === false
78    ) {
79        eleDefault.style.display = 'none';
80        eleDynamic.innerHTML = '申し訳ございませんが、只今品切れ中です。';
81    } else {
82        eleDefault.style.display = '';
83        eleDynamic.innerHTML = '';
84    }
85
86    // 通常価格
87    eleDefault = document.getElementById('price01_default');
88    eleDynamic = document.getElementById('price01_dynamic');
89    if (eleDefault && eleDynamic) {
90        if (
91               classcat2
92            && typeof classcat2.price01 != 'undefined'
93            && String(classcat2.price01).length >= 1
94        ) {
95            eleDefault.style.display = 'none';
96            eleDynamic.innerHTML = classcat2.price01;
97        } else {
98            eleDefault.style.display = '';
99            eleDynamic.innerHTML = '';
100        }
101    }
102
103    // 販売価格
104    eleDefault = document.getElementById('price02_default');
105    eleDynamic = document.getElementById('price02_dynamic');
106    if (
107           classcat2
108        && typeof classcat2.price02 != 'undefined'
109        && String(classcat2.price02).length >= 1
110    ) {
111        eleDefault.style.display = 'none';
112        eleDynamic.innerHTML = classcat2.price02;
113    } else {
114        eleDefault.style.display = '';
115        eleDynamic.innerHTML = '';
116    }
117
118    // ポイント
119    eleDefault = document.getElementById('point_default');
120    eleDynamic = document.getElementById('point_dynamic');
121    if (
122           classcat2
123        && typeof classcat2.point != 'undefined'
124        && String(classcat2.point).length >= 1
125    ) {
126        eleDefault.style.display = 'none';
127        eleDynamic.innerHTML = classcat2.point;
128    } else {
129        eleDefault.style.display = '';
130        eleDynamic.innerHTML = '';
131    }
132    // 商品規格
133    eleDynamic = document.getElementById('product_class_id');
134    if (
135           classcat2
136        && typeof classcat2.product_class_id != 'undefined'
137        && String(classcat2.product_class_id).length >= 1
138    ) {
139        eleDynamic.value = classcat2.product_class_id;
140    } else {
141        eleDynamic.value = ''
142    }
143    // 商品種別
144    eleDynamic = document.getElementById('product_type');
145    if (
146           classcat2
147        && typeof classcat2.product_type != 'undefined'
148        && String(classcat2.product_type).length >= 1
149    ) {
150        eleDynamic.value = classcat2.product_type;
151    } else {
152        eleDynamic.value = ''
153    }
154}
155$(document).ready(function() {
156    $("a.expansion").fancybox({
157    });
158});
159//]]>
160</script>
161
162<!--▼CONTENTS-->
163<div id="undercolumn" class="product product_detail">
164
165    <!--★タイトル★-->
166    <h2 class="title"><!--{$tpl_subtitle|escape}--></h2>
167
168    <!--★詳細メインコメント★-->
169    <div class="main_comment"><!--{$arrProduct.main_comment|nl2br_html}--></div>
170
171    <div id="detailarea">
172        <div id="detailphotoblock">
173
174            <!--{assign var=key value="main_image"}-->
175
176            <!--★画像★-->
177            <a
178                <!--{if $arrProduct.main_large_image|strlen >= 1}-->
179                    href="<!--{$smarty.const.IMAGE_SAVE_URL}--><!--{$arrProduct.main_large_image|escape}-->"
180                    class="expansion"
181                    onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion_on.gif','expansion01');"
182                    onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion.gif','expansion01');"
183                    target="_blank"
184                <!--{/if}-->
185            >
186                <img src="<!--{$arrFile[$key].filepath|escape}-->" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" alt="<!--{$arrProduct.name|escape}-->" class="picture" /><br />
187                <!--★拡大する★-->
188                <!--{if $arrProduct.main_large_image|strlen >= 1}-->
189                    <img src="<!--{$TPL_DIR}-->img/products/b_expansion.gif" width="85" height="13" alt="画像を拡大する" name="expansion01" id="expansion01" />
190                <!--{/if}-->
191            </a>
192        </div>
193
194        <div id="detailrightblock">
195            <!--▼商品ステータス-->
196            <!--{if count($arrProduct.product_flag) > 0}-->
197                <ul class="status_icon">
198                    <!--{section name=flg loop=$arrProduct.product_flag|count_characters}-->
199                    <!--{if $arrProduct.product_flag[flg] == "1"}-->
200                    <li>
201                        <!--{assign var=key value="`$smarty.section.flg.iteration`"}-->
202                        <img src="<!--{$TPL_DIR}--><!--{$arrSTATUS_IMAGE[$key]}-->" width="65" height="17" alt="<!--{$arrSTATUS[$key]}-->" id="icon<!--{$key}-->" />
203                    </li>
204                    <!--{/if}-->
205                    <!--{/section}-->
206                </ul>
207            <!--{/if}-->
208            <!--▲商品ステータス-->
209
210            <!--★ダウンロード販売★-->
211            <!--{if $arrProduct.down == 2}-->
212                <div><font color="red">本商品はダウンロード販売となります。<br /> 購入後はMYページの購入履歴からダウンロード可能です。</font></div><br />
213            <!--{/if}-->
214
215            <!--★商品コード★-->
216            <div>商品コード:
217                <span id="product_code_default">
218                    <!--{if $arrProduct.product_code_min == $arrProduct.product_code_max}-->
219                        <!--{$arrProduct.product_code_min|escape}-->
220                    <!--{else}-->
221                        <!--{$arrProduct.product_code_min|escape}-->~<!--{$arrProduct.product_code_max|escape}-->
222                    <!--{/if}-->
223                </span><span id="product_code_dynamic"></span>
224            </div>
225
226            <!--★商品名★-->
227            <h2><!--{$arrProduct.name|escape}--></h2>
228
229            <!--★販売価格★-->
230            <div class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:
231                <span class="price">
232                    <span id="price02_default">
233                        <!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
234                            <!--{$arrProduct.price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
235                        <!--{else}-->
236                            <!--{$arrProduct.price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
237                        <!--{/if}-->
238                    </span><span id="price02_dynamic"></span>
239                    円
240                </span>
241            </div>
242
243            <!--★通常価格★-->
244            <!--{if $arrProduct.price01_max > 0}-->
245                <div class="normal_price">
246                    <!--{$smarty.const.NORMAL_PRICE_TITLE}-->:
247                    <span class="price">
248                        <span id="price01_default">
249                            <!--{if $arrProduct.price01_min == $arrProduct.price01_max}-->
250                                <!--{$arrProduct.price01_min|number_format}-->
251                            <!--{else}-->
252                                <!--{$arrProduct.price01_min|number_format}-->~<!--{$arrProduct.price01_max|number_format}-->
253                            <!--{/if}-->
254                        </span><span id="price01_dynamic"></span>
255                        円
256                    </span>
257                </div>
258            <!--{/if}-->
259
260            <!--★ポイント★-->
261            <!--{if $smarty.const.USE_POINT !== false}-->
262                <div><span class="price">ポイント:
263                    <span id="point_default">
264                        <!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
265                            <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->
266                        <!--{else}-->
267                            <!--{if $arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id == $arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->
268                                <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->
269                            <!--{else}-->
270                                <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->~<!--{$arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->
271                            <!--{/if}-->
272                        <!--{/if}-->
273                        </span><span id="point_dynamic"></span>
274                        Pt
275                    </span>
276                </div>
277            <!--{/if}-->
278
279            <!--▼メーカーURL-->
280            <!--{if $arrProduct.comment1|strlen >= 1}-->
281                <div><span class="comment1">メーカーURL:
282                    <a href="<!--{$arrProduct.comment1|escape}-->">
283                        <!--{$arrProduct.comment1|escape}--></a>
284                </div>
285            <!--{/if}-->
286            <!--▲メーカーURL-->
287
288            <!--★関連カテゴリ★-->
289            <div class="relative_cat">関連カテゴリ:
290                <!--{section name=r loop=$arrRelativeCat}-->
291                <p>
292                    <!--{section name=s loop=$arrRelativeCat[r]}-->
293                    <a href="<!--{$smarty.const.URL_DIR}-->products/list.php?category_id=<!--{$arrRelativeCat[r][s].category_id}-->"><!--{$arrRelativeCat[r][s].category_name}--></a>
294                    <!--{if !$smarty.section.s.last}--><!--{$smarty.const.SEPA_CATNAVI}--><!--{/if}-->
295                    <!--{/section}-->
296                </p>
297                <!--{/section}-->
298            </div>
299
300            <!--▼買い物かご-->
301            <form name="form1" id="form1" method="post" action="?">
302                <input type="hidden" name="mode" value="cart" />
303                <input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->" />
304                <input type="hidden" name="product_class_id" value="<!--{$tpl_product_class_id}-->" id="product_class_id" />
305                <input type="hidden" name="product_type" value="<!--{$tpl_product_type}-->" id="product_type" />
306                <input type="hidden" name="favorite_product_id" value="" />
307
308                <!--{if $tpl_stock_find}-->
309                    <dl>
310                        <!--{if $tpl_classcat_find1}-->
311                            <!--▼規格1-->
312                            <dt><!--{$tpl_class_name1|escape}--></dt>
313                            <dd>
314                                <select name="classcategory_id1"
315                                    style="<!--{$arrErr.classcategory_id1|sfGetErrorColor}-->"
316                                    onchange="fnSetClassCategories(this.form);"
317                                >
318                                    <!--{html_options options=$arrClassCat1 selected=$arrForm.classcategory_id1.value}-->
319                                </select>
320                                <!--{if $arrErr.classcategory_id1 != ""}-->
321                                    <br /><span class="attention">※ <!--{$tpl_class_name1}-->を入力して下さい。</span>
322                                <!--{/if}-->
323                            </dd>
324                            <!--▲規格1-->
325                        <!--{/if}-->
326
327                        <!--{if $tpl_classcat_find2}-->
328                            <!--▼規格2-->
329                            <dt><!--{$tpl_class_name2|escape}--></dt>
330                            <dd>
331                                <select name="classcategory_id2"
332                                    style="<!--{$arrErr.classcategory_id2|sfGetErrorColor}-->"
333                                    onchange="fnCheckStock(this.form);"
334                                >
335                                </select>
336                                <!--{if $arrErr.classcategory_id2 != ""}-->
337                                    <br /><span class="attention">※ <!--{$tpl_class_name2}-->を入力して下さい。</span>
338                                <!--{/if}-->
339                            </dd>
340                            <!--▲規格2-->
341                        <!--{/if}-->
342
343                        <dt>数量</dt>
344                        <dd>
345                            <input type="text" name="quantity" class="box54" value="<!--{$arrForm.quantity.value|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" />
346                            <!--{if $arrErr.quantity != ""}-->
347                                <br /><span class="attention"><!--{$arrErr.quantity}--></span>
348                            <!--{/if}-->
349                        </dd>
350                    </dl>
351                <!--{/if}-->
352
353                <div class="btn">
354                    <!--{if $smarty.const.OPTION_FAVOFITE_PRODUCT == 1 && $tpl_login === true}-->
355                        <div>
356                            <!--{assign var=add_favorite value="add_favorite`$product_id`"}-->
357                            <!--{if $arrErr[$add_favorite]}--><div class="attention"><!--{$arrErr[$add_favorite]}--></div><!--{/if}-->
358                            <!--{if !$arrProduct.favorite_count}-->
359                                <a
360                                    href="javascript:fnModeSubmit('add_favorite','favorite_product_id','<!--{$arrProduct.product_id|escape}-->');"
361                                    onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/add_favolite_product_on.gif','add_favolite_product');"
362                                    onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/add_favolite_product.gif','add_favolite_product');"
363                                ><img src="<!--{$TPL_DIR}-->img/products/add_favolite_product.gif" width="115" height="20" alt="お気に入りに追加" name="add_favolite_product" id="add_favolite_product" /></a>
364                            <!--{else}-->
365                                <img src="<!--{$TPL_DIR}-->img/products/add_favolite_product_on.gif" width="115" height="20" alt="お気に入り登録済" name="add_favolite_product" id="add_favolite_product" />
366                            <!--{/if}-->
367                        </div>
368                    <!--{/if}-->
369
370                    <!--{if $tpl_stock_find}-->
371                        <div id="cartbtn_default">
372                            <!--★カゴに入れる★-->
373                            <div>
374                                <a href="javascript:void(document.form1.submit())" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin_on.gif','cart');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin.gif','cart');">
375                                    <img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart" id="cart" /></a>
376                            </div>
377                            <!--{if 'sfGMODetailDisplay'|function_exists}--><!--{* GMOワンクリック *}-->
378                                <!--{'sfGMODetailDisplay'|call_user_func}-->
379                            <!--{/if}-->
380                        </div>
381                        <div class="attention" id="cartbtn_dynamic"></div>
382                    <!--{else}-->
383                        <div class="attention">申し訳ございませんが、只今品切れ中です。</div>
384                    <!--{/if}-->
385                </div>
386            </form>
387            <!--▲買い物かご-->
388
389        </div>
390    </div>
391    <!--{* オペビルダー用 *}-->
392    <!--{if "sfViewDetailOpe"|function_exists === TRUE}-->
393        <!--{include file=`$smarty.const.MODULE_PATH`mdl_opebuilder/detail_ope_view.tpl}-->
394    <!--{/if}-->
395    <!--詳細ここまで-->
396
397    <!--▼サブコメント-->
398    <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}-->
399        <!--{assign var=key value="sub_title`$smarty.section.cnt.index+1`"}-->
400        <!--{if $arrProduct[$key] != ""}-->
401            <div class="subarea">
402                <h3><!--★サブタイトル★--><!--{$arrProduct[$key]|escape}--></h3>
403                <!--{assign var=ckey value="sub_comment`$smarty.section.cnt.index+1`"}-->
404
405                <div class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br_html}--></div>
406
407                <!--▼サブ画像-->
408                <!--{assign var=key value="sub_image`$smarty.section.cnt.index+1`"}-->
409                <!--{assign var=lkey value="sub_large_image`$smarty.section.cnt.index+1`"}-->
410                <!--{if $arrProduct[$key]|strlen >= 1}-->
411                    <div class="subphotoimg">
412                        <a
413                            <!--{if $arrProduct[$lkey]|strlen >= 1}-->
414                                href="<!--{$smarty.const.IMAGE_SAVE_URL}--><!--{$arrProduct[$lkey]|escape}-->"
415                                class="expansion"
416                                onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion_on.gif', 'expansion_<!--{$lkey|escape}-->');"
417                                onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion.gif', 'expansion_<!--{$lkey|escape}-->');"
418                                target="_blank"
419                            <!--{/if}-->
420                        >
421                            <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrProduct.name|escape}-->" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" /><br />
422                            <!--{if $arrProduct[$lkey]|strlen >= 1}-->
423                                <img src="<!--{$TPL_DIR}-->img/products/b_expansion.gif" width="85" height="13" alt="画像を拡大する" id="expansion_<!--{$lkey|escape}-->" />
424                            <!--{/if}-->
425                        </a>
426                    </div>
427                <!--{/if}-->
428                <!--▲サブ画像-->
429            </div>
430        <!--{/if}-->
431    <!--{/section}-->
432    <!--▲サブコメント-->
433
434
435    <!--この商品に対するお客様の声-->
436    <div id="customervoicearea">
437        <h2><img src="<!--{$TPL_DIR}-->img/products/title_voice.jpg" width="580" height="30" alt="この商品に対するお客様の声" /></h2>
438
439        <!--{if count($arrReview) < $smarty.const.REVIEW_REGIST_MAX}-->
440            <!--★新規コメントを書き込む★-->
441            <a href="./review.php"
442                 onclick="win02('./review.php?product_id=<!--{$arrProduct.product_id}-->','review','580','580'); return false;"
443                 onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_comment_on.gif','review');"
444                 onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_comment.gif','review');" target="_blank">
445                <img src="<!--{$TPL_DIR}-->img/products/b_comment.gif" width="150" height="22" alt="新規コメントを書き込む" name="review" id="review" /></a>
446        <!--{/if}-->
447
448        <!--{if count($arrReview) > 0}-->
449            <ul>
450                <!--{section name=cnt loop=$arrReview}-->
451                    <li>
452                        <p class="voicedate"><!--{$arrReview[cnt].create_date|sfDispDBDate:false}--> 投稿者:<!--{if $arrReview[cnt].reviewer_url}--><a href="<!--{$arrReview[cnt].reviewer_url}-->" target="_blank"><!--{$arrReview[cnt].reviewer_name|escape}--></a><!--{else}--><!--{$arrReview[cnt].reviewer_name|escape}--><!--{/if}--> おすすめレベル:<span class="recommend_level"><!--{assign var=level value=$arrReview[cnt].recommend_level}--><!--{$arrRECOMMEND[$level]|escape}--></span></p>
453                        <p class="voicetitle"><!--{$arrReview[cnt].title|escape}--></p>
454                        <p class="voicecomment"><!--{$arrReview[cnt].comment|escape|nl2br}--></p>
455                    </li>
456                <!--{/section}-->
457            </ul>
458        <!--{/if}-->
459    </div>
460    <!--お客様の声ここまで-->
461
462
463    <!--{if $arrTrackbackView == "ON"}-->
464        <!--▼トラックバック-->
465        <div id="trackbackarea">
466            <h2><img src="<!--{$TPL_DIR}-->img/products/title_tb.jpg" width="580" height="30" alt="この商品に対するトラックバック" /></h2>
467            <h3>この商品のトラックバック先URL</h3>
468            <input type="text" name="trackback" value="<!--{$trackback_url}-->" size="100" class="box500" />
469
470            <!--{if $arrTrackback}-->
471                <ul>
472                <!--{section name=cnt loop=$arrTrackback}-->
473                    <li><strong><!--{$arrTrackback[cnt].create_date|sfDispDBDate:false}--> <a href="<!--{$arrTrackback[cnt].url}-->" target="_blank"><!--{$arrTrackback[cnt].title|escape}--></a> from <!--{$arrTrackback[cnt].blog_name|escape}--></strong>
474                        <p><!--{$arrTrackback[cnt].excerpt|escape|mb_strimwidth:0:200:"..."}--></p></li>
475                <!--{/section}-->
476                </ul>
477            <!--{/if}-->
478        </div>
479        <!--▲トラックバック-->
480    <!--{/if}-->
481
482
483    <!--▼関連商品-->
484    <!--{if $arrRecommend}-->
485        <div id="whoboughtarea">
486            <h2><img src="<!--{$TPL_DIR}-->img/products/title_recommend.jpg" width="580" height="30" alt="その他のオススメ商品(関連商品)" /></h2>
487            <div class="whoboughtblock">
488
489            <!--{section name=cnt loop=$arrRecommend}-->
490                <!--{if ($smarty.section.cnt.index % 2) == 0}-->
491                <!--{if $arrRecommend[cnt].product_id}-->
492                <!-- 左列 -->
493                <div class="whoboughtleft">
494
495                    <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->">
496                        <img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$arrRecommend[cnt].main_list_image|sfNoImageMainList|escape}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a>
497
498                    <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
499                    <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
500                    <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3>
501
502                    <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:<span class="price">
503                        <!--{if $price02_min == $price02_max}-->
504                            <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
505                        <!--{else}-->
506                            <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
507                        <!--{/if}-->円</span></p>
508                    <p class="mini"><!--{$arrRecommend[cnt].comment|escape|nl2br}--></p>
509                </div>
510                <!-- 左列 -->
511                <!--{/if}-->
512                <!--{/if}-->
513
514                <!--{if ($smarty.section.cnt.index % 2) != 0}-->
515                <!--{* assign var=nextCnt value=$smarty.section.cnt.index+1 *}-->
516                <!--{if $arrRecommend[cnt].product_id}-->
517                <!-- 右列 -->
518                <div class="whoboughtright">
519
520                    <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->">
521                        <img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$arrRecommend[cnt].main_list_image|sfNoImageMainList|escape}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a>
522
523                    <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
524                    <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
525                    <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3>
526
527                    <p class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:<span class="price">
528
529                        <!--{if $price02_min == $price02_max}-->
530                            <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
531                        <!--{else}-->
532                            <!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
533                        <!--{/if}-->円</span></p>
534                    <p class="mini"><!--{$arrRecommend[cnt].comment|escape|nl2br}--></p>
535                </div>
536                <!-- 右列 -->
537            <!--{/if}-->
538            <!--{/if}-->
539
540            <!--{if $smarty.section.cnt.last}-->
541            </div>
542            <!--{/if}-->
543        <!--{/section}-->
544        </div>
545    <!--{/if}-->
546    <!--▲関連商品-->
547
548</div>
549<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.