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 49
                            
    __construct($cartKey = 'cart')
        
    
    
        at         line 63
                            
    saveCurrentCart(string $key_tmp, integer $productTypeId)
        
    
    
        at         line 79
                            
    getCancelPurchase($productTypeId)
        
    
    
        at         line 93
                            
    checkChangeCart(integer $productTypeId)
        
    
    
        at         line 121
                            
    getNextCartID($productTypeId)
        
    
    
        at         line 137
                            
    setProductValue($id, $key, $val, $productTypeId)
        
    
    
        at         line 150
                            
    getMax($productTypeId)
        
    
    
        at         line 167
                            
    getTotalQuantity($productTypeId)
        
    
    
        at         line 179
                            
    getAllProductsTotal($productTypeId, $pref_id, $country_id)
        
    
    
        at         line 207
                            
    getAllProductsTax($productTypeId, $pref_id, $country_id)
        
    
    
        at         line 231
                            
    getAllProductsPoint(integer $productTypeId)
        
    
    
        at         line 258
                            
    addProduct($product_class_id, $quantity)
        
    
    
        at         line 285
                            
    setPrevURL($url, $excludePaths = array())
        
    
    
        at         line 307
                            
    getPrevURL()
        
    
    
        at         line 313
                            
    delProductKey($keyname, $val, $productTypeId)
        
    
    
        at         line 323
                            
    setValue($key, $val, $productTypeId)
        
    
    
        at         line 328
                            
    getValue($key, $productTypeId)
        
    
    
        at         line 337
                            
    adjustSessionProductsClass($arrProductsClass)
        
    
    セッション中の商品情報データの調整。 productsClass項目から、不必要な項目を削除する。
        at         line 374
                            void
    setCartSession4getCartList(integer $productTypeId, integer $key)
        
    
    getCartList用にcartSession情報をセットする
        at         line 407
                            array
    getCartList(integer $productTypeId, integer $pref_id, integer $country_id)
        
    
    商品種別ごとにカート内商品の一覧を取得する.
        at         line 479
                            array
    getAllCartList()
        
    
    全てのカートの内容を取得する.
        at         line 502
                            array
    getAllProductClassID(integer $productTypeId)
        
    
    カート内にある商品規格IDを全て取得する.
        at         line 521
                            void
    delAllProducts(integer $productTypeId)
        
    
    商品種別ID を指定して, カート内の商品を全て削除する.
        at         line 530
                            
    delProduct($cart_no, $productTypeId)
        
    
    
        at         line 541
                            
    upQuantity($cart_no, $productTypeId)
        
    
    
        at         line 550
                            
    downQuantity($cart_no, $productTypeId)
        
    
    
        at         line 565
                            integer
    getQuantity(integer $cart_no, integer $productTypeId)
        
    
    カート番号と商品種別IDを指定して, 数量を取得する.
        at         line 583
                            
    setQuantity(integer $quantity, integer $cart_no, integer $productTypeId)
        
    
    カート番号と商品種別IDを指定して, 数量を設定する.
        at         line 600
                            integer
    getProductClassId(integer $cart_no, integer $productTypeId)
        
    
    カート番号と商品種別IDを指定して, 商品規格IDを取得する.
        at         line 623
                            string
    checkProducts(string $productTypeId)
        
    
    カート内の商品の妥当性をチェックする.
エラーが発生した場合は, 商品をカート内から削除又は数量を調整し, エラーメッセージを返す.
- 商品種別に関連づけられた配送業者の存在チェック
- 削除/非表示商品のチェック
- 販売制限数のチェック
- 在庫数チェック
        at         line 683
                            boolean
    isDelivFree(integer $productTypeId)
        
    
    送料無料条件を満たすかどうかチェックする
        at         line 733
                            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 797
                            array
    getKeys()
        
    
    カートが保持するキー(商品種別ID)を配列で返す.
        at         line 817
                            void
    registerKey(integer $key)
        
    
    カートに設定された現在のキー(商品種別ID)を登録する.
        at         line 827
                            void
    unsetKey()
        
    
    カートに設定された現在のキー(商品種別ID)を削除する.
        at         line 837
                            integer
    getKey()
        
    
    カートに設定された現在のキー(商品種別ID)を取得する.
        at         line 847
                            boolean
    isMultiple()
        
    
    複数商品種別かどうか.
        at         line 858
                            boolean
    hasProductType(integer $product_type_id)
        
    
    引数の商品種別の商品がカートに含まれるかどうか.