Changeset 21932


Ignore:
Timestamp:
2012/06/20 19:13:06 (9 years ago)
Author:
pineray
Message:

#1726 モバイルサイト 商品名検索のページングで検索条件が引き継がれない

モバイルの場合に、ナビゲーションリンクのURLに引数で検索条件を追加.

File:
1 edited

Legend:

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

    r21809 r21932  
    124124        $this->tpl_linemax  = $this->lfGetProductAllNum($arrSearchCondition); 
    125125        $urlParam           = "category_id={$this->arrSearchData['category_id']}&pageno=#page#"; 
     126        // モバイルの場合に検索条件をURLの引数に追加 
     127        if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_MOBILE) { 
     128            $urlParam .= "&mode={$this->mode}&name={$this->arrSearchData['name']}&orderby={$this->orderby}"; 
     129        } 
    126130        $this->objNavi      = new SC_PageNavi_Ex($this->tpl_pageno, $this->tpl_linemax, $this->disp_number, 'fnNaviPage', NAVI_PMAX, $urlParam, SC_Display_Ex::detectDevice() !== DEVICE_TYPE_MOBILE); 
    127131        $this->arrProducts  = $this->lfGetProductsList($arrSearchCondition, $this->disp_number, $this->objNavi->start_row, $this->tpl_linemax, $objProduct); 
Note: See TracChangeset for help on using the changeset viewer.