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( 'wffn_export_conversion_timestamp', function ( $formatted, $local, $dt ) { | |
| if ( $dt instanceof DateTime ) { | |
| $utc = clone $dt; $utc->setTimezone( new DateTimeZone( 'UTC' ) ); | |
| return $utc->format( 'Y-m-d\TH:i:s\Z' ); // 2026-07-10T12:02:25Z | |
| } | |
| return $formatted; | |
| }, 10, 3 ); |
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( 'fkcart_item_image_size', function () { | |
| return 'woocommerce_thumbnail'; | |
| } ); | |
| // 2) Remove FKCart's default card border/radius on slide-cart images (framed posters have their own frame). | |
| add_action( 'wp_head', function () { | |
| echo '<style id="fkcart-frame-img-clean"> | |
| #fkcart-modal .fkcart-item-wrap .fkcart--item .fkcart-image-wrapper img{border:0 !important;border-radius:0 !important} | |
| #fkcart-modal .fkcart--item .fkcart-image-wrapper{border:0 !important;border-radius:0 !important;box-shadow:none !important;background:none !important} | |
| </style>'; |
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
| /** | |
| * Plugin Name: FK Order Bumps — master show/hide toggle | |
| * Description: Adds one master checkbox that shows/hides ALL FunnelKit order bumps at once. | |
| * Unchecking it also removes any added bump (via WFOB's own flow) and refreshes the | |
| * order review, and the final state is saved on the order for later inspection. | |
| */ | |
| defined( 'ABSPATH' ) || exit; | |
| /** | |
| * Persist the toggle state on the order + show it on the admin order screen. |
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( 'admin_init', function () { | |
| $run_key = 'fk_move_standalone_upsells_20260707c'; // change to re-run | |
| $log = function ( $m ) { if ( function_exists( 'wc_get_logger' ) ) { wc_get_logger()->info( $m, array( 'source' => 'fk-store-checkout-upsells' ) ); } }; | |
| if ( get_option( $run_key ) | |
| || ! class_exists( 'WFFN_Common' ) || ! class_exists( 'WFOCU_Common' ) || ! class_exists( 'WFFN_Funnel' ) ) { | |
| 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
| class Add_Custom_Fee_On_Change_Radio{ | |
| private $radio_fields = [ | |
| 'vin_choice' => [ //field ID need to create | |
| 'confirm-part-fitment-using-my-vin' => [ // value of the option | |
| 'label' => 'Confirm part fitment using my VIN', //frontend value of the option | |
| 'price' => 10 | |
| ], | |
| 'i-do-not-wish-to-provide-my-vin' => [ | |
| 'label' => 'I do not wish to provide my VIN', |
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 Add_Custom_Fee_On_Change_Checkbox { | |
| private $field_lable = 'Shipping Way Fee'; | |
| private $checkout_fields = [ | |
| 'shipping_way_0' => [ | |
| 'label' => 'Your label here', | |
| 'price' => 10 | |
| ], | |
| ]; |
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
| /** | |
| * "Link within card" for the main Card gateway only. | |
| * Leaves the standalone Link gateway and the express button untouched. | |
| */ | |
| add_filter( 'fkwcs_stripe_payment_element_data', function ( $config, $gateway ) { | |
| if ( ! is_object( $gateway ) || 'fkwcs_stripe' !== $gateway->id ) { | |
| return $config; // don't touch Link gateway / others | |
| } | |
| // Drop 'link' so the payment saves as a card-type PaymentMethod (keeps brand/last4). |
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_footer_after_print_scripts', function () { | |
| ?> | |
| <script> | |
| window.addEventListener( 'load', function () { | |
| wfacp_frontend.hooks.addFilter( 'wfacp_country_address_google_format', function ( output, components, instance ) { | |
| if ( output._country !== 'IE' ) { | |
| return output; | |
| } | |
| var number = instance.extractValueByType( components, 'street_number' ); | |
| var route = instance.extractValueByType( components, 'route' ); |