CartSession
class CartSession
カートセッション管理クラス
Properties
$key_tmp | ユニークIDを指定する. | ||
$cartSession | カートのセッション変数. |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
セッション中の商品情報データの調整。 productsClass項目から、不必要な項目を削除する。
getCartList用にcartSession情報をセットする
商品種別ごとにカート内商品の一覧を取得する.
全てのカートの内容を取得する.
カート内にある商品規格IDを全て取得する.
商品種別ID を指定して, カート内の商品を全て削除する.
No description
No description
No description
カート番号と商品種別IDを指定して, 数量を取得する.
カート番号と商品種別IDを指定して, 数量を設定する.
カート番号と商品種別IDを指定して, 商品規格IDを取得する.
カート内の商品の妥当性をチェックする.
送料無料条件を満たすかどうかチェックする
カートが保持するキー(商品種別ID)を配列で返す.
カートに設定された現在のキー(商品種別ID)を登録する.
カートに設定された現在のキー(商品種別ID)を削除する.
カートに設定された現在のキー(商品種別ID)を取得する.
複数商品種別かどうか.
引数の商品種別の商品がカートに含まれるかどうか.
Details
at line 37
__construct($cartKey = 'cart')
at line 51
saveCurrentCart(string $key_tmp, integer $productTypeId)
at line 67
getCancelPurchase($productTypeId)
at line 81
checkChangeCart(integer $productTypeId)
at line 109
getNextCartID($productTypeId)
at line 125
setProductValue($id, $key, $val, $productTypeId)
at line 138
getMax($productTypeId)
at line 155
getTotalQuantity($productTypeId)
at line 167
getAllProductsTotal($productTypeId, $pref_id, $country_id)
at line 195
getAllProductsTax($productTypeId, $pref_id, $country_id)
at line 219
getAllProductsPoint(integer $productTypeId)
at line 246
addProduct($product_class_id, $quantity)
at line 273
setPrevURL($url, $excludePaths = array())
at line 295
getPrevURL()
at line 301
delProductKey($keyname, $val, $productTypeId)
at line 311
setValue($key, $val, $productTypeId)
at line 316
getValue($key, $productTypeId)
at line 325
adjustSessionProductsClass($arrProductsClass)
セッション中の商品情報データの調整。 productsClass項目から、不必要な項目を削除する。
at line 362
void
setCartSession4getCartList(integer $productTypeId, integer $key)
getCartList用にcartSession情報をセットする
at line 395
array
getCartList(integer $productTypeId, integer $pref_id, integer $country_id)
商品種別ごとにカート内商品の一覧を取得する.
at line 467
array
getAllCartList()
全てのカートの内容を取得する.
at line 490
array
getAllProductClassID(integer $productTypeId)
カート内にある商品規格IDを全て取得する.
at line 509
void
delAllProducts(integer $productTypeId)
商品種別ID を指定して, カート内の商品を全て削除する.
at line 518
delProduct($cart_no, $productTypeId)
at line 529
upQuantity($cart_no, $productTypeId)
at line 538
downQuantity($cart_no, $productTypeId)
at line 553
integer
getQuantity(integer $cart_no, integer $productTypeId)
カート番号と商品種別IDを指定して, 数量を取得する.
at line 571
setQuantity(integer $quantity, integer $cart_no, integer $productTypeId)
カート番号と商品種別IDを指定して, 数量を設定する.
at line 588
integer
getProductClassId(integer $cart_no, integer $productTypeId)
カート番号と商品種別IDを指定して, 商品規格IDを取得する.
at line 611
string
checkProducts(string $productTypeId)
カート内の商品の妥当性をチェックする.
エラーが発生した場合は, 商品をカート内から削除又は数量を調整し, エラーメッセージを返す.
- 商品種別に関連づけられた配送業者の存在チェック
- 削除/非表示商品のチェック
- 販売制限数のチェック
- 在庫数チェック
at line 671
boolean
isDelivFree(integer $productTypeId)
送料無料条件を満たすかどうかチェックする
at line 721
array
calculate(integer $productTypeId, Customer $objCustomer, integer $use_point, integer|array $deliv_pref = '', integer $charge, integer $discount, integer $deliv_id, integer $order_pref, integer $order_country_id)
カートの内容を計算する.
カートの内容を計算し, 下記のキーを保持する連想配列を返す.
- tax: 税額
- subtotal: カート内商品の小計
- deliv_fee: カート内商品の合計送料
- total: 合計金額
- payment_total: お支払い合計
- add_point: 加算ポイント
at line 785
array
getKeys()
カートが保持するキー(商品種別ID)を配列で返す.
at line 805
void
registerKey(integer $key)
カートに設定された現在のキー(商品種別ID)を登録する.
at line 815
void
unsetKey()
カートに設定された現在のキー(商品種別ID)を削除する.
at line 825
integer
getKey()
カートに設定された現在のキー(商品種別ID)を取得する.
at line 835
boolean
isMultiple()
複数商品種別かどうか.
at line 846
boolean
hasProductType(integer $product_type_id)
引数の商品種別の商品がカートに含まれるかどうか.