Changeset 17891


Ignore:
Timestamp:
2009/03/07 22:13:02 (17 years ago)
Author:
Seasoft
Message:

merge 17401
・取得元: version-2
・未テスト
【取得元のログメッセージ】
GMOPG連携組み込み

Location:
branches/comu-ver2/data
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/Smarty/templates/default/cart/index.tpl

    r17612 r17891  
    5757 
    5858   <!--{if count($arrProductsClass) > 0}--> 
     59    
    5960   <form name="form1" id="form1" method="post" action="?"> 
     61   <!--{if function_exists('sfGMOCartDisplay')}--> 
     62     <!--{''|sfGMOCartDisplay}--> 
     63   <!--{/if}--> 
     64    
    6065     <input type="hidden" name="mode" value="confirm" /> 
    6166     <input type="hidden" name="cart_no" value="" /> 
  • branches/comu-ver2/data/Smarty/templates/default/detail.tpl

    r17748 r17891  
    207207 
    208208                <!--{if $tpl_stock_find}--> 
    209                 <p class="btn"> 
    210                     <!--{if $smarty.const.OPTION_FAVOFITE_PRODUCT == 1 && $tpl_login}--> 
    211                         <!--{assign var=add_favorite value="add_favorite`$product_id`"}--> 
    212                         <!--{if $arrErr[$add_favorite]}--><div class="attention"><!--{$arrErr[$add_favorite]}--></div><!--{/if}--> 
    213                         <!--{if !$arrProduct.favorite_count}--> 
    214                         <a href="javascript:fnModeSubmit('add_favorite','favorite_product_id','<!--{$arrProduct.product_id}-->');">[お気に入りに追加]</a><br /> 
    215                         <!--{else}--> 
    216                         [お気に入り登録済]<br /> 
     209                    <p class="btn"> 
     210                        <!--{if $smarty.const.OPTION_FAVOFITE_PRODUCT == 1 && $tpl_login}--> 
     211                            <!--{assign var=add_favorite value="add_favorite`$product_id`"}--> 
     212                            <!--{if $arrErr[$add_favorite]}--><div class="attention"><!--{$arrErr[$add_favorite]}--></div><!--{/if}--> 
     213                            <!--{if !$arrProduct.favorite_count}--> 
     214                            <a href="javascript:fnModeSubmit('add_favorite','favorite_product_id','<!--{$arrProduct.product_id}-->');">[お気に入りに追加]</a><br /> 
     215                            <!--{else}--> 
     216                            [お気に入り登録済]<br /> 
     217                            <!--{/if}--> 
    217218                        <!--{/if}--> 
    218                     <!--{/if}--> 
    219                     <!--★カゴに入れる★--> 
    220                     <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');"> 
    221                         <img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart" id="cart" /> 
    222                     </a> 
    223                 </p> 
     219                        <!--★カゴに入れる★--> 
     220                        <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');"> 
     221                            <img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart" id="cart" /> 
     222                        </a> 
     223                    </p> 
     224                    <!--{if function_exists(sfGMODetailDisplay)}--><!--{* GMOワンクリック *}--> 
     225                        <!--{''|sfGMODetailDisplay}--> 
     226                    <!--{/if}--> 
    224227                <!--{else}--> 
    225228                <div class="attention">申し訳ございませんが、只今品切れ中です。</div> 
  • branches/comu-ver2/data/Smarty/templates/default/mypage/change.tpl

    r17605 r17891  
    3737      <!--{include file="`$smarty.const.TEMPLATE_DIR`frontparts/form_personal_input.tpl" flgFields=3 emailMobile=true prefix=""}--> 
    3838    </table> 
    39  
     39    <!--{if function_exists('sfGMOMypageDisplay')}--> 
     40      <!--{''|sfGMOMypageDisplay}--> 
     41    <!--{/if}--> 
    4042    <div class="tblareabtn"> 
    4143      <input type="image" onmouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/common/b_confirm_on.gif',this)" onmouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/common/b_confirm.gif',this)" src="<!--{$TPL_DIR}-->img/common/b_confirm.gif" class="box150" alt="確認ページへ" name="refusal" id="refusal" /> 
  • branches/comu-ver2/data/class/SC_CartSession.php

    r17579 r17891  
    6262        $change = false; 
    6363        $max = $this->getMax(); 
    64         for($i = 0; $i <= $max; $i++) { 
     64        for($i = 1; $i <= $max; $i++) { 
    6565            if ($_SESSION[$this->key][$i]['quantity'] != $_SESSION[$this->key_tmp][$i]['quantity']) { 
    6666                $change = true; 
  • branches/comu-ver2/data/class/pages/cart/LC_Page_Cart.php

    r17863 r17891  
    2424// {{{ requires 
    2525require_once(CLASS_PATH . "pages/LC_Page.php"); 
     26if (file_exists(MODULE_PATH . "mdl_gmopg/inc/function.php")) { 
     27    require_once(MODULE_PATH . "mdl_gmopg/inc/function.php"); 
     28} 
    2629 
    2730/** 
  • branches/comu-ver2/data/class/pages/mypage/LC_Page_Mypage_Change.php

    r17795 r17891  
    2424// {{{ requires 
    2525require_once(CLASS_PATH . "pages/LC_Page.php"); 
     26 
     27if (file_exists(MODULE_PATH . "mdl_gmopg/inc/function.php")) { 
     28    require_once(MODULE_PATH . "mdl_gmopg/inc/function.php"); 
     29} 
    2630 
    2731/** 
     
    151155            break; 
    152156 
     157        case 'gmo_oneclick': 
     158            sfGMOMypageEdit(); 
     159            $this->arrForm = $this->lfGetCustomerData(); 
     160            $this->arrForm['password'] = DEFAULT_PASSWORD; 
     161            $this->arrForm['password02'] = DEFAULT_PASSWORD; 
     162            break; 
    153163        case 'complete': 
    154164            //エラーなしでかつメールアドレスが重複していない場合 
  • branches/comu-ver2/data/class/pages/products/LC_Page_Products_Detail.php

    r17748 r17891  
    2525require_once(CLASS_PATH . "pages/LC_Page.php"); 
    2626 
     27if (file_exists(MODULE_PATH . "mdl_gmopg/inc/function.php")) { 
     28    require_once(MODULE_PATH . "mdl_gmopg/inc/function.php"); 
     29} 
    2730/** 
    2831 * 商品詳細 のページクラス. 
     
    181184                $classcategory_id2 = $_POST['classcategory_id2']; 
    182185 
     186                if (!empty($_POST['gmo_oneclick'])) { 
     187                    $objCartSess->delAllProducts(); 
     188                } 
     189 
    183190                // 規格1が設定されていない場合 
    184191                if(!$this->tpl_classcat_find1) { 
     
    193200                $objCartSess->setPrevURL($_SERVER['REQUEST_URI']); 
    194201                $objCartSess->addProduct(array($_POST['product_id'], $classcategory_id1, $classcategory_id2), $this->objFormParam->getValue('quantity')); 
     202 
     203                if (!empty($_POST['gmo_oneclick'])) { 
     204                    $objSiteSess = new SC_SiteSession; 
     205                    $objSiteSess->setRegistFlag(); 
     206                    $objCartSess->saveCurrentCart($objSiteSess->getUniqId()); 
     207 
     208                    $this->sendRedirect($this->getLocation( 
     209                        URL_DIR . 'user_data/gmopg_oneclick_confirm.php', array(), true)); 
     210                    exit; 
     211                } 
     212 
    195213                $this->sendRedirect($this->getLocation(URL_CART_TOP)); 
    196214                exit; 
Note: See TracChangeset for help on using the changeset viewer.