This file contains 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( 'wps_sfw_supported_payment_gateway_for_woocommerce', function ( $stripe ) { | |
$stripe[] = 'fkwcs_stripe'; | |
return $stripe; | |
} ); |
This file contains 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> | |
window.addEventListener('load', function () { | |
(function ($) { | |
try { | |
$(document).on('em_booking_success', function () { | |
console.log('fffff'); | |
$('body').trigger('fkcart_update_side_cart', [true]); | |
}); |
This file contains 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_product_attributes', function ( $attributes ,$product_obj, $product_id) { | |
if($product_id!==252753){ | |
return $attributes; | |
} | |
if ( isset( $attributes['attribute_razmer'] ) ) { | |
$attributes['attribute_%d1%80%d0%b0%d0%b7%d0%bc%d0%b5%d1%80'] = $attributes['attribute_razmer']; | |
unset( $attributes['attribute_razmer'] ); | |
This file contains 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_after_checkout_page_found', function () { | |
if ( function_exists( 'consulting_load_theme_scripts_and_styles' ) ) { | |
remove_action( 'wp_enqueue_scripts', 'consulting_load_theme_scripts_and_styles' ); | |
} | |
} ); |
This file contains 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_Change_Dropdown_Values { | |
public function __construct() { | |
add_filter( 'wfacp_admin_order_field', [ $this, 'change_options' ], 30 ); | |
add_filter( 'wfacp_forms_field', [ $this, 'change_options' ], 30 ); | |
} | |
public function change_options( $field ) { | |
if ( in_array( $field['type'], [ 'select', 'dropdown' ] ) ) { | |
$new_options = [ '' => '' ]; | |
foreach ( $field['options'] as $key => $option ) { |
This file contains 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_With_Inpost_For_WC { | |
private $instance = null; | |
public function __construct() { | |
add_action('wfacp_after_template_found',function(){ | |
add_action('woocommerce_review_order_before_shipping',function(){ | |
if(class_exists('InspireLabs\WoocommerceInpost\shipping\EasyPack_Shippng_Parcel_Machines')){ |
This file contains 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_get_settings_checkout',function ($settings, $current_section){ | |
if(isset($settings['section_title'])){ | |
$settings['section_title']= [ | |
'name' => __( 'Express Checkout', 'funnelkit-stripe-woo-payment-gateway' ), | |
'type' => 'title', | |
/* translators: HTML for the express checkout section heading */ | |
'desc' => sprintf( __( 'Accept payment using Apple Pay, Google Pay and Browser Payment using Express Buttons. | |
The visibility of these payment buttons is browser dependent. Click on "Test Visibility" button to see if your browser supports these button. | |
Learn more %1$1sabout the requirements%2$2s to show Apple Pay, Google Pay and Browser Payment method. Test', 'funnelkit-stripe-woo-payment-gateway' ), '<a href="https://stripe.com/docs/stripe-js/elements/payment-request-button#html-js-testing" target="_blank">', '</a>' ), |
NewerOlder