Ticket #581 (new 改善提案) — at Initial Version
price02 の入力必須を徹底
| Reported by: | Seasoft | Owned by: | somebody |
|---|---|---|---|
| Priority: | 低 | Milestone: | EC-CUBE2.11.0 |
| Component: | 管理画面 | Version: | 2.5-dev |
| Keywords: | Cc: | ||
| 修正済み: |
Description
price02 は管理機能「商品管理 - 商品登録」で入力必須となっているが、DB 上は NULL 可となっている。DB 制約として、入力必須とする。
これにより、SC_Helper_DB#sfTotalCart の冗長な処理を削除する。
// 価格の登録
if ($arrData['price02'] != "") {
$objCartSess->setProductValue($arrCart['id'], 'price', $arrData['price02']);
$objPage->arrProductsClass[$cnt]['uniq_price'] = $arrData['price02'];
} else {
$objCartSess->setProductValue($arrCart['id'], 'price', $arrData['price01']);
$objPage->arrProductsClass[$cnt]['uniq_price'] = $arrData['price01'];
}
Note: See
TracTickets for help on using
tickets.
