Ignore:
Timestamp:
2009/08/08 18:39:55 (15 years ago)
Author:
kishida
Message:

商品をお気に入りに追加するボタンを表示するテンプレートを、別ファイルから読み込むようにする

Location:
branches/version-2_4/data/Smarty/templates/default
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4/data/Smarty/templates/default/detail.tpl

    r18119 r18261  
    196196 
    197197        <!--{if $tpl_stock_find}--> 
    198         <p class="btn"> 
    199  
    200         <!--{if $smarty.const.OPTION_FAVOFITE_PRODUCT == 1 && $tpl_login === true}--> 
    201             <!--{assign var=add_favorite value="add_favorite`$product_id`"}--> 
    202             <!--{if $arrErr[$add_favorite]}--><div class="attention"><!--{$arrErr[$add_favorite]}--></div><!--{/if}--> 
    203             <!--{if !$arrProduct.favorite_count}--> 
    204                 <a href="javascript:fnModeSubmit('add_favorite','favorite_product_id','<!--{$arrProduct.product_id|escape}-->');" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/add_favolite_product_on.gif','add_favolite_product');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/add_favolite_product.gif','add_favolite_product');"> 
    205                     <img src="<!--{$TPL_DIR}-->img/products/add_favolite_product.gif" width="115" height="20" alt="お気に入りに追加" name="add_favolite_product" id="add_favolite_product" /> 
     198            <p class="btn"> 
     199                <!--{* お気に入りに追加するボタンを表示させる *}--> 
     200                <!--{include file="./products/customer_favorite_products.tpl"}--> 
     201 
     202                <!--{* カゴに入れるボタン *}--> 
     203                <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');"> 
     204                    <img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart" id="cart" /> 
    206205                </a> 
     206            </p> 
     207            <!--{if 'sfGMODetailDisplay'|function_exists}--><!--{* GMOワンクリック *}--> 
     208                <!--{'sfGMODetailDisplay'|call_user_func}--> 
    207209            <!--{/if}--> 
    208         <!--{/if}--> 
    209           <!--★カゴに入れる★--> 
    210           <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');"> 
    211             <img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart" id="cart" /> 
    212           </a> 
    213         </p> 
    214         <!--{if 'sfGMODetailDisplay'|function_exists}--><!--{* GMOワンクリック *}--> 
    215           <!--{'sfGMODetailDisplay'|call_user_func}--> 
    216         <!--{/if}--> 
    217210        <!--{else}--> 
    218         <div class="attention">申し訳ございませんが、只今品切れ中です。</div> 
     211            <div class="attention">申し訳ございませんが、只今品切れ中です。</div> 
    219212        <!--{/if}--> 
    220213      </form> 
Note: See TracChangeset for help on using the changeset viewer.