Main
The class provides Custom Thank You Page feature to make customizable the WooCommerce Checkout
Source
File: includes/modules/woocommerce_booster/custom_thank_you/main.php
Expand full source code Collapse full source code View on Github
Methods
- add_admin_inline_script — Add inline admin scripts
- add_product_category_support_to_thank_you_edit — Add product category support for the custom thank you post type.
- disable_checkout_page_custom_layout — If there is an custom layout that created for checkout page, disable it for the thank you page.
- get_available_wc_payment_gateways — Get available payment gateway methods as array
- get_mapped_payment_gateways_for_select_control — Get mapped payment gateways to use in select control component
- get_mapped_shipping_methods_with_zone_prefix — Get all shipping method titles with zone title prefixes.
- get_order_with_order_key_validation — Get Order by the URL (Order ID in the url path and key in the GET params.)
- get_template — Get template files where in the modules/woocommerce_booster/custom_thank_you/templates/
- init — Initialization method
- is_ty_page_general — The method decides if the given custom thank you page is general (has not any restriction)?
- register_custom_post_type — Register the custom post type for thank you pages.
- register_meta_box_editor_assets — Register meta block editor assets
- register_meta_box_for_shipping_payment_match — Register block post metas
- register_order_details_block — Register the Gutenberg order details block and load assets
- render_order_details_block — Render Gutenberg order details block