CubeCart - FreeForums For All

CubeCart 5 => Developer's Kit => Topic started by: Chief! on July 31, 2013, 10:05:14 AM



Title: Cart Class
Post by: Chief! on July 31, 2013, 10:05:14 AM
Cart
+ basket = null; array; Current basket
+ basket_data = false; array; Basket data
+ basket_digital = false; bool; Digital basket
- _discount = 0; float; Cart discount
- _item_discount = false; bool; Cart item discount flag
- _shipping = 0; float; Shipping cost
- _shipping_discount = 0; float; Shipping discount
- _subtotal = 0; float; Cart subtotal
- _total = 0; float; Cart total
- _weight = 0; float; Cart weight
# _instance; static instance; Class instance
# __construct; final
+ __destruct
+ getInstance; static
+ add
+ autoload
+ clear
+ discountAdd
+ discountRemove
+ get
+ getBasketDigital
+ getSubTotal
+ getTotal
+ getWeight
+ load
+ loadShippingModules; array|false;
+ checkShippingModuleCountry
+ remove; status|false; Remove an item from the basket
+ save; nothing; Save basket
+ set
+ update
- _applyDiscounts; bool; Apply a discount to the cart
- _applyProductDiscount; nothing; Apply product discount
- _checkOption; bool; Check option choice
As of CC522