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: Aero + Flexible Invoices — invoice before NIP order | |
| * Description: Flexible Invoices can give the invoice checkbox and VAT/NIP the same priority as billing_company; WooCommerce then sorts them unpredictably. This sets stable priorities: company, then invoice checkbox, then NIP. Remove this file to disable. | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } | |
| add_filter( |
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_enqueue_scripts', | |
| static function () { | |
| if ( ! wp_script_is( 'wfacp_checkout_js', 'registered' ) ) { | |
| return; | |
| } | |
| wp_register_script( 'wfacp-restore-prefilled-names', false, array( 'jquery', 'wfacp_checkout_js' ), '1.3', true ); | |
| wp_enqueue_script( 'wfacp-restore-prefilled-names' ); | |
| $js = <<<'JS' |
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 () { | |
| if ( ! is_product() ) { | |
| return; | |
| } | |
| ?> | |
| <script> | |
| document.addEventListener('click', function (e) { | |
| var a = e.target.closest('a.wsatc-add-to-cart'); | |
| var wrap = document.getElementById('wsatc-stick-cart-wrapper'); | |
| if (!a || !wrap || !wrap.classList.contains('simple')) { |
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_enqueue_scripts', | |
| static function (): void { | |
| if ( ! wp_script_is( 'wfacp_checkout_js', 'enqueued' ) ) { | |
| return; | |
| } | |
| wp_add_inline_script( | |
| 'wfacp_checkout_js', | |
| <<<'JS' |
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 ChangeBlockUI { | |
| public $overlay_text = 'Processing'; | |
| public function __construct() { | |
| add_action( 'wfacp_after_checkout_page_found', [ $this, 'remove_actions' ] ); | |
| add_action( 'wfacp_internal_css', [ $this, 'internal_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
| /** | |
| * Plugin Name: FunnelKit PayPal + WooCommerce PayPal Payments — single SDK | |
| * Description: Optional fix when both plugins load PayPal JS SDK: removes the duplicate sdk/js tag and rewires FunnelKit script deps to PPCP’s loader. | |
| * | |
| * PayPal allows one https://www.paypal.com/sdk/js include per page. Two tags break window.paypal | |
| * (e.g. PPCP: "getFundingSources is not a function"). | |
| * | |
| * @package FunnelKit_PayPal_PPCP_Compat | |
| */ |