\dtg\gift_aid_for_woocommerceCheckout

Class Checkout

Checkout related functionality on the front-end.

Summary

Methods
Properties
Constants
__construct()
run()
insert_html()
add_to_checkout()
add_to_thank_you()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$plugin_root
$plugin_name
$plugin_prefix
N/A

Properties

$plugin_root

$plugin_root : string

Path to the root plugin file.

Type

string

$plugin_name

$plugin_name : string

Plugin name.

Type

string

$plugin_prefix

$plugin_prefix : string

Plugin prefix.

Type

string

Methods

__construct()

__construct() 

Constructor.

run()

run() 

Unleash Hell.

insert_html()

insert_html() 

Add a checkbox to choose Gift Aid at the checkout

add_to_checkout()

add_to_checkout() 

Re-insert the checkbox when the country is changed back to UK.

add_to_thank_you()

add_to_thank_you(integer  $order_id) 

Add confirmation of the donor's choice to reclaim Gift Aid to the thank you page.

Parameters

integer $order_id

Order ID.