Skip to content

Instantly share code, notes, and snippets.

View xlplugins's full-sized avatar

XLPlugins xlplugins

View GitHub Profile
@xlplugins
xlplugins / gist:fb18507a961b882ff326b40249bbb79c
Last active November 12, 2025 14:03
FunnelKit Checkout - Order Summary, Mini Cart & Collapsible Order Summary Hooks
# FunnelKit Checkout - Order Summary, Mini Cart & Collapsible Order Summary Hooks
This document contains all WordPress hooks (actions and filters) used in the Order Summary, Mini Cart, and Collapsible Order Summary components of the FunnelKit checkout.
---
## Table of Contents
1. [Order Summary Hooks](#order-summary-hooks)
2. [Mini Cart Hooks](#mini-cart-hooks)
@xlplugins
xlplugins / gist:c545ec2974da6a9ffed7d87ba2fe8c5b
Created November 12, 2025 13:10
Funnelkit Cart: Products Type Simple Exculde from Blacklist
add_filter( 'fkcart_product_support_select_options', function($status, $_product){
if($_product->get_type()=='simple'){
$status = true;
}
return $status;
} ,11,2);
@xlplugins
xlplugins / Dynamic upsell offer
Created November 12, 2025 07:30
Dynamic upsell offer
new WFOCU_Dynamic_Update_Offer_Product();
class WFOCU_Dynamic_Update_Offer_Product {
public function __construct() {
add_filter( 'wfocu_prepare_upsell_package_before', [ $this, 'maybe_dynamic_update_product' ], 10, 1 );
add_filter( 'wfocu_build_offer_product_before', [ $this, 'maybe_add_dynamic_product_in_offer' ], 10, 3 );
}
/**
* add upsell if user want for specific upsell else default return true
@xlplugins
xlplugins / gist:dfd3780bfd1a1dd0b135ab09cf5e2dc9
Last active November 12, 2025 07:36
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() {
@xlplugins
xlplugins / gist:bcb25190f24ee5de6c3a6a439d131a54
Created November 11, 2025 11:15
Funnelkit Cart: Slide Cart Trigger when bundle product added by Version 2.0.2 | By WowRevenue
add_action( 'wp_footer', function () {
?>
<script>
(function () {
window.addEventListener('load', function () {
(function ($) {
@xlplugins
xlplugins / gist:f8a4e39affdf751f38e0ed06acea3ce7
Created November 11, 2025 08:00
Funnelkit Cart: FKCart Draggable Icon Positioning
/**
* FKCart Draggable Icon Positioning System
*
* Enables drag-and-drop positioning for the floating WooCommerce cart icon
* with intelligent auto-snap to screen edges and persistent position storage.
*
* Features:
* - Touch/pointer drag & drop positioning
* - Auto-snap to left/right edges with smooth animation
@xlplugins
xlplugins / express button on all steps of checkout
Created November 10, 2025 11:05
express button on all steps of checkout
add_filter('wfacp_smart_container_display_hook',function (){
return 'wfacp_before_checkout_form_fields';
},9999);
@xlplugins
xlplugins / gist:b7040d6073f53dab7624a476933ffc1c
Created November 4, 2025 12:12
Funnelkit Cart: Display Save Price without round off
add_filter( 'fkcart_cart_item_saving_decimal_precision', function() {
return 2; // Show up to 2 decimals
});
@xlplugins
xlplugins / gist:bfd6e84ba2d773198cd32bdf6af39f16
Created October 31, 2025 07:49
FunnelKit Cart - Debounce quantity updates
add_filter('fkcart_quantity_debounce_delay', function() {
return 600;
});
class WFACP_Compatibility_CountryCodeFor_Elementor_Form_Telephone {
public function __construct() {
add_action( 'wp', [ $this, 'deque_script_optin' ] );
}
public function deque_script_optin() {
if ( ! WFOPP_Core()->optin_pages->is_wfop_page() ) {
return;
}