Changeset 23190


Ignore:
Timestamp:
2013/09/05 18:01:20 (11 years ago)
Author:
m_uehara
Message:

#2095 在庫数チェックの条件式を修正しました

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13_0/data/Smarty/templates/admin/order/product_select.tpl

    r23103 r23190  
    5959        } 
    6060 
    61         if(!class1_id){ 
     61        if (!class1_id) { 
     62            // 規格が存在しない商品の場合 
    6263            err_text = eccube.productsClassCategories[product_id]['__unselected2']['#0']['stock_find'] ? '' : '只今品切れ中です'; 
    63         }else if(class1_id && !class2_id){ 
     64        } else if (class1_id && (class1_id != '__unselected') && class2_id && (class2_id != 'undefined')) { 
     65            // 規格1&規格2の商品の場合 
     66            err_text = eccube.productsClassCategories[product_id][class1_id]['#' + class2_id]['stock_find'] ? '' : '只今品切れ中です'; 
     67        } else if (class1_id && (class1_id != '__unselected') && (typeof eccube.productsClassCategories[product_id][class1_id]['#0'] != 'undefined')) { 
     68            // 規格1のみの商品の場合 
    6469            err_text = eccube.productsClassCategories[product_id][class1_id]['#0']['stock_find'] ? '' : '只今品切れ中です'; 
    65         }else{ 
    66             err_text = eccube.productsClassCategories[product_id][class1_id]['#' + class2_id]['stock_find'] ? '' : '只今品切れ中です'; 
    6770        } 
    6871 
Note: See TracChangeset for help on using the changeset viewer.