Checkout_Processing implements Service, Registerable
Loads the various scripts and styles needed for the cart modal
Tags
Interfaces, Classes and Traits
- Service
- Marker interface to denote a service.
- Registerable
- An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
Table of Contents
- $settings : mixed
- __construct() : mixed
- Constructor
- maybe_add_wfc_checkout_field() : mixed
- Adds field to checkout form indicating checkout through WFC
- maybe_add_wfc_login_field() : mixed
- Adds field to checkout login form to properly redirect after login
- maybe_apply_wfc_key() : string
- Checks to see if user checked out through fast cart and adds parameter to redirect url
- maybe_get_payment_template() : string
- Replace payment confirmation template with WFC template
- maybe_get_success_template() : string
- Redirect order confirmation to WFC template
- maybe_redirect_login() : string
- Take user back to Fast Cart checkout after logging in.
- maybe_redirect_payment_processing_url() : array<string|int, mixed>
- Redirect the page to WFC template for later processing to open outside the checkout iframe
- register() : void
- Install checkout template filters and actions.
- save_wfc_checkout_field() : void
- Adds meta value to order if user checked out through fast cart
Properties
$settings
private
mixed
$settings
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —maybe_add_wfc_checkout_field()
Adds field to checkout form indicating checkout through WFC
public
maybe_add_wfc_checkout_field(mixed $fields) : mixed
Parameters
- $fields : mixed
-
checkout form fields
Tags
Return values
mixed —new fields
maybe_add_wfc_login_field()
Adds field to checkout login form to properly redirect after login
public
maybe_add_wfc_login_field() : mixed
Tags
Return values
mixed —maybe_apply_wfc_key()
Checks to see if user checked out through fast cart and adds parameter to redirect url
public
maybe_apply_wfc_key(array<string|int, mixed> $result, object $order) : string
Parameters
- $result : array<string|int, mixed>
-
redirection parameters array
- $order : object
-
WC_Order object
Tags
Return values
string —new redirection array
maybe_get_payment_template()
Replace payment confirmation template with WFC template
public
maybe_get_payment_template(string $template) : string
Parameters
- $template : string
-
template path
Tags
Return values
string —new template
maybe_get_success_template()
Redirect order confirmation to WFC template
public
maybe_get_success_template(string $template) : string
Parameters
- $template : string
-
template path
Tags
Return values
string —new template
maybe_redirect_login()
Take user back to Fast Cart checkout after logging in.
public
maybe_redirect_login(mixed $url) : string
Parameters
- $url : mixed
Return values
string —New URL
maybe_redirect_payment_processing_url()
Redirect the page to WFC template for later processing to open outside the checkout iframe
public
maybe_redirect_payment_processing_url(array<string|int, mixed> $result, string $order_id) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
-
the redirection details
- $order_id : string
-
post id of the order
Tags
Return values
array<string|int, mixed> —new redirection values
register()
Install checkout template filters and actions.
public
register() : void
Return values
void —save_wfc_checkout_field()
Adds meta value to order if user checked out through fast cart
public
save_wfc_checkout_field(string $order_id) : void
Parameters
- $order_id : string
-
post id of order