This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'fkcart_product_support_select_options', function($status, $_product){ | |
| if($_product->get_type()=='simple'){ | |
| $status = true; | |
| } | |
| return $status; | |
| } ,11,2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action( 'wp_footer', function () { | |
| ?> | |
| <script> | |
| (function () { | |
| window.addEventListener('load', function () { | |
| (function ($) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'fkcart_cart_item_saving_decimal_precision', function() { | |
| return 2; // Show up to 2 decimals | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('fkcart_quantity_debounce_delay', function() { | |
| return 600; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | |
| } |
NewerOlder