Property | Type | Description | |
---|---|---|---|
$product_name_rules | string | These are the regular expression rules that we use to validate the product ID and product name alpha-numeric, dashes, underscores, colons or periods |
Property | Type | Description | |
---|---|---|---|
$_cart_totals |
Method | Description | |
---|---|---|
__construct ( $params = [] ) | ||
add_coupon ( array $coupon = [] ) : boolean | Add Coupon *** TASTYIGNITER | |
add_total ( array $total = [] ) : integer | Add additional cart total | |
calculate_tax ( ) : float | Calculate tax if enabled | |
contents ( boolean $newest_first = FALSE ) : integer | Cart Contents *** TASTYIGNITER | |
coupon ( ) : integer | Coupon Amount *** TASTYIGNITER | |
coupon_code ( ) : integer | Coupon Code *** TASTYIGNITER | |
coupon_discount ( ) : integer | Coupon Discount *** TASTYIGNITER | |
delivery ( ) : integer | Delivery Charge *** TASTYIGNITER | |
destroy ( ) : void | Destroy the cart | |
get_item_by_id ( string $id ) : array | Get cart item by id | |
get_total ( string $total_name = '' ) : array | Get cart total | |
order_total ( ) : integer | Order Total *** TASTYIGNITER | |
product_options_ids ( $row_id ) | ||
product_options_string ( $row_id, $split = '<br />' ) | -------------------------------------------------------------------- | |
remove_coupon ( string $coupon_code = '' ) : boolean | Remove Coupon *** TASTYIGNITER | |
remove_total ( string $total_name = '' ) : boolean | Remove Total | |
set_delivery ( integer $charge ) : boolean | Set Delivery Charge *** TASTYIGNITER | |
tax_amount ( ) : integer | Get Taxes Amount | |
tax_array ( ) : integer | Get Taxes | |
tax_percent ( ) : integer | Get Taxes Percentage | |
tax_title ( ) : integer | Get Taxes Title | |
total_items ( ) : integer | Total Items | |
totals ( ) : integer | Get Cart Totals |
Method | Description | |
---|---|---|
_save_cart ( ) : boolean | Save the cart array to the session DB |
protected _save_cart ( ) : boolean | ||
return | boolean |
public add_coupon ( array $coupon = [] ) : boolean | ||
$coupon | array | |
return | boolean |
public calculate_tax ( ) : float | ||
return | float |
public coupon_discount ( ) : integer | ||
return | integer |
public get_item_by_id ( string $id ) : array | ||
$id | string | |
return | array |
public order_total ( ) : integer | ||
return | integer |
public product_options_string ( $row_id, $split = '<br />' ) |
public remove_coupon ( string $coupon_code = '' ) : boolean | ||
$coupon_code | string | |
return | boolean |
public remove_total ( string $total_name = '' ) : boolean | ||
$total_name | string | |
return | boolean |
public set_delivery ( integer $charge ) : boolean | ||
$charge | integer | |
return | boolean |
public tax_percent ( ) : integer | ||
return | integer |
public total_items ( ) : integer | ||
return | integer |
public string $product_name_rules | ||
return | string |