Problems with X Theme pro caching + woocommerce

Hello,
i have a problem with the X-Theme pro (2.5.5) and the X-Theme woocommerce plugin (3.5) and the caching of the page.

Short description (1):

  • I have manually adjusted the style of the page
    /wp-content/themes/x-child/style.css

Example:
.masthead.masthead-stacked .x-navbar .desktop .x-nav > li > a:not(.x-btn-navbar-woocommerce){
padding-left: 20px;
padding-right: 20px;
padding-bottom: 10px;
color: white;
}

  • Emptied the WP cache
    [WP Engine] > [General Settings] > [Purge all caches]

  • Emptied the X-Theme per cache
    [pro] > [settings] > [clear style cache]

  • Browser cache cleared

  • Then called the page and checked with the developer tool and he pulls the style from the above (path) style.css, but he has completely different values in it, because “color…” is missing.

.masthead.masthead-stacked .x-navbar .desktop .x-nav > li > a:not(.x-btn-navbar-woocommerce) {
padding-left: 20px;
padding-right: 20px;
padding-bottom: 10px;
}

Short description (2):
If you go to the woocommerce shop under …/shop/ and place a product in the shopping cart, the shopping cart symbol will be displayed. If you then switch to the shopping cart, it is empty.

I have seen it once, the browser has dragged the correct CSS files and there went the shopping cart.

I really have no idea what to do anymore.

=> Thanks for your help!

Hey Vincent,

I’d like to clarify first that WooCommerce is not our product so we can only cover the connections it has with our theme or our theme’s connection with WooCommerce. It’s an Approved plugin that you can conveniently install from the validation page but the installer only connects with the WordPress plugin repository.

The issue with CSS since caching related. WP Engine’s cache is very aggressive and even if you’ve cleared all caches, the cached version is still being served. Clearing browser cache won’t work in this case because the caching is in the server. To quickly test if this is really the case, you can change the version number of your child theme. If it doesn’t change when you check in the dev tools.

For the second issue where the cart is empty, there are different factors that could cause it so we first need to know if the issue is coming from:

  1. your child theme so please temporarily switch to the parent theme and check if the issue persists.
  2. a third-party plugin. Temporarily deactivate all third-party plugin and check again if the issue persists.
  3. some other factor outside of the theme’s control. To test this, switch to the default WordPress theme like the 2019 theme then again test if the issue persists. If the issue’s not fixed at this point, regretfully, you will need to consult with a third-party developer to fix WooCommerce for you.

If you can’t do those tests in your live site, please copy your site to a staging server. I believe that’s easy to do in a managed WordPress host like WP Engine.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.