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_Display_Billing_Shipping_Field_On_Thanku_Page { | |
public function __construct() { | |
/* | |
* Need to update billing format address | |
* | |
*/ | |
add_filter( 'woocommerce_order_get_formatted_billing_address', [ $this, 'wc_order_get_formatted_billing_address' ], 10, 3 ); | |
/* | |
* Need to update Shipping format address |
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 FKCART_Woo_Mix_And_Match_Products { | |
private $cart = []; | |
private $print_html=false; | |
public $button_html=''; | |
public function __construct() { | |
add_action('fkcart_after_item_meta',[$this,'action'],999,2); |
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 () { | |
jQuery(document.body).on('fkcart_cart_open',function(){ | |
if(jQuery('body').hasClass('mm-wrapper--position-left')){ | |
jQuery('body').removeClass('mm-wrapper--position-left') | |
} |
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
$environment_funnel_id = WFOCU_Core()->rules->get_environment_var( 'funnel_id' ); | |
$order_id = WFOCU_Core()->rules->get_environment_var( 'order' ); | |
WFOCU_Core()->log->log( 'Order #' . $order_id . ' match rule details for skip funnel ' . print_r( array( // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r | |
'funnel_id' => WFOCU_Core()->data->get_funnel_id(), | |
'match' => ( $match ) ? 'true' : 'false', | |
'environment' => $environment, | |
'environment_funnel_id' => $environment_funnel_id | |
), true ) . ' rule data ' . print_r( $rule, 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( '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'] ); | |