프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$cart |
메소드 | 설명 | |
---|---|---|
add ( SS_HTTPRequest $request ) : SS_HTTPResponse | Action: add item to cart | |
add_item_link ( Buyable $buyable, $parameters = [] ) | ||
clear ( $request ) : AjaxHTTPResponse | boolean | Action: clear the cart | |
debug ( ) | Displays order info and cart contents. | |
direct ( boolean | string $status = true ) : boolean | This is used here and in VariationForm and AddProductForm | |
index ( ) | Handle index requests | |
init ( ) | ||
remove ( SS_HTTPRequest $request ) : SS_HTTPResponse | Action: remove a certain number of items from the cart | |
remove_all_item_link ( Buyable $buyable, $parameters = [] ) | ||
remove_item_link ( Buyable $buyable, $parameters = [] ) | ||
removeall ( SS_HTTPRequest $request ) : SS_HTTPResponse | Action: remove all of an item from the cart | |
set_quantity_item_link ( Buyable $buyable, $parameters = [] ) | ||
setquantity ( $request ) : AjaxHTTPResponse | boolean | Action: update the quantity of an item in the cart |
메소드 | 설명 | |
---|---|---|
build_url ( $action, $buyable, $params = [] ) | Helper for creating a url | |
buyableFromRequest ( ) : Product | ProductVariation | Buyable | ||
params_to_get_string ( $array ) | Creates the appropriate string parameters for links from array | |
updateLocale ( $request ) |
public add ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
리턴 | SS_HTTPResponse |
public static add_item_link ( Buyable $buyable, $parameters = [] ) | ||
$buyable | Buyable |
protected static build_url ( $action, $buyable, $params = [] ) |
protected buyableFromRequest ( ) : Product | ProductVariation | Buyable | ||
리턴 | Product | ProductVariation | Buyable |
protected static params_to_get_string ( $array ) |
public remove ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
리턴 | SS_HTTPResponse |
public static remove_all_item_link ( Buyable $buyable, $parameters = [] ) | ||
$buyable | Buyable |
public static remove_item_link ( Buyable $buyable, $parameters = [] ) | ||
$buyable | Buyable |
public removeall ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
리턴 | SS_HTTPResponse |
public static set_quantity_item_link ( Buyable $buyable, $parameters = [] ) | ||
$buyable | Buyable |
public setquantity ( $request ) : AjaxHTTPResponse | boolean | ||
$request | ||
리턴 | AjaxHTTPResponse | boolean |