Plugin Directory

Changeset 3445528


Ignore:
Timestamp:
01/23/2026 11:28:12 AM (2 months ago)
Author:
Picaland
Message:

Fixed: run checkout block validation/save hooks only when WooCommerce is active.
Fixed: guard checkout block loading so the plugin doesn’t load WC blocks when only PMPro is used.
Fixed: pass the provider to Invoice API, Peppol, and Webhook actions in the order list to support non-WooCommerce providers.

Location:
woopop-electronic-invoice-free/trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • woopop-electronic-invoice-free/trunk/addon/for/cozmos/vendor/composer/installed.php

    r3444920 r3445528  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     6        'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     16            'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • woopop-electronic-invoice-free/trunk/addon/for/pmpro/vendor/composer/installed.php

    r3444920 r3445528  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     6        'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     16            'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • woopop-electronic-invoice-free/trunk/addon/to/aruba/vendor/composer/installed.php

    r3444920 r3445528  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     6        'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     16            'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • woopop-electronic-invoice-free/trunk/addon/to/fattureincloud-stock/vendor/composer/installed.php

    r3444920 r3445528  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     6        'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     16            'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • woopop-electronic-invoice-free/trunk/addon/to/fattureincloud/vendor/composer/installed.php

    r3444920 r3445528  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     6        'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     16            'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • woopop-electronic-invoice-free/trunk/addon/to/sdi-pec/vendor/composer/installed.php

    r3444920 r3445528  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     6        'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     16            'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • woopop-electronic-invoice-free/trunk/changelog.txt

    r3444920 r3445528  
    1 = 6.5.9 - 20/01/2025 =
     1= 6.6.0 - 23/01/2026 =
     2Fixed: run checkout block validation/save hooks only when WooCommerce is active.
     3Fixed: guard checkout block loading so the plugin doesn’t load WC blocks when only PMPro is used.
     4Fixed: pass the provider to Invoice API, Peppol, and Webhook actions in the order list to support non-WooCommerce providers.
     5
     6= 6.5.9 - 20/01/2026 =
    27Added: PEPPOL via POP action to check document state from the admin with new stateInvoice AJAX endpoint and UI button.
    38Added: Applied wc_el_inv-invoice_progressive_file_number filter when generating PDFs and pass context (pdf/xml) to the hook.
    49Fixed: Use peppol_pop-{type}_uuid meta key when handling PEPPOL POP documents to read the correct UUID.
    510
    6 = 6.5.8 - 08/01/2025 =
     11= 6.5.8 - 08/01/2026 =
    712Added: resolveOrder
    813Fixed: disableInvoiceOnOrderTotalZero, add support for auto completed order
  • woopop-electronic-invoice-free/trunk/index.php

    r3444929 r3445528  
    77 * Description: POP automatically configures your e-commerce to comply with European tax regulations. Your e-commerce can generate electronic invoices in XML format and, thanks to our APIs, automatically transmit them to your accounting software and tax authorities.
    88 *
    9  * Version: 6.5.9
     9 * Version: 6.6.0
    1010 * Author: POP
    1111 * Author URI: https://popapi.io/
     
    5252define('WC_EL_INV_NAME', 'POP Electronic Invoice');
    5353define('WC_EL_INV_TEXTDOMAIN', 'el-inv');
    54 define('WC_EL_INV_VERSION', '6.5.9');
     54define('WC_EL_INV_VERSION', '6.6.0');
    5555define('WC_EL_INV_VERSION_CLASS', str_replace('.', '_', WC_EL_INV_VERSION));
    5656define('WC_EL_INV_PLUGIN_DIR', basename(plugin_dir_path(__FILE__)));
     
    158158// Init editor block
    159159add_action( 'current_screen', function( $screen ) {
    160     if ( property_exists($screen, 'is_block_editor') && $screen->is_block_editor && $screen->post_type === 'page' ) {
    161         $postID = \WcElectronInvoice\Functions\filterInput($_GET, 'post', FILTER_SANITIZE_NUMBER_INT);
    162         if ( $postID && has_block( 'woocommerce/checkout', get_post_field( 'post_content', $postID ) ) ) {
    163             \WcElectronInvoice\WooCommerce\Fields\InvoiceFields::popCheckoutBlockInit();
     160    if (\WcElectronInvoice\Functions\isWooCommerceActive()) {
     161        if (property_exists($screen, 'is_block_editor') && $screen->is_block_editor && $screen->post_type === 'page') {
     162            $postID = \WcElectronInvoice\Functions\filterInput($_GET, 'post', FILTER_SANITIZE_NUMBER_INT);
     163            if ($postID && has_block('woocommerce/checkout', get_post_field('post_content', $postID))) {
     164                \WcElectronInvoice\WooCommerce\Fields\InvoiceFields::popCheckoutBlockInit();
     165            }
    164166        }
    165167    }
     
    167169// Init frontend block
    168170add_action( 'template_redirect', function () {
    169     $checkoutID = wc_get_page_id('checkout');
    170     if ( $checkoutID && has_block( 'woocommerce/checkout', get_post_field( 'post_content', $checkoutID ) ) ) {
    171         if (is_checkout()) {
    172             \WcElectronInvoice\WooCommerce\Fields\InvoiceFields::popCheckoutBlockInit();
     171    if (\WcElectronInvoice\Functions\isWooCommerceActive()) {
     172        $checkoutID = wc_get_page_id('checkout');
     173        if ($checkoutID && has_block('woocommerce/checkout', get_post_field('post_content', $checkoutID))) {
     174            if (is_checkout()) {
     175                \WcElectronInvoice\WooCommerce\Fields\InvoiceFields::popCheckoutBlockInit();
     176            }
    173177        }
    174178    }
  • woopop-electronic-invoice-free/trunk/readme.md

    r3444920 r3445528  
    44* **Requires at least:** 4.6
    55* **Tested up to:** 6.9
    6 * **Stable tag:** 6.5.9
     6* **Stable tag:** 6.6.0
    77* **Requires PHP:** 5.6
    88* **License:** GPLv2 or later
     
    150150## Changelog
    151151== Changelog ==
    152 = 6.5.9 - 20/01/2025 =
     152= 6.6.0 - 23/01/2026 =
     153* Fix: run checkout block validation/save hooks only when WooCommerce is active.
     154* Fix: guard checkout block loading so the plugin doesn’t load WC blocks when only PMPro is used.
     155* Fix: pass the provider to Invoice API, Peppol, and Webhook actions in the order list to support non-WooCommerce providers.
     156
     157= 6.5.9 - 20/01/2026 =
    153158* Add: PEPPOL via POP action to check document state from the admin with new stateInvoice AJAX endpoint and UI button.
    154159* Fix: Applied wc_el_inv-invoice_progressive_file_number filter when generating PDFs and pass context (pdf/xml) to the hook.
    155160* Fix: Use peppol_pop-{type}_uuid meta key when handling PEPPOL POP documents to read the correct UUID.
    156161
    157 = 6.5.8 - 08/01/2025 =
     162= 6.5.8 - 08/01/2026 =
    158163* Add: resolveOrder
    159164* Fix: disableInvoiceOnOrderTotalZero, add support for auto completed order
  • woopop-electronic-invoice-free/trunk/readme.txt

    r3444920 r3445528  
    44Requires at least: 4.6
    55Tested up to: 6.9
    6 Stable tag: 6.5.9
     6Stable tag: 6.6.0
    77Requires PHP: 5.6
    88License: GPLv2 or later
     
    129129
    130130== Changelog ==
    131 = 6.5.9 - 20/01/2025 =
     131= 6.6.0 - 23/01/2026 =
     132* Fix: run checkout block validation/save hooks only when WooCommerce is active.
     133* Fix: guard checkout block loading so the plugin doesn’t load WC blocks when only PMPro is used.
     134* Fix: pass the provider to Invoice API, Peppol, and Webhook actions in the order list to support non-WooCommerce providers.
     135
     136= 6.5.9 - 20/01/2026 =
    132137* Add: PEPPOL via POP action to check document state from the admin with new stateInvoice AJAX endpoint and UI button.
    133138* Fix: Applied wc_el_inv-invoice_progressive_file_number filter when generating PDFs and pass context (pdf/xml) to the hook.
    134139* Fix: Use peppol_pop-{type}_uuid meta key when handling PEPPOL POP documents to read the correct UUID.
    135140
    136 = 6.5.8 - 08/01/2025 =
     141= 6.5.8 - 08/01/2026 =
    137142* Add: resolveOrder
    138143* Fix: disableInvoiceOnOrderTotalZero, add support for auto completed order
  • woopop-electronic-invoice-free/trunk/src/Admin/XmlOrderListTable.php

    r3444920 r3445528  
    342342            if (! Integrations::haveIntegrationActive()) {
    343343                // Invoice API actions
    344                 $output = InvoiceApi::actions($output, $id, $item);
     344                $output = InvoiceApi::actions($output, $id, $item, $provider);
    345345            }
    346346        }
    347347
    348348        if (! $sdiActions) {
    349             $output = PeppolApi::actions($output, $id, $item);
     349            $output = PeppolApi::actions($output, $id, $item, $provider);
    350350        }
    351351
    352352        if ('yes' === get_option('wc_el_inv-enable_pop_webhook')) {
    353353            // Webhook actions
    354             $output = webHookActions($output, $id, $item);
     354            $output = webHookActions($output, $id, $item, $provider);
    355355        }
    356356
  • woopop-electronic-invoice-free/trunk/src/WooCommerce/Fields/InvoiceFields.php

    r3409381 r3445528  
    28402840    public static function popCheckoutBlockValidationInit()
    28412841    {
     2842        if (! \WcElectronInvoice\Functions\isWooCommerceActive()) {
     2843            return;
     2844        }
     2845
    28422846        add_action('woocommerce_store_api_cart_errors', function ($cartErrors, $cart) {
    28432847            self::popCheckoutBlockValidation($cartErrors, $cart);
     
    28722876    public static function popCheckoutBlockSaveData()
    28732877    {
     2878        if (! \WcElectronInvoice\Functions\isWooCommerceActive()) {
     2879            return;
     2880        }
     2881
    28742882        add_action('woocommerce_store_api_checkout_update_order_from_request', function ($order, $request) {
    28752883            $rawPost = file_get_contents('php://input');
  • woopop-electronic-invoice-free/trunk/vendor/composer/installed.php

    r3444920 r3445528  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     6        'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => 'd9c0395d15bf6e203fbe6766ead6f504fd472256',
     16            'reference' => '661f7d088dc73adb618150fc1f5bf04b864ffcf5',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.