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
// Paste your JS code here, don't include script tags<script> | |
window.addEventListener('load', function () { | |
(function ($) { | |
$('body .cart-trigger').click(function(){ | |
$('body').trigger('fkcart_open'); | |
$('.oxy-off-canvas').css('display','none') | |
}); | |
setTimeout(($) => { |
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
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 ) { |
NewerOlder