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; | |
| } |
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('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; |
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_Custom_Shipping_Method_Compatibility { | |
| public function __construct() { | |
| add_action( 'wfacp_internal_css', [ $this, 'add_js' ] ); | |
| } | |
| public function add_js() { | |
| ?> | |
| <script> | |
| (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
| 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' ] ); | |
| } |
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
| if ( ! class_exists( 'ASEPTA_FreeGift_PriceFix' ) ) { | |
| class ASEPTA_FreeGift_PriceFix { | |
| public function __construct() { | |
| // Remove FKCart filters early to prevent conflicts | |
| add_action( 'init', [ $this, 'detach_fkcart_price_filters' ], 5 ); | |
| // Set 0.01 PLN for free gift items | |
| add_action( 'woocommerce_before_calculate_totals', [ $this, 'set_one_grosz' ], 99 ); | |
| add_action( 'woocommerce_cart_loaded_from_session', [ $this, 'set_one_grosz' ], 99 ); |
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
| $order_id = 44534535; | |
| $wfocu_session_ids = WFOCU_Core()->track->query_results( array( | |
| 'data' => array( | |
| 'id' => array( | |
| 'type' => 'col', | |
| 'function' => '', | |
| 'name' => 'session_id', |
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_With_Hezarfen_Turkish_Address' ) ) { | |
| class WFACP_Compatibility_With_Hezarfen_Turkish_Address { | |
| public function __construct() { | |
| // Ensure proper field types in FunnelKit | |
| add_filter( 'wfacp_checkout_fields', [ $this, 'modify_field_types' ], 999 ); | |
| // Add JavaScript for re-initialization | |
| add_action( 'wfacp_internal_css', [ $this, 'add_internal_js_css' ] ); |
NewerOlder