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 Sublium_Disable_Renewal_Emails { | |
| public static function init() { | |
| $email_ids = array( | |
| 'new_order', | |
| 'customer_processing_order', | |
| 'customer_completed_order', | |
| 'customer_on_hold_order', |
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
| // FKCart: show recurring total as product price + tax only (no shipping), subscriptions only. | |
| add_action( 'fkcart_after_order_summary', function () { | |
| if ( empty( WC()->cart->recurring_carts ) ) { | |
| return; | |
| } | |
| foreach ( WC()->cart->recurring_carts as $recurring_cart ) { | |
| $recurring_cart->set_total( (float) $recurring_cart->get_subtotal() + (float) $recurring_cart->get_subtotal_tax() ); | |
| } | |
| }, 5 ); |
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: WFACP — make shipping Phone actually required (Weight Based Shipping fix) | |
| * | |
| * In plain terms: | |
| * The shipping "Phone" field is set to required, but customers can still | |
| * check out with it empty. This puts the requirement back. | |
| * | |
| * Why it broke: | |
| * In this checkout layout WooCommerce doesn't re-check shipping fields, and the |
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_get_product_content_id', 'fk_skip_fb_content_id', 10, 2 ); | |
| add_filter( 'wfocu_get_product_content_id', 'fk_skip_fb_content_id', 10, 2 ); | |
| function fk_skip_fb_content_id( $content_id, $product_id ) { | |
| $excluded_ids = array( 1469 ); | |
| return in_array( (int) $product_id, $excluded_ids, true ) ? '' : $content_id; | |
| } |
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: FunnelKit – Temporary Email on Checkout | |
| * Description: Stamp a placeholder email on orders placed without one, so FunnelKit creates the contact. | |
| */ | |
| 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
| /** | |
| * ONE-TIME cleanup: remove duplicate FKCart conversion rows. | |
| * Keeps the earliest row per order; backs up removed rows first (reversible). | |
| * | |
| * Admin only: | |
| * /wp-admin/?fkcart_dedupe_conversions=report → counts only, no changes | |
| * /wp-admin/?fkcart_dedupe_conversions=delete → backs up, then removes duplicates | |
| * /wp-admin/?fkcart_dedupe_conversions=restore → undo (re-inserts from backup) | |
| * | |
| * Remove this snippet (and drop the *_dedup_bak tables) once you're done. |
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 FB_Coupon_Diagnostics { | |
| /** Logger source / log-file slug. */ | |
| private static $source = 'fb-coupon-diagnostics'; | |
| /** Per-request correlation id — unique to one HTTP request. */ | |
| private static $rid = null; |
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 | |
| /** | |
| * Sublium - Coupon restrictions for Subscribe & Save items | |
| * | |
| * Rules: | |
| * - Percentage coupons do not apply to Subscribe & Save items. | |
| * - Fixed coupons are blocked when a Subscribe & Save item exists in cart. | |
| * - Fixed coupons already applied are automatically removed. | |
| * - Percentage coupons are invalid when all cart items are Subscribe & Save items. | |
| */ |
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
| /** | |
| * Disable Google / Chrome auto-translate on FunnelKit Checkout pages only. | |
| * Adds Google's page-level opt-out meta tag to the checkout <head>. | |
| */ | |
| add_action( 'wfacp_checkout_page_found', function ( $checkout_id ) { | |
| add_action( 'wp_head', function () { | |
| echo '<meta name="google" content="notranslate">' . "\n"; | |
| }, 1 ); | |
NewerOlder