Ignore:
Timestamp:
2011/02/25 18:49:29 (13 years ago)
Author:
uemoto
Message:

#1032(フロントデザインリニューアル)

  • CSSクラス名等調整
  • ヘッダ用ブロック追加

#932(商品をお気に入りに入れたかどうかの判別が動いていない)

  • 取り急ぎ判別のみ実装
File:
1 edited

Legend:

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

    r20344 r20408  
    9292     */ 
    9393    function action() { 
     94        // 顧客クラスs 
     95        $objCustomer = new SC_Customer(); 
     96 
    9497        // パラメータ管理クラス 
    9598        $this->objFormParam = new SC_FormParam(); 
     
    104107        $product_id = $this->lfCheckProductId($this->objFormParam->getValue('admin'),$this->objFormParam->getValue('product_id')); 
    105108        $this->mode = $this->getMode(); 
    106  
    107         $objCustomer = new SC_Customer(); 
    108  
    109         // ログイン判定 
    110         if ($objCustomer->isLoginSuccess() === true) { 
    111             //お気に入りボタン表示 
    112             $this->tpl_login = true; 
    113         } 
    114109 
    115110        // 規格選択セレクトボックスの作成 
     
    270265        //関連商品情報表示 
    271266        $this->arrRecommend = $this->lfPreGetRecommendProducts($product_id); 
     267 
     268        // ログイン判定 
     269        if ($objCustomer->isLoginSuccess() === true) { 
     270            //お気に入りボタン表示 
     271            $this->tpl_login = true; 
     272            $this->is_favorite = SC_Helper_DB_Ex::sfDataExists('dtb_customer_favorite_products', 'customer_id = ? AND product_id = ?', array($objCustomer->getValue('customer_id'), $product_id)); 
     273        } 
     274 
    272275    } 
    273276 
Note: See TracChangeset for help on using the changeset viewer.