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
| /** | |
| * Disallow funnelkit stripe to save cards | |
| **/ | |
| add_filter('fkwcs_should_save_card',function( $save_card, $order) { | |
| $order_id = $order->get_id(); | |
| $save_card = ( function_exists( 'wcs_order_contains_subscription' ) && ( wcs_order_contains_subscription( $order_id ) || wcs_is_subscription( $order_id ) || wcs_order_contains_renewal( $order_id ) ) ); | |
| return $save_card; | |
| },10,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
| class WFACP_Theme_Dequeue_Specific_CSS_JS { | |
| private $handler = [ | |
| 'augury-woo-default', | |
| 'augury-woo', | |
| ]; | |
| public function __construct() { | |
| add_action( 'wfacp_after_checkout_page_found', [ $this, '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_filter('wfacp_register_advanced_field_types',function($fields_types){ | |
| $fields_types[]=[ | |
| 'label' => __( 'Date', 'woofunnels-aero-checkout' ), | |
| 'value' => 'wfacp_date', | |
| 'key' => 'wfacp_date', | |
| ]; | |
| return $fields_types; | |
| },999); |
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( 'Funnelkit_Post_Type_allow' ) ) { | |
| class Funnelkit_Post_Type_allow { | |
| public function __construct() { | |
| add_filter( 'wfob_offer_product_types', [ $this, 'add_post_types' ] ); | |
| add_filter( 'wfacp_offer_product_types', [ $this, 'add_post_types' ] ); | |
| add_filter( 'fkcart_product_types', [ $this, 'add_post_types' ] ); | |
| add_filter( 'wfocu_offer_product_types', [ $this, 'add_post_types' ] ); | |
| } | |
| public function add_post_types( $supported_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 FKWC_Enable_Coupon { | |
| public function __construct() { | |
| add_filter( 'woocommerce_coupons_enabled', [ $this, 'enable_coupon' ], 99 ); | |
| } | |
| public function enable_coupon( $status ) { | |
| if ( ! class_exists( '\FKCart\Plugin' ) ) { |
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_update_order_review_fragments', function ( $fragments ) { | |
| if ( isset( $fragments['.woocommerce-checkout-payment'] ) && empty( $fragments['.woocommerce-checkout-payment'] ) ) { | |
| ob_start(); | |
| if ( WC()->cart->needs_payment() ) { | |
| $available_gateways = WC()->payment_gateways()->get_available_payment_gateways(); | |
| WC()->payment_gateways()->set_current_gateway( $available_gateways ); | |
| } else { | |
| $available_gateways = 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_filter( 'jas_gecko_wc_shopping_cart', 'vincijaswim_disable_header_cart', 9999 ); | |
| function vincijaswim_disable_header_cart( $output ) { | |
| return do_shortcode( '[fk_cart_menu]' ); | |
| } |
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_Display_Regular_price_In_Mini_Cart { | |
| public $regular_price = ''; | |
| public $tmp_reg_price = []; | |
| public $is_on_sale_active = ''; | |
| public function __construct() { | |
| add_filter( 'wfacp_woocommerce_cart_item_subtotal_except_subscription', '__return_false' ); | |
| add_action( 'wfacp_woocommerce_cart_item_subtotal_except_subscription_placeholder', [ $this, 'display_cut_price' ], 10, 3 ); | |
| add_filter( 'wfacp_subscription_price_display', [ $this, 'display_cut_price_subscription' ], 10, 4 ); | |
| add_action( 'wfacp_template_load', [ $this, '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
| function is_CH_Country() { | |
| if ( is_null( WC() ) || is_null( WC()->customer ) ) { | |
| return false; | |
| } | |
| return WC()->customer->get_shipping_country() == "CH"; | |
| } |
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_caching_support', '__return_true' ); |
NewerOlder