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_Compatibility_Aruba_Fatturazione_Elettronica' ) ) { | |
| #[AllowDynamicProperties] | |
| class WFACP_Compatibility_Aruba_Fatturazione_Elettronica { | |
| /** | |
| * Aruba field keys in correct display order | |
| * Customer type and invoice choice first, then fiscal data heading, then tax fields | |
| * | |
| * @var array | |
| */ |
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> | |
| jQuery(function($) { | |
| $(document).ajaxComplete(function(event, jqxhr, settings) { | |
| // Check in settings.data (POST data) for the action | |
| if (settings && settings.data && | |
| settings.data.indexOf('action=bodycommerce_ajax_add_to_cart_woo') > -1 && | |
| jqxhr.status === 200) { | |
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('lpac_dps_available_location_hooks', function ( $hooks ) { | |
| $hooks['wfacp_before_shipping_calculator_field'] = __( 'Funnelkit Checkout Before Shipping Method', 'delivery-and-pickup-scheduling-for-woocommerce' ); | |
| $hooks['wfacp_after_shipping_calculator_field'] = __( 'Funnelkit Checkout After Shipping Method', 'delivery-and-pickup-scheduling-for-woocommerce' ); | |
| return $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
| class WFOB_Bump_Pre_Select_Fix { | |
| /** | |
| * OrderBump IDs to auto-select | |
| * | |
| * @var array | |
| */ | |
| private $bump_ids = array( 5503 ); // 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
| if ( ! class_exists( 'WFACP_Custom_Checkbox_Label' ) ) { | |
| #[AllowDynamicProperties] | |
| class WFACP_Custom_Checkbox_Label { | |
| public $checkbox_label = 'I have read and agree to the website <a href="#">Custom Link</a>'; | |
| public function __construct() { | |
| // Hook only after FunnelKit checkout page is found | |
| add_action( 'wfacp_after_checkout_page_found', [ $this, 'init' ] ); |
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 ($) { |