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 DoubleYourBump { | |
| /** | |
| * Order Bump ID | |
| */ | |
| private $order_bump_id = 5699; // Order Bump | |
| /** | |
| * Discount percentage (e.g., 10 for 10% off, 20 for 20% off) |
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
| function load_wc_cart_fragments() { | |
| if (is_product()) { | |
| wp_enqueue_script('wc-cart-fragments'); | |
| } | |
| } | |
| add_action('wp_enqueue_scripts', 'load_wc_cart_fragments',9999); |
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 TEMP_WFACP_Conditional_Field_Depend_On_Payment { | |
| private $conditional_field = []; | |
| private $exclude_wfacp_ids = []; | |
| /** | |
| * @var string Payment method bank transfer selected then show fields | |
| */ | |
| private $payment_method_selected = 'bacs'; | |
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( 'woocommerce_order_button_html', function( $button_html ) { | |
| // Check if we're on a FunnelKit checkout page | |
| if ( ! function_exists( 'wfacp_template' ) ) { | |
| return $button_html; | |
| } | |
| $instance = wfacp_template(); | |
| if ( ! $instance ) { | |
| return $button_html; | |
| } |
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
| if ( ! class_exists( 'WFOB_Cascading_Bumps_Handler' ) ) { | |
| class WFOB_Cascading_Bumps_Handler { | |
| /** | |
| * Flag to track if fragment unsetting should be processed | |
| * | |
| * @var bool | |
| */ | |
| private $process = false; |
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 Dynamic_Percentage_Cart_Fee { | |
| // ==================== EASY CONFIGURATION ==================== | |
| // Change these values as needed (no technical knowledge required) | |
| private $field_name = 'feecost'; // Change this to your field name | |
| private $label = 'Yes i want to have these items shipped'; | |
| private $percentage = 10; // 10% of cart total | |
| // ============================================================ |
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 WFOB_Bump_Pre_Select_Fix { | |
| /** | |
| * OrderBump IDs to auto-select | |
| * | |
| * @var array | |
| */ | |
| private $bump_ids = array( 5641,5642,5643 ); // Your OrderBump IDs here in comma separated 2363, 2302, 2895 | |
| /** |
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( 'wfacp_return_to_cart_link', function( $cart_url ) { | |
| // Customize the cart URL | |
| return '/shop/'; | |
| }, 10, 1 ); |
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
| if ( ! class_exists( 'CT_MPAC_FKCart_Compat' ) ) { | |
| class CT_MPAC_FKCart_Compat { | |
| public function __construct() { | |
| add_action( 'plugins_loaded', array( $this, 'init' ) ); | |
| } | |
| public function init() { | |
| // Check if both plugins are active | |
| if ( ! class_exists( 'CtMPAC_Application' ) || ! class_exists( 'FKCart\Includes\Front' ) ) { |
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
| if (!class_exists('WFACP_Auto_Advance_After_Login')) { | |
| /** | |
| * Class WFACP_Auto_Advance_After_Login | |
| * | |
| * Auto-trigger the next page button after user logs in via smart login | |
| * on specific multi-step checkout forms | |
| * | |
| * @since 1.0.0 | |
| */ | |
| class WFACP_Auto_Advance_After_Login { |
NewerOlder