Ignore:
Timestamp:
2008/07/03 16:30:08 (16 years ago)
Author:
adachi
Message:

GMOPG連携組み込み

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/products/LC_Page_Products_Detail.php

    r17333 r17401  
    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 * 商品詳細 のページクラス. 
     
    167170                $classcategory_id2 = $_POST['classcategory_id2']; 
    168171 
     172                if (!empty($_POST['gmo_oneclick'])) { 
     173                    $objCartSess->delAllProducts(); 
     174                } 
     175 
    169176                // 規格1が設定されていない場合 
    170177                if(!$this->tpl_classcat_find1) { 
     
    179186                $objCartSess->setPrevURL($_SERVER['REQUEST_URI']); 
    180187                $objCartSess->addProduct(array($_POST['product_id'], $classcategory_id1, $classcategory_id2), $this->objFormParam->getValue('quantity')); 
     188 
     189                if (!empty($_POST['gmo_oneclick'])) { 
     190                    $objSiteSess = new SC_SiteSession; 
     191                    $objSiteSess->setRegistFlag(); 
     192                    $objCartSess->saveCurrentCart($objSiteSess->getUniqId()); 
     193 
     194                    $this->sendRedirect($this->getLocation( 
     195                        URL_DIR . 'user_data/gmopg_oneclick_confirm.php', array(), true)); 
     196                    exit; 
     197                } 
     198 
    181199                $this->sendRedirect($this->getLocation(URL_CART_TOP)); 
    182200                exit; 
Note: See TracChangeset for help on using the changeset viewer.