Changeset 21265


Ignore:
Timestamp:
2011/09/29 18:50:08 (9 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20110929015419-4lkfsoribp6t9hqb
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/class/pages/products/LC_Page_Products_List.php 15154@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fproducts%2FLC_Page_Products_List.php
bzr:mapping-version:
v4
bzr:merge:

ohkouchi@loop-az.jp-20110929094803-e05z231nky24zndb
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20110929095006-h0h1aa4ylrr2zi46
bzr:revno:
3963
bzr:revprop:branch-nick:
branches/version-2_11-dev
bzr:root:
branches/version-2_11-dev
bzr:testament:

bazaar-ng testament short form 2.1
revision-id: ohkouchi@loop-az.jp-20110929095006-h0h1aa4ylrr2zi46
sha1: cb2d94aa2e1b661c1e06f5db0259661c5cb7269a
bzr:text-parents:

data/class/pages/products/LC_Page_Products_List.php svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_11-dev:21256
bzr:timestamp:
2011-09-29 18:50:06.226999998 +0900
bzr:user-agent:
bzr2.4.1+bzr-svn1.1.0
Message:

#1280 (PECL json 使用時, 規格2のプルダウンが表示されない)

  • 在庫無しの商品が商品一覧に含まれる場合に対応
File:
1 edited

Legend:

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

    r21256 r21265  
    171171                unset($this->arrProducts['productStatus']); 
    172172                $this->tpl_javascript .= 'var productsClassCategories = ' . SC_Utils_Ex::jsonEncode($objProduct->classCategories) . ';'; 
    173                 //onloadスクリプトを設定 
     173                //onloadスクリプトを設定. 在庫ありの商品のみ出力する 
    174174                foreach ($this->arrProducts as $arrProduct) { 
    175                     $js_fnOnLoad .= "fnSetClassCategories(document.product_form{$arrProduct['product_id']});"; 
     175                    if ($arrProduct['stock_unlimited_max'] || $arrProduct['stock_max'] > 0) { 
     176                        $js_fnOnLoad .= "fnSetClassCategories(document.product_form{$arrProduct['product_id']});"; 
     177                    } 
    176178                } 
    177179 
Note: See TracChangeset for help on using the changeset viewer.