Skip to content

Instantly share code, notes, and snippets.

View xlplugins's full-sized avatar

XLPlugins xlplugins

View GitHub Profile
@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;
}
@xlplugins
xlplugins / gist:86f4f79f620abe3ccc1fce39529568c7
Created October 30, 2025 08:51
Fix WFACP Shimmer Animation on Shipping Method Change
add_action('wfacp_internal_css', function() {
?>
<script type="text/javascript">
(function($) {
'use strict';
// Enable shimmer animation trigger for shipping method changes
function enableShimmerTrigger() {
if (window.refresh_page_data_load_trigger === false) {
window.refresh_page_data_load_trigger = true;
@xlplugins
xlplugins / gist:4afac4eb85c4a56be02c9bcd78930762
Last active October 29, 2025 12:00
Funnelkit Checkout: Disabled Next Button when packeta_shipping_method Value empty
class WFACP_Custom_Shipping_Method_Compatibility {
public function __construct() {
add_action( 'wfacp_internal_css', [ $this, 'add_js' ] );
}
public function add_js() {
?>
<script>
(function($) {
@xlplugins
xlplugins / gist:90cbbc10292c14911e192f4bd5f6fdb1
Created October 27, 2025 06:21
FunnelKit Checkout + Constant Contact WooCommerce Position Moved to billing email address
if ( ! class_exists( 'WFACP_Compatibility_Constant_Contact' ) ) {
class WFACP_Compatibility_Constant_Contact {
private $instance;
private $process_field = false;
public function __construct() {
add_action( 'wfacp_after_checkout_page_found', [ $this, 'setup_hooks' ] );
add_action( 'wfacp_internal_css', [ $this, 'add_css' ] );
}