Changeset 18200 for branches/comu-ver2


Ignore:
Timestamp:
2009/07/18 14:08:56 (15 years ago)
Author:
Seasoft
Message:
  • 複数のエラーを適切に表示するように修正。(管理機能で商品マスタを編集した場合に起こりうる。)
  • ソース整形
Location:
branches/comu-ver2/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/Smarty/templates/default/cart/index.tpl

    r18117 r18200  
    5555    
    5656   <!--{if strlen($tpl_message) != 0}--> 
    57     <p class="attention"><!--{$tpl_message|escape}--></p> 
     57    <p class="attention"><!--{$tpl_message|escape|nl2br}--></p> 
    5858   <!--{/if}--> 
    5959 
  • branches/comu-ver2/data/class/helper/SC_Helper_DB.php

    r18180 r18200  
    323323                } 
    324324 
    325                 if($limit != "" && $limit < $arrCart['quantity']) { 
     325                if ($limit != "" && $limit < $arrCart['quantity']) { 
    326326                    // カート内商品数を制限に合わせる 
    327327                    $objCartSess->setProductValue($arrCart['id'], 'quantity', $limit); 
    328328                    $quantity = $limit; 
    329                     $objPage->tpl_message = "※「" . $arrData['name'] . "」は販売制限(または在庫が不足)しております。一度にこれ以上の購入はできません。\n"; 
     329                    $objPage->tpl_message .= "※「" . $arrData['name'] . "」は販売制限(または在庫が不足)しております。一度に数量{$limit}以上の購入はできません。\n"; 
    330330                } else { 
    331331                    $quantity = $arrCart['quantity']; 
Note: See TracChangeset for help on using the changeset viewer.