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
| /** | |
| * Use Stripe "Link within card" integration instead of "Link as a payment method". | |
| * | |
| * Removing 'link' from payment_method_types tells Stripe to treat a Link payment as a | |
| * card (PaymentMethod.type = "card", wallet.type = "link"), preserving brand/last4/expiry | |
| * and IC+ pricing. Link still shows in the card form via wallets.link (left as 'auto'). | |
| * | |
| * Requires "Enable Link On Card Payment" = Yes in the Link by Stripe settings. | |
| * | |
| * @param array $methods Payment method types passed to the Stripe Payment Element. |
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' ); |
NewerOlder