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 | |
| /** | |
| * Restore strikethrough HTML for FunnelKit Cart free-gift / reward items | |
| * when "WooCommerce Product Batch Expiry Tracking and Notifications" is active. | |
| * | |
| * The batch plugin filters woocommerce_cart_item_subtotal at priority 9999 | |
| * with an unconditional wc_price() call that wipes the <del>/<ins> markup | |
| * the rewards system produces. We re-apply the strikethrough at a higher | |
| * priority — but only for cart lines flagged as free gifts. | |
| */ |
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: Saved Addresses → Trigger Field Change Events | |
| * Description: The "Saved Addresses for WooCommerce" plugin auto-fills checkout | |
| * address fields via jQuery .val() but never triggers input/change | |
| * events. That breaks floating-label libraries (labels stay in | |
| * their empty-state position over the filled value), WC's | |
| * update_checkout listeners, and any third-party validators bound | |
| * to those fields. This snippet listens for the plugin's two AJAX | |
| * actions and dispatches input/change/keyup/blur on every populated | |
| * billing & shipping field after the response handler finishes. |
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
| /** | |
| * FunnelKit Stripe + FunnelKit PayPal — render the inline express-button | |
| * (Google Pay / Apple Pay / PayPal) inside the payment-method <li> instead | |
| * of beside the WooCommerce Place Order button. | |
| * | |
| * Drop into a child theme's functions.php, an mu-plugin file, or Code Snippets. | |
| */ | |
| add_action( 'fkwcs_stripe_apple_pay_after_payment_field_checkout', static function () { | |
| echo '<div class="fkwcs_stripe_apple_pay_button fkwcs-inline-relocated"></div>'; |
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 | |
| /** | |
| * Plugin Name: FK Uncode Variation Gallery Bridge | |
| * Description: Uncode binds its variation-gallery refresh handler inside an IIFE at $(document).ready. fkcart's update_fragments_from_session() runs replaceWith at the same point, orphaning the binding (the new node has no listener, and Single_Product isn't globally exposed). On window.load this re-fires uncode_get_variation_gallery and runs Uncode's full success chain so the lateral thumbnails rebuild. | |
| * Version: 1.0.0 | |
| */ | |
| defined( 'ABSPATH' ) || exit; | |
| add_action( 'wp_footer', function () { |
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
| function shoptimizer_child_bankful_hosted_direct_redirect( $url, $order ) { | |
| if ( ! function_exists( 'WC' ) || ! WC()->payment_gateways() ) { | |
| return $url; | |
| } | |
| if ( ! $order instanceof WC_Order ) { | |
| return $url; | |
| } | |
| if ( 'bankful_hosted_gateway' !== $order->get_payment_method() ) { | |
| return $url; | |
| } |
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 | |
| defined( 'ABSPATH' ) || exit; | |
| add_filter( | |
| 'wffn_ecomm_tracking_fb_params', | |
| static function ( $data, $order = null ) { | |
| if ( ! $order instanceof WC_Order ) { | |
| return $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_filter( 'fkwcs_stripe_payment_element_data', function( $data, $gateway ) { | |
| if ( ! is_array( $data ) || ! isset( $data['element_options'] ) ) { | |
| return $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
| <?php | |
| /** | |
| * Plugin Name: Plakatdyr — FunnelKit kundetype (MU) | |
| * Description: Theme customer-type radios on FunnelKit only; plakatdr CSS if missing; small #plakatdr-kundete override so WFACP’s global input[type=radio] rules do not break layout. | |
| * Version: 1.7.0 | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } |
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 WFOB_Single_Bump_Selector { | |
| private $bump_ids = array( 3094, 3095 ); // ← Your bump IDs here | |
| public function __construct() { | |
| add_action( 'wfob_before_add_to_cart', array( $this, 'remove_other_bumps' ), 5 ); | |
| add_action( 'wp_footer', array( $this, 'uncheck_other_bumps_js' ) ); | |
| } | |
NewerOlder