• Resolved jackennils

    (@jackennilsen)


    Hello there!

    I have updated my staging site running latest WP-Optimize to WooCommerce 8.5.1. I was running 8.4 before. Now I’m facing strange issues:

    1. When I try to add a product to the cart which has variations, WC always tells me that I have to choose a variation first before I can add it to the cart. Even if I did. I did figure out that it is related to WP-Optimize. When it is disabled, selecting the variations and adding the product to the cart is working. At least partially (see issue 2). WC 8.5.1 must have broken something related to WP-Optimize as it was working flawlessly before.
    2. Without WP-Optimize I can select the variation and add it to the cart, but the cart stays empty. Even though I get the message that the product was added to the cart. But I guess this is another issue not related to WPO.

    Please can someone help? I cannot show a live example as I have (thankfully) only updated my staging environment until now. But if there is any chance of sending login credentials, you can take a look for yourself.

    Here’s a screen capture:
    https://lumiqy.de/WC8.5.1_issue_20240117.mp4

    Thanks
    Marco

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter jackennils

    (@jackennilsen)

    Figured out that issue 2 is caused by OMGF plugin.

    Plugin Support vupdraft

    (@vupdraft)

    Hi,

    You will need to exclude the pages with the product variation from caching under Cache >> Advanced settings >> URLs to exclude from caching

    Thread Starter jackennils

    (@jackennilsen)

    But why? It has always worked with caching until WC 8.5.1. Almost all products in my shop are with variations. This would make WPO useless for me.

    Plugin Support vupdraft

    (@vupdraft)

    You will find this with any caching plugin. For example, here is what WP Rocket says about this

    “Since key pages like the Cart and Checkout have to be excluded from the cache, but still need to be fast for conversions, optimizing your site and server in general will help”

    You could try using object caching for these pages instead (Redis for example)

    Thread Starter jackennils

    (@jackennilsen)

    Yes, for cart and checkout. Of course. But I was not talking about cart or checkout. I was talking about normal product pages. And as I have tried to explain, it has worked until WC 8.4. So something must have changed with the latest WC 8.5.1 update that WPO is not working properly anymore.

    Did you watch the video in my first post?

    Thread Starter jackennils

    (@jackennilsen)

    I get this error in my debug log:

    [19-Jan-2024 16:10:30 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w01a4bb6/web/staging-lumiqy2/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify.php:131) in /www/htdocs/w01a4bb6/web/staging-lumiqy2/wp-content/themes/woodmart/inc/integrations/woocommerce/functions.php on line 2311

    Maybe that helps?

    Plugin Support vupdraft

    (@vupdraft)

    Can you try deactivating minifcation?

    Thread Starter jackennils

    (@jackennilsen)

    It even works with minification enabled. Only merging of Java scripts files needs to be disabled. Any idea what could be the root course for that?

    I would hate to lose this function, as otherwise a lot of individual JS files would have to be loaded.

    Plugin Support vupdraft

    (@vupdraft)

    I would check if you should have merging enabled (if your site supports http2, you should not enable merging, it will slow your site down).

    You can check this here: https://tools.keycdn.com/http2-test

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Since 8.5.1: Selecting variations and adding item to cart not working anymore’ is closed to new replies.