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() { | |
| ?> | |
| <script> | |
| (function($) { | |
| function addClassIfMissing() { | |
| var $fields = $('#billing_state, #billing_city'); | |
| $fields.each(function() { | |
| if (!$(this).hasClass('wfacp-form-control')) { | |
| $(this).addClass('wfacp-form-control'); |
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
| /** | |
| * Fluent Forms submission -> FunnelKit Optin contact + optin entry + analytics tracking | |
| * With debug logging in key areas. | |
| */ | |
| /** | |
| * ONE-TIME cleanup: delete all opt-in conversions from BWF conversion tracking table. | |
| * Optin conversions are identified by `type = 1` (per schema). | |
| * |
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_enqueue_smart_buttons_inline_script','__return_true'); |
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_after_checkout_page_found', function() { | |
| // Only proceed if we're on a FunnelKit checkout page | |
| if ( ! class_exists( 'WFACP_Common' ) ) { | |
| return; | |
| } | |
| $wfacp_id = WFACP_Common::get_id(); | |
| if ( empty( $wfacp_id ) ) { | |
| return; | |
| } |
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
| if ( ! class_exists( 'WFACP_Billing_Field_Copy_Handler' ) ) { | |
| class WFACP_Billing_Field_Copy_Handler { | |
| /** | |
| * Fields that should be copied from shipping to billing | |
| * | |
| * @var array | |
| */ | |
| private $copy_fields = array( | |
| 'first_name', |
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( 'woocommerce_checkout_fields', 'custom_override_checkout_fields', 9999999 ); | |
| function custom_override_checkout_fields( $fields ) { | |
| if(!$_POST['billing_document']){ | |
| unset( $fields['billing']['billing_document']['required'] ); | |
| } | |
| return $fields; | |
| } |
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 Fkcart_Trigger_Slide_cart_retrun_from_checkout { | |
| public function __construct() { | |
| add_action( 'wp_footer', [ $this, 'js' ] ); | |
| } | |
| public function js() { | |
| if(!is_shop()) { |
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( 'sgo_js_minify_exclude', 'emd_exclude_mv_scripts_handles' ); | |
| add_filter( 'sgo_javascript_combine_exclude', 'emd_exclude_mv_scripts_handles' ); | |
| add_filter( 'sgo_js_async_exclude', 'emd_exclude_mv_scripts_handles' ); | |
| function emd_exclude_mv_scripts_handles( $exclude_list ) { | |
| $exclude_list[] = 'wfob-bump'; | |
| return $exclude_list; | |
| } |
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 type="text/javascript"> | |
| (function($){ | |
| /** | |
| * ------------------------------- | |
| * 1. Your cart property logic | |
| * ------------------------------- |
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_enqueue_scripts', function() { | |
| // Only run on checkout pages | |
| if (!is_checkout()) { | |
| return; | |
| } | |
| // Check if FunnelKit is active and we're on a FunnelKit checkout page | |
| if (!class_exists('WFACP_Common')) { | |
| return; | |
| } |
NewerOlder