Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Last active November 12, 2025 07:36
Show Gist options
  • Save xlplugins/dfd3780bfd1a1dd0b135ab09cf5e2dc9 to your computer and use it in GitHub Desktop.
Save xlplugins/dfd3780bfd1a1dd0b135ab09cf5e2dc9 to your computer and use it in GitHub Desktop.
Funnelkit Checkout: Compatability with theme Smart Home by Fuel Themes
class WFACP_Smart_Home_Theme {
public function __construct() {
add_action( 'wfacp_after_checkout_page_found', [$this, 'remove_action'] );
add_action( 'wfacp_checkout_after_order_review', [ $this, 'actions' ], 99 );
add_action( 'wfacp_internal_css', [$this, 'add_css'] );
}
public function remove_action() {
if(function_exists('thb_checkout_before_customer_details')) {
remove_action('woocommerce_checkout_before_customer_details','thb_checkout_before_customer_details',5);
}
if(function_exists('thb_checkout_after_customer_details')) {
remove_action('woocommerce_checkout_after_customer_details','thb_checkout_after_customer_details',30);
}
}
public function add_css(){
?>
<style>
.wfacp_shipping_options ul, .wfacp_shipping_table ul#shipping_method {
display: block;
}
.woocommerce-checkout-review-order {
border: none;
border-radius: 16px;
padding: 0;
}
</style>
<?php
}
public function actions() {
if(function_exists('thb_checkout_after_order_review')) {
remove_action('woocommerce_checkout_after_order_review','thb_checkout_after_order_review',30);
}
}
}
new WFACP_Smart_Home_Theme();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment