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
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
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
<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
<?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
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
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
add_action( 'wfacp_internal_css', function () { | |
?> | |
<style> | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp-pro-thumb:after, | |
body .wfacp_pro_switch.wfacp_animation_start .product-name .wfacp_product_switcher_item:after, | |
body .wfacp_pro_switch.wfacp_animation_start .product-name .wfacp_product_name_inner > span:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_pro_attr_single:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_product_subs_details span:after, | |
body .wfacp_pro_switch.wfacp_animation_start .product-name .wfacp_product_select_options a:after, | |
body .wfacp_pro_switch.wfacp_animation_start .wfacp_quantity .wfacp_qty_wrap:after, |
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_order_summary_column_item_heading',function (){ | |
return 'Item'; | |
}); | |
add_filter('wfacp_order_summary_column_total_heading',function (){ | |
return 'Amount'; | |
}); |