Class WC_Checkout

Checkout

The WooCommerce checkout class handles the checkout process, collecting user data and processing the payment.

Package: WooCommerce\Classes
Category: Class
Author: WooThemes
Version: 2.1.0
Class: WC_Cart
Located at includes/class-wc-checkout.php

Methods summary

public static Main
# instance( )

Main WooCommerce Instance

Main WooCommerce Instance

Ensures only one instance of WooCommerce is loaded or can be loaded.

Returns

Main
WooCommerce instance

Since

2.1

See

WC()
public
# __clone( )

Cloning is forbidden.

Cloning is forbidden.

Since

2.1
public
# __wakeup( )

Unserializing instances of this class is forbidden.

Unserializing instances of this class is forbidden.

Since

2.1
public
# __construct( )

Constructor for the checkout class. Hooks in methods and defines checkout fields.

Constructor for the checkout class. Hooks in methods and defines checkout fields.

public
# check_cart_items( )

Checkout process

Checkout process

public
# checkout_form_billing( )

Output the billing information form

Output the billing information form

public
# checkout_form_shipping( )

Output the shipping information form

Output the shipping information form

public integer
# create_order( )

create_order function.

create_order function.

Returns

integer

Throws

Exception
public
# process_checkout( )

Process the checkout after the confirm order button is pressed

Process the checkout after the confirm order button is pressed

public string|null
# get_value( string $input )

Gets the value either from the posted data, or from the users meta data

Gets the value either from the posted data, or from the users meta data

Parameters

$input
string
$input

Returns

string|null

Magic methods summary

Properties summary

public array $posted
#

Array of posted form data.

Array of posted form data.

public array $checkout_fields
#

Array of fields to display on the checkout.

Array of fields to display on the checkout.

public boolean $must_create_account
#

Whether or not the user must create an account to checkout.

Whether or not the user must create an account to checkout.

public boolean $enable_signup
#

Whether or not signups are allowed.

Whether or not signups are allowed.

protected static WooCommerce $_instance
#

The single instance of the class

The single instance of the class

Since

2.1
WooCommerce API documentation generated by ApiGen 2.8.0