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
| /** | |
| * attaching the single schedule action on webhook event | |
| * this will take care of few edge cases where we have the stripe payment went through fine but in wc no activity shows up | |
| */ | |
| add_action( 'fkwcs_webhook_event_intent_succeeded', function ( $charge, $order ) { | |
| if ( as_has_scheduled_action( 'fkwcs_custom_single_order', [ 'order' => $order->get_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
| add_action( 'wfacp_internal_css', function () { ?> | |
| <script> | |
| window.addEventListener('bwf_checkout_load', function () { | |
| (function ($) { | |
| setTimeout(function(){ | |
| $(document.body).trigger('update_checkout'); | |
| },1000); |
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
| // ADDING 2 NEW COLUMNS WITH THEIR TITLES (keeping "Total" and "Actions" columns at the end) | |
| add_filter( 'manage_edit-shop_order_columns', 'wffn_custom_shop_order_column', 22 ); | |
| add_filter( 'woocommerce_shop_order_list_table_columns', 'wffn_custom_shop_order_column', 22 ); | |
| function wffn_custom_shop_order_column( $columns ) { | |
| $reordered_columns = array(); | |
| // Inserting columns to a specific location | |
| foreach ( $columns as $key => $column ) { | |
| $reordered_columns[ $key ] = $column; | |
| if ( $key == 'billing_address' ) { |
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_form', function () { | |
| ?> | |
| <script> | |
| window.addEventListener('bwf_checkout_js_load',function (){ | |
| jQuery.wfacp_step_scrolling= function (scrollElement) {}; | |
| wfacp_frontend.hooks.addFilter('wfacp_switch_steps_need_update_checkout',function (){ | |
| return 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
| class WFACP_CustomFields_Inside_Gateway { | |
| private $hook = 'woocommerce_checkout_after_terms_and_conditions'; | |
| private $hook_priority = 10; | |
| private $collected_fields = []; | |
| public function __construct() { | |
| add_action( $this->hook, [ $this, 'display_fields' ], $this->hook_priority ); |
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
| /** | |
| * Rendering Custom tracking script for thank you and upsell pages. | |
| * | |
| * @param $general_data | |
| */ | |
| function render_custom_script_tracking( $general_data ) { | |
| ?> | |
| <script type="text/javascript"> | |
| if (undefined !== wfocu_tracking_data && '' !== wfocu_tracking_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_action( 'wp_footer', function () { | |
| /** | |
| * Uncomment Below two line of code if you not used variable product in checkout | |
| */ | |
| //wp_dequeue_script( 'wc-single-product' ); | |
| //wp_dequeue_script( 'wc-add-to-cart-variation' ); | |
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
| /** | |
| this snippet Work only if funnel builder 2.13 or Greater and AeroCheckout 3.8.1 or Greater | |
| */ | |
| class FunnelKitMoveSectionBelowGateway { | |
| private $contained_section_fields = [ 7 => '']; | |
| public function __construct() { | |
| add_action( 'wfacp_internal_css', [ $this, 'css' ] ); |
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('load', function () { | |
| jQuery('body').on('fkcart_open', function () { | |
| (function (a, b) { | |
| a = "https://log.superceramiccoating.com/conversion.js?cid={clickid}&et=add_to_cart"; | |
| var c = b.createElement("script"), d = b.scripts[0]; | |
| if (b = b.cookie.match(/(^| )vl-cid=([^;]+)/)) if (-1 < a.indexOf("cid=")) a = a.replace(/cid=.*?(&|$)/, "cid=" + b.pop() + "&"); else { | |
| var e = -1 < a.indexOf("?") ? "&" : "?"; |