robertstaddon
Forum Replies Created
-
I noticed the exact same issue on my sites after updating to the latest version of Event Tickets! Hope that this is fixed soon. Thanks!
I’m not sure that @polevaultweb would be able to reply on these forums any longer. If you’d like to reach him, you may want to try directly through https://www.advancedcustomfields.com/
I noticed you’d released a new version! Good work. Thank you!
The only blocker for me using Stripe Tax now would be that it breaks the coupon field from working in with the default WooCommerce Blocks: https://www.ads-software.com/support/topic/breaks-coupon-field-in-woocommerce-blocks-cart-and-checkout/
Ok! I totally understand. I think it would be important to prioritize this as Blocks are now the default WooCommerce install. As a Pro subscriber, I’d love to use your plugin on new client deployments but I’m hesitant to have to roll back the beautiful new checkout experience to the old shortcode approach just to allow your plugin to work.
Forum: Plugins
In reply to: [LiteSpeed Cache] Admin Bar Missing on front end Divi SitesThank you @hailite ! I just installed the dev branch and it worked beautifully. Looking forward to the v6.5 release!
Forum: Plugins
In reply to: [LiteSpeed Cache] Admin Bar Missing on front end Divi SitesThat’s great to hear @qtwrk ! Thank you!
Forum: Plugins
In reply to: [LiteSpeed Cache] Admin Bar Missing on front end Divi SitesThank you, @thyran, for helping report this issue and @litetim and @qtwrk for trying to help replicate it. And @stefanr wins the prize for being the first to really pinpoint it in a replicatable way.
So my question is what would be the best next step. Should I email LiteSpeed support with login credentials to my dev site? Or hop on the developer Slack channel? Or submit an issue on the LiteSpeed GitHub?
Forum: Plugins
In reply to: [LiteSpeed Cache] Admin Bar Missing on front end Divi SitesOk, so I figured out the issue and have set up a staging site to replicate the problem. It only happens on Divi sites with a Theme Builder Global Header. Here’s how to reproduce the problem:
- Install LiteSpeed and enable ESI
- Install Divi theme and use the Theme Builder to create a Global Header with anything in it.
After doing the above, visit the frontend of the website and the top admin bar will disappear after refreshing the page.
The issue appears to somehow be related to the way that Divi executes and outputs the “wp_body_open” action in relation to the Theme Builder, perhaps to keep “wp_body_open” output from messing up a Global Header template. So when LiteSpeed Cache added the following line of code, it caused the admin bar ESI block to generate early but then it never gets added to the page:
add_action('wp_body_open', array($this, 'sub_admin_bar_block'), 0);
On all Divi pages with a Theme Builder, the admin bar code seems to output in the footer of the page using “wp_footer”. However, with ESI enabled, the admin bar code is now not placed there because $this->admin_rendered becomes true when the “wp_body_open” action is run.
Forum: Plugins
In reply to: [LiteSpeed Cache] Admin Bar Missing on front end Divi SitesI have confirmed that it is the following two lines of code added in LiteSpeed Cache 6.4 on lines 369 and 370 of src/esi.cls.php (to fix the Elementor button on the admin bar) that is causing the top admin bar to disappear on the frontend of all these Divi installs.
remove_action('wp_body_open', 'wp_admin_bar_render', 0);
add_action('wp_body_open', array($this, 'sub_admin_bar_block'), 0);I haven’t figured out exactly why quite yet and how to duplicate this on a clean new staging install…
Forum: Plugins
In reply to: [LiteSpeed Cache] Admin Bar Missing on front end Divi SitesI’ve repeated these same steps with a brand new dev site with Divi and LiteSpeed with ESI enabled and I am also unable to replicate the issue of the admin bar disappearing on the frontend.
However, I have over a dozen live sites where this issue is very much a problem and oddly enough disabling all other plugins does not seem to resolve it. There must be a special LiteSpeed or Divi setting somewhere that’s causing the problem but so far I have not been able to pinpoint it. In fact, the only solution that I’ve found so far for all of these live sites has been to roll back to LiteSpeed 6.3.0.1.
At the moment I’m working through the LiteSpeed 6.4 update code line by line to find out which one is triggering the problem. I’ll let you know what I find…
You might want to check your plugins and make sure that the latest version of “Product Recommendations – Custom Locations” is both installed and activated. Everything is working fine for me after updating to Product Recommendations to the latest 4.0.2 version but I had to go in and re-activate this “Product Recommendations – Custom Locations” to get the “Custom Locations” tab back. (For some reason upgrading this plugin to 2.0 caused it to deactivate and need to be re-activated.)
This issue has been resolved in the latest version of Woo Product Recommendations 4.0.2!
Forum: Plugins
In reply to: [WooCommerce] Always visible “add a discount code” form on the checkout pageThis would be a very helpful feature to have! I just added a feature request for it: https://woocommerce.com/feature-request/allow-the-cart-and-checkout-blocks-coupon-field-to-be-displayed-by-default/
I found the following snippet of code on the #developer Slack channel:
function enqueue_open_coupon_section_script() {
// Check if we are on the checkout page
if ( is_checkout() || is_cart() ) {
?>
<script type="text/javascript">
// using MutationObserver to detect when the coupon section is added to the DOM
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (mutation.addedNodes && mutation.addedNodes.length > 0) {
var couponButton = document.querySelector('.wc-block-components-totals-coupon button');
if (couponButton && !document.querySelector('.wc-block-components-totals-coupon').classList.contains('is-open')) {
couponButton.click();
observer.disconnect();
}
}
});
});
observer.observe(document.body, {
childList: true,
subtree: true
});
</script>
<?php
}
}
add_action('wp_footer', 'enqueue_open_coupon_section_script');Forum: Plugins
In reply to: [LiteSpeed Cache] Admin Bar Missing on front end Divi SitesI’m having the same issue on a bunch of Divi sites after updating to this latest version of LiteSpeed Cache. If ESI is turned on, the admin bar disappears on the frontend. It can re-appear intermittently but then disappears again. I’ve tried disabling all plugins and it appears to not be plugin related. It’s just an issue with Divi + ESI + the latest version of LiteSpeed Cache causes issues with the frontend admin bar.
Thank you!