Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WooCommerce Mini-Cart checkout and view cart buttons not displaying when Page Optimize is active #77366

Closed
rw-ye opened this issue May 25, 2023 · 12 comments
Labels
[Closed] Resolved Issue is resolved. Use for issues that can be closed but did not have an explicit fix with a PR. [Platform] Atomic [Pri] Low Address when resources are available. [Type] Bug

Comments

@rw-ye
Copy link

rw-ye commented May 25, 2023

Quick summary

The Mini-Cart checkout and view cart buttons do not show when the Page Optimize plugin is active along with some WooCommerce plugins such as WooCommerce Product Bundles.

Error message:

Oops!

Unexpected error in: woocommerce/mini-cart-footer-block

Error: Cannot read properties of undefined (reading '__experimentalUseColorProps')

Video

Screen.Recording.2023-05-25.at.4.39.50.pm.mov
Screenshot 2023-05-25 at 4 40 49 pm

Steps to reproduce

  1. Open an AT site.
  2. Install WooCommerce
  3. Install WooCommerce Product Bundles
  4. Activate Page Optimize
  5. Activate Product Bundles
  6. Add the Mini-Cart block to your site.
  7. Select the Mini-Cart on the front end and you'll see the error displaying instead of the checkout and cart buttons.

What you expected to happen

For the View my cart and Go to checkout buttons to display

What actually happened

Error:

Oops!

Unexpected error in: woocommerce/mini-cart-footer-block

Error: Cannot read properties of undefined (reading '__experimentalUseColorProps')

Impact

Some (< 50%)

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Atomic

Logs or notes

Reproduced on Storefront and Tsubaki

Workaround

  • Deactivate Page Optimize plugin or disable Concatenate scripts in Page Optimize settings: /wp-admin/options-general.php?page=page-optimize
@github-actions github-actions bot added [Platform] Atomic [Pri] Low Address when resources are available. labels May 25, 2023
@rw-ye rw-ye changed the title WooCommerce Mini-Cart buttons not displaying when Page Optimize is active WooCommerce Mini-Cart checkout and view cart buttons not displaying when Page Optimize is active May 25, 2023
@rw-ye
Copy link
Author

rw-ye commented May 25, 2023

User report: 6326939-zd-woothemes

@github-actions
Copy link

github-actions bot commented May 25, 2023

Support References

This comment is automatically generated. Please do not edit it.

  • 6326939-zen
  • 6323366-zen
  • 6330326-zen
  • 6330454-zen
  • 6328048-zen

@rw-ye
Copy link
Author

rw-ye commented May 25, 2023

6323366-zd-woothemes

@carinapilar
Copy link

Another report on 6330326-zd-woothemes

@shevene
Copy link

shevene commented May 25, 2023

6330454-zen

@cuemarie
Copy link

cuemarie commented May 25, 2023

📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain

  • Tested on Atomic – Could Not Replicate

📌 FINDINGS/SCREENSHOTS/VIDEO

  • So far I'm unable to replicate this problem; tested with Storefront and Tsubaki. Test specifics:
    • WordPress 6.2.2
    • WooCommerce Version 7.7.0
    • WooCommerce Payments Version 5.9.0
    • WooCommerce Product Bundles Version 6.18.6
    • Page Optimize Version 0.5.3
    • PHP Versions 7.4, 8.0
    • Themes: Storefront, Tsubaki

Screenshots/Recordings

uE4OE3.mov

Went back and added WooCommerce Product Bundles Version 6.18.6 after this recording - still no issues with the mini-cart block.

📌 ACTIONS

  • Requested author feedback

📌 Message to Author

  • @rw-ye @carinapilar @meetshevene - are your users still seeing this issue? Can you spot anything I'm missing in my recording that may explain why this isn't replicating at the moment?

@carinapilar
Copy link

carinapilar commented May 26, 2023

@cuemarie, the user I got had Woo’s Product Bundles active too, only worked after deactivating Page Optimize. I also had all other plugins deactivated.

@rw-ye
Copy link
Author

rw-ye commented May 26, 2023

@cuemarie I tried with WooCommerce Payments and can't replicate it now. However, I can still consistently replicate this issue with WooCommerce Product Bundles active. Updated the original post.

The plugins I have active are:

  • WooCommerce Version 7.7.0
  • Page Optimize Version 0.5.3
  • WooCommerce Product Bundles Version 6.18.6

On WordPress 6.2.2 and both PHP 7.4 and 8.0

@zdenys
Copy link
Contributor

zdenys commented May 26, 2023

6328048-zd-woothemes

@cuemarie
Copy link

Ok, looks like this was also reported here:

And was resolved by this fix: woocommerce/woocommerce-blocks#9586

Having WooCommerce Blocks (which supports Mini-Cart) active and up to date (v10.3.0 released 2 days ago) on my site resolves the issue.

📌 ACTIONS

  • Closing as fixed

📌 Message to Author/HEs

  • please make sure your customers have WooCommerce Blocks installed and up to date to resolve this error!

@cuemarie
Copy link

Since Woo folks have had very busy queues, I've gone ahead and replied to all the users whose interactions were shared above and asked them to install and activate the latest version of WooCommerce Blocks to resolve the issue. 👍

@mdtanjid0
Copy link

I encountered a similar problem where the user was still experiencing difficulties. Upon investigation, I discovered that the user had not installed the WooCommerce Blocks plugin. Installing the plugin resolved the issue. This is just a heads-up.

@cuemarie cuemarie added [Closed] Resolved Issue is resolved. Use for issues that can be closed but did not have an explicit fix with a PR. and removed [Status] Needs Author Reply labels May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Closed] Resolved Issue is resolved. Use for issues that can be closed but did not have an explicit fix with a PR. [Platform] Atomic [Pri] Low Address when resources are available. [Type] Bug
Projects
None yet
Development

No branches or pull requests

6 participants