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_checkout_before_order_review', function () { | |
remove_action( 'woocommerce_checkout_order_review', 'woocommerce_gzd_template_order_submit', wc_gzd_get_hook_priority( 'checkout_order_submit' ) ); | |
} ); |
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('bwf_checkout_load', function () { | |
let form_attributes = $("input[form='wfacp_checkout_form']"); | |
form_attributes.each(function () { | |
$(this).attr('form', 'checkout'); | |
}); | |
}); |
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
<?php | |
function if_funnel_has_store_checkout_set() { | |
if ( ! class_exists( 'WFFN_Common' ) || ! method_exists( 'WFFN_Common', 'get_store_checkout_id' ) || 0 === WFFN_Common::get_store_checkout_id() ) { | |
return false; | |
} | |
$funnel = new WFFN_Funnel( WFFN_Common::get_store_checkout_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
<script> | |
(function () { | |
window.addEventListener('bwf_checkout_js_load', function () { | |
jQuery(document).ajaxComplete(function (event, jqxhr, settings) { | |
if (settings.url.indexOf("admin-ajax") > -1 && settings.hasOwnProperty('data') && settings.data.indexOf('wcpt_add_to_cart_multi')) { | |
jQuery.scroll_to_notices(jQuery('#wfacp_checkout_form')) | |
} | |
}); | |
}); | |
})(); |
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_footer', function () { | |
?> | |
<script> | |
window.addEventListener('bwf_checkout_load', function () { | |
(function ($) { | |
var bump_all_added = false; | |
var first_click = false; | |
wfob_frontend.hooks.addFilter('wfob_before_ajax_data_add_order_bump', set_custom_data); |
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( 'wfocu_offer_validation_result', function ( $result, $offer_build ) { | |
if ( false === $result ) { | |
return $result; | |
} | |
$get_order = WFOCU_Core()->data->get_parent_order(); | |
$yourcondition = false; | |
/** |
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
<?php | |
class WFACP_TEMP_001 { | |
public function __construct() { | |
add_action( 'wfacp_before_process_checkout_template_loader', [ $this, 'actions' ] ); | |
} | |
public function actions() { | |
add_filter( 'woocommerce_available_payment_gateways', [ $this, 'unset_payment_gatway' ] ); | |
} |
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_Product_Html_by_Id { | |
private $product_ids = []; | |
private $selected_product = 0; | |
private $display_products = [ | |
564, | |
1474, | |
]; | |
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> | |
#payment ul li div.payment_box { | |
display: none; | |
} | |
#payment ul li:first-child div.payment_box{ | |
display:block; | |
} |
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_billing_Phone_Field_Masking { | |
private $fields=['billing_phone','shipping_phone']; | |
public function __construct() { | |
add_filter( 'woocommerce_form_field_args', [ $this, 'add_default_styling' ], 10, 2 ); | |
add_action( 'wp_footer', [ $this, 'internal_css_js' ] ); | |
} |