Forum Replies Created

Viewing 15 replies - 16 through 30 (of 581 total)
  • Hi @jbaker2112, that definitely is not a great experience and one we want to avoid as much as possible for users of the Cart and Checkout blocks. Would you be able to expand on what is breaking for you between updates? Any information is helpful!

    Plugin Author Darren Ethier (nerrad)

    (@nerrad)

    Hey there! Thanks for taking the time to leave a review. I’m interested in learning more about the lack of value you received from the documentation and appreciate any insight you can give.

    To be clear on what documentation you viewed, can you share with me the URL of what you referenced?

    What were you hoping to find in the documentation that wasn’t there?

    What were you hoping to accomplish with WooCommerce Blocks but were unable to?

    Thanks!

    Hi there! It’s great that you were immediately able to workaround the problem by deactivating WooCommerce Blocks, from the stack trace it’s not Woo Blocks that is actually triggering the fatal error. Something in your themes functions.php file is.

    PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /home/prettyme/public_html/wp-content/themes/legenda-child/functions.php:170\

    It appears whatever is in this theme file is hooking into something within WooCommerce (and via the stack WooCommerce Blocks). My guess (without having access to the relevant code in the theme file) is that this particular function in the theme is assuming a value is available when it isn’t in this context. Since this is a child theme, it may be custom to your site. Have you checked with the developer of the theme to learn more about this function in your theme and see why it would be throwing this error?

    The other possibility is that this portion of your PHP logs applies to a different error happening elsewhere on your site (and not in the context of the issue you are experiencing). One way to rule that out would be to activate WooCommerce Blocks again, and temporarily switch your site’s theme to a WordPress default theme (such as Twenty Twenty Three) and see if you still have the issues. If you do, then we know the stack trace you shared isn’t relevant. If you don’t, then that confirms the theme is the culprit (and the stack trace is for the right context).

    I hope that helps troubleshoot!

    Hi there. We definitely don’t intend this plugin as a joke and your experience is not what is being aimed for.

    You mentioned:

    I can’t understand yet what is the function of this plugin. There are no settings.

    We take care to craft the plugin description to help explain what it does. Is there anything in the description that wasn’t clear or left you with questions? I’d be happy to help answer any you might have.

    The only change I saw when turning it on was that it changed the style of my front page

    That’s unfortunate! I can understand how that would make someone upset. If you have the time to answer a few questions that we might be able to use for troubleshooting that could hopefully help prevent future users from experiencing the same:

    1. WooCommerce Blocks is intended to be used with WooCommerce. Is WooCommerce active on your site?
    2. What theme are you using?
    3. Will you share any details (before & after screenshots would be awesome!) about what specific styling changed on your front page. Was it styling for button elements? Were colors off or was it spacing? Did fonts change?
    4. Are you using a page builder plugin? If so, which one?
    Forum: Reviews
    In reply to: [WooCommerce Blocks] meh

    Thanks for taking the time to leave your review. This definitely isn’t the final experience we’re working towards. I’d be interested in understanding what would be “must have” customization options that you would like to see among the blocks you’ve tried.

    Thanks for reporting, this is definitely not expected and I’ve created an issue: https://github.com/woocommerce/woocommerce-blocks/issues/7176

    Thanks for reporting this issue @superskl5000. I did some investigation and did discover there are potentially some conditions with store configuration that can reproduce this error. I haven’t isolated exactly what those conditions are but have created a PR that should fix this and prevent a fatal error from occurring. The fix should surface in the next version of WooCommerce blocks after this PR is successfully merged.

    Hi there @nineplanetsllc – I did some troubleshooting of this and it looks like the Astra theme is capturing the onClick handler for the button. The relevant code is in their frontend.js theme:

    
    
    button.onclick = function() {
    			if ( -1 !== containerMenu.className.indexOf( 'toggled' ) ) {
    				containerMenu.className = containerMenu.className.replace( ' toggled', '' );
    				button.setAttribute( 'aria-expanded', 'false' );
    				menu.setAttribute( 'aria-expanded', 'false' );
    			} else {
    				containerMenu.className += ' toggled';
    				button.setAttribute( 'aria-expanded', 'true' );
    				menu.setAttribute( 'aria-expanded', 'true' );
    			}
    		};

    You could reach out to their support team and see if that’s something they could address.

    The specific relevant code in WooCommerce Blocks has been the same for 3 years.

    I hope that helps. Let us know how that goes!

    Plugin Contributor Darren Ethier (nerrad)

    (@nerrad)

    Hi there,

    I visited the link you shared (aeipaint.nl) and I don’t see a PHP out of memory error, but I do see some Elementor CSS visible in the content of your home page. Since I see you are using the Elementor plugin along with an extension for it, have you tried reaching out to the Elementor support team and see why the CSS for what appears to be Elementor widgets are being printed visibly?

    Hi there!

    Is there a timeline/estimate for when Blocks will stop being “experimental” and start working with WooCommerce’s own plugins (or when WooCommerce official plug-ins catch up and stop using webhooks for everything)? Or are there plans to update the regular checkout flow to be more user-friendly and current?

    You may be interested in this recent post which includes some info around the plans for the new checkout flow provided by blocks.

    Howdy there.

    It looks like Opayo actually does not support the Cart and Checkout Blocks and the docs are incorrect.

    I will be looking into getting the docs updated.

    You may want to reach out to the creator of the extension and request that they add support. You can reference this post we published for payment method extension developers.

    Hi there Johan, while from your post you have indicated that you noticed this happen as a result of updating the Gutenberg plugin, I’m not sure how there would be a causal relationship here. The fields you referenced are user-editable fields that are saved to the database and Gutenberg doesn’t have any integrations with WooCommerce that would impact that particular field.

    If you continue to see issues you may want to post in the WooCommerce support forums about this.

    Sorry about that, but the instructions above are actually incorrect. The provided CSS example is for the default Cart page (powered by the [woocommerce_cart] shortcode) and not the Cart block.

    In order to style the Proceed to Checkout button for the Cart block you would need to use something like this:

    
    .wp-block-woocommerce-cart .wc-block-cart__submit-button {
        background-color: #2596be;
    }
    

    Hi @fedux

    It does sound like what you are experiencing is related to this issue that is already known. We have a fix for that issue that is almost ready to go and should surface in the next release of WooCommerce blocks.

    For some background on why this bug surfaced, we did some recent changes to improve the performance of some of the WooCommerce blocks on the frontend by lazy loading certain assets. An unfortunate side-effect, is that by default, WordPress doesn’t support automatically loading translations for these lazy loaded “chunks” so that lead to issues similar to what you’re reporting where the translations for strings are available, but not loaded. The prepared fix will take care of that by automatically handling lazy loading translated strings along with the other assets as needed.

    To be clear though, while this will fix issues with translations coming from WordPress.org, we’re uncertain at this time whether it will also fix issues with plugins like Loco Translate that allow for on demand user customization of translated strings. Unfortunately that’s not something that we would be able to fix on our end if that’s the case, those plugins might need to add explicit support for lazily loaded translated strings.

    Also, this issue isn’t necessarily WooCommerce Blocks specific. This is one of the first plugins in the WordPress.org repository experimenting with improving performance on the frontend by lazily loading translated strings for JavaScript and it will be an issue for other plugins that start doing the same. At some point , this likely will be something addressed within WordPress itself.

    Thanks Milan, thanks for providing an update here.

    While you are somewhat correct, we have traced the issue to a combination of:

    – WooCommerce blocks requires the latest version of WooCommerce Core (see the announcement made earlier in the summer here
    – We had code in WooCommerce Blocks that was still executing an action extensions were using to validate the WooCommerce Blocks feature plugin was fully loaded when in fact it was paused because of incorrect version support on the related site. This in turn caused those extensions to throw a fatal PHP error because they were depending on code that should be loaded when in fact it was not.

    We are readying a fix that should be released relatively shortly that will address the fatal error, but users will still need to be on the latest version of WooCommerce in order to use the WooCommerce Blocks plugin and its features.

Viewing 15 replies - 16 through 30 (of 581 total)