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
| window.addEventListener('load', function () { | |
| wfob_frontend.hooks.addAction('wfob_before_ajax_add_order_bump', function () { | |
| //put your code here when before order bump added to cart ajax run | |
| }); | |
| wfob_frontend.hooks.addAction('wfob_before_ajax_remove_order_bump', function () { | |
| //put your code here when before order bump remove item from cart ajax run | |
| }); |
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_Multiple_Country_Multilple_Checkout { | |
| private $country = [ | |
| 'DE', | |
| 'GB', | |
| ]; | |
| private $checkout_ids = [ | |
| '384387', | |
| '384341', | |
| ]; |
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 Fkcart_Min_Max_Snippet { | |
| public function __construct() { | |
| add_filter( 'woocommerce_quantity_input_args', [ $this, 'define_cart' ], - 1 ); | |
| } | |
| public function define_cart($args) { | |
| if ( wp_doing_ajax() ) { | |
| wc_maybe_define_constant( 'WOOCOMMERCE_CART', true ); | |
| } | |
| return $args; |
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_disabled_post_types', function ( $post_types ) { | |
| $post_types=array_filter( $post_types, function ( $i ) { | |
| return $i != 'wffn_landing'; | |
| } ); | |
| return $post_types; | |
| } ); |
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 FunnelKit_Multiple_Pixel { | |
| public function __construct() { | |
| // Liste des hooks groupés par type | |
| $this->add_filters( [ | |
| // Facebook Pixel ID | |
| 'wfocu_fb_pixel_ids', | |
| 'bwf_fb_pixel_ids', | |
| 'wfacp_fb_pixel_ids' | |
| ], 'get_fb_pixel_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
| add_action( 'wfacp_internal_css', function () { | |
| ?> | |
| <style> | |
| body #payment.wfacp_enable_loader .blockUI { | |
| display: block !important; | |
| } | |
| </style> | |
| <script> | |
| window.addEventListener('load', function () { | |
| if (undefined !== wfacp_frontend) { |
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_woocommerce_checkout_fields { | |
| public $new_fields = []; | |
| public function __construct() { | |
| /* Create Advance Field */ | |
| add_filter( 'wfacp_advanced_fields', [ $this, 'add_fields' ] ); | |
| add_filter( 'wfacp_forms_field', [ $this, 'hide_field' ], 99, 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
| add_action( 'wp_head', function () { | |
| ?> | |
| <style> | |
| body.single-product .mfp-wrap, .mfp-bg { | |
| display: none | |
| } | |
| body.single-product a.added_to_cart.wc-forward { | |
| display: none; | |
| } |
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_Fetchify{ | |
| public function __construct() { | |
| add_action('wfacp_before_form',[$this, 'add_fields']); | |
| add_filter( 'wfacp_internal_css', [ $this, 'add_css_js' ] ); | |
| } | |
| public function add_fields() { | |
| $instance=WFACP_Common::remove_actions('woocommerce_checkout_billing','WC_ClickToAddress_Autocomplete_Integration','addCheckoutJs'); | |
| if($instance instanceof WC_ClickToAddress_Autocomplete_Integration){ | |
| add_action('woocommerce_before_checkout_form',[$instance,'addCheckoutJs']); |