Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter Vania

    (@twvania)

    I was able to confirm that the issue is caused by character normalization.

    As a quick test, I added the following workaround:

    add_filter( 'woocommerce_attribute_label', function( $label, $name, $product ) {
    return remove_accents( $label );
    }, 10, 3 );

    After applying this, variation options become selectable again and everything works as expected.

    However, this is not a valid solution, since it modifies the displayed attribute labels (e.g., “Ilość” → “Ilosc”), which is not acceptable for production stores.

    This confirms that the root cause is the mismatch between normalized (slugified) attribute names and human-readable labels when non-ASCII characters are involved.

    Best Regards,
    Vania

    Thread Starter Vania

    (@twvania)

    Hi Marin,
    It works perfectly, thank you very much!
    Great job!

    Best regards,
    Vania

    Thread Starter Vania

    (@twvania)

    Thread Starter Vania

    (@twvania)

    Thank you so much for the quick check and for confirming the issue! I’m glad you were able to reproduce the crash using my steps.

    I will wait for updates on this issue. I’m sure your attention to this critical incompatibility will help prevent problems for many users.

    Thank you and the whole team for your work!

    Thread Starter Vania

    (@twvania)

    Hi Frank,
    Thank you for the response!

    I understand that the New Product Editor is currently paused, but the issue I reported is still a real, reproducible bug in the version that is currently shipped inside WooCommerce. Even if the feature is paused for future development, the existing implementation should not crash or throw JavaScript errors — especially since users may still have the New Product Editor enabled.

    A few important clarifications:

    1. WordPress 6.9 RC4 is officially available via the WordPress Beta Tester plugin.
      It’s not an unofficial build — RC4 was released publicly and can be installed by anyone testing the upcoming version.
    2. WordPress 6.9 stable is being released today, which means WooCommerce will need compatibility very soon — and currently the Full Editor inside the Description field crashes immediately.
    3. Even if the editor is paused for redesign, the current code should fail gracefully, not break the entire Description UI with a JS exception.

    Because of this, I believe the issue should still be tracked as a bug in the existing implementation, so the team can patch or disable the problematic code path before it affects all users.

    Thanks!

    Thread Starter Vania

    (@twvania)

    After debugging, I discovered that the problem is not related to your plugin. It was caused by the way I was loading block patterns in the block_editor_settings_all filter.

    Specifically, this line in my code:

    WP_Block_Patterns_Registry::get_instance()->get_all_registered();

    When called inside block_editor_settings_all, it causes WordPress/WooCommerce to use the current screen’s fallback post ID.
    On the Create New Coupon page (/wp-admin/post-new.php?post_type=shop_coupon), there is no coupon ID yet, so WordPress uses the value of page_for_posts as the “current post ID”.

    As a result, Google Listings & Ads receives this incorrect ID and throws:

    Invalid coupon ID

    Once I restricted my code to run only in the product editor context, the issue disappeared.

    So the problem was caused entirely by my filter running in an unintended context, not by your plugin.

    Just wanted to update you so you don’t spend time investigating something that wasn’t caused by your code.

    Thanks!

    Thread Starter Vania

    (@twvania)

    https://pastebin.com/DE3gy1t6

    And error:

    [02-Dec-2025 10:45:13 UTC] PHP Fatal error:  Uncaught Automattic\WooCommerce\GoogleListingsAndAds\Exception\InvalidValue: Invalid coupon ID: 59 in .../wp-content/plugins/google-listings-and-ads/src/Exception/InvalidValue.php:95
    Stack trace:
    #0 .../wp-content/plugins/google-listings-and-ads/src/Coupon/CouponHelper.php(207): Automattic\WooCommerce\GoogleListingsAndAds\Exception\InvalidValue::not_valid_coupon_id(59)
    #1 .../wp-content/plugins/google-listings-and-ads/src/Admin/MetaBox/CouponChannelVisibilityMetaBox.php(138): Automattic\WooCommerce\GoogleListingsAndAds\Coupon\CouponHelper->get_wc_coupon(59)
    #2 .../wp-content/plugins/google-listings-and-ads/src/Admin/MetaBox/AbstractMetaBox.php(105): Automattic\WooCommerce\GoogleListingsAndAds\Admin\MetaBox\CouponChannelVisibilityMetaBox->get_view_context(Object(WP_Post), Array)
    #3 .../wp-admin/includes/template.php(1456): Automattic\WooCommerce\GoogleListingsAndAds\Admin\MetaBox\AbstractMetaBox->handle_callback(Object(WP_Post), Array)
    #4 .../wp-admin/edit-form-advanced.php(714): do_meta_boxes(Object(WP_Screen), 'side', Object(WP_Post))
    #5 .../wp-admin/post-new.php(75): require('/home/klient.dh...')
    #6 {main}
    thrown in .../wp-content/plugins/google-listings-and-ads/src/Exception/InvalidValue.php on line 95

    Screen: https://prnt.sc/Gokzh_2iB8D_

    • This reply was modified 5 months, 1 week ago by Vania.
    Thread Starter Vania

    (@twvania)

    I posted this thread by mistake. I searched for “jquery” on the plugin support page https://ww.wp.xz.cn/support/plugin/tiktok-for-business/ and ended up here:
    Please remove this topic.
    Thank you!

    Thread Starter Vania

    (@twvania)

    Hi Marin,

    thank you for the quick response and for releasing the fix so fast!
    I’ve just updated to version 2.5.7 and can confirm that everything works correctly now — the price comparison behaves exactly as expected with our 4-decimal setup.

    Really appreciate your work and the quick turnaround.
    Great job!

    Best regards,
    Vania

    Plugin Author Vania

    (@twvania)

    Hi Lee,

    Thank you very much for your detailed feedback and for explaining the rolled chart scenario — it’s a fascinating case!

    I wanted to let you know that Packaging Fit provides a flexible filter — twpf_prepare_api_request_data — which allows developers to modify the packing data right before it is sent to the packing API.

    Through this filter, you can customize the product list structure, adjust quantities, or even aggregate multiple items into custom “temporary” products with dimensions that better represent rolled or otherwise transformed items.

    For example, you could use this filter to group every 6 individual charts into a single “tube” product with custom rectangular dimensions, adjusting the quantity accordingly — so instead of 6 separate items, the packing algorithm receives 1 tube representing those 6 charts.

    Please note that Packaging Fit currently supports packing calculations only for rectangular boxes. Cylindrical or other non-rectangular shapes are not supported, so any custom “tube” product needs to be approximated as a rectangular box within the plugin.

    Best regards,
    Vania from TigriWeb

    Thread Starter Vania

    (@twvania)

    It’s not a problem, it’s just information 😉

    Thank you, the new version does not have this error.

    Best Regards,
    Vania

    Plugin Author Vania

    (@twvania)

    Hi Matthew,

    I hope this message finds you well!

    I wanted to inform you that we have released version 1.0.2 of our plugin. This update includes the addition of the twpf_prepare_api_request_data filter, which allows developers to modify the data sent to the Packaging Fit API before making the request. We believe this enhancement will provide greater flexibility for customization when interacting with the API.

    If you have any questions or need further details, feel free to reach out!

    Best regards,
    Vania from TigriWeb

    Plugin Author Vania

    (@twvania)

    Thank you for your feedback.

    We appreciate your suggestions and are committed to enhancing the functionality of our plugin. We will consider implementing a method to influence packaging sizes for postal quotes in the next update.

    Best regards,
    Vania from TigriWeb

    Plugin Author Vania

    (@twvania)

    Hi Joffrey,

    Thank you for the kind words and for the feedback!

    I’m glad to hear that the issue was resolved.

    We truly appreciate your support, and we’re excited to continue improving the plugin with future updates.

    Best regards,
    Vania from TigriWeb

    Plugin Author Vania

    (@twvania)

    This is very interesting! I applied the same settings, and now I see Box (1/1): Package 1.

    1. https://prnt.sc/5yKzcbtIUKfC
    2. https://prnt.sc/SMLVISX990Ip
    3. https://prnt.sc/ZZyvb10cEAz7

    Could you please check if your settings match mine? I want to make sure everything is configured the same way.

    Best regards,
    Vania from TigriWeb

Viewing 15 replies - 1 through 15 (of 16 total)