Home Forums WoodMart support forum issues with caching of HTML block and price tracker popup

issues with caching of HTML block and price tracker popup

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #694943

    jackennils
    Participant

    Hi there,

    I’ve discovered another issue which came up lately.

    I’m using a caching plugin to generate static HTML versions of my pages, products and so on.

    Also I’m using the functionality of Woodmart to add a HTML block after the “add to cart” button on the product page as well as the new price tracker function which adds a link and if you click on it, the price tracker popup opens.

    But for some reason, on some cached product pages, the css style of the HTML block is wrong. And on some product pages the price tracker popup content is rendered directly into the product page. This happens only for a few product pages and seems to be somehow random. When I clear all the cache it happens for different items as before.

    Example:

    This is how it should look like:
    https://i.imgur.com/j0DdUVW.png
    The “Wusstest du schon?” block is the HTML block which is inserted after the cart button. The button inside that block should be with a white outline and rounded corners. Also the price tracker link should be displayed only when a “Modell” is selected, which is “mit Herz-Ausschnitt” in that case. And if you then click on the price tracker link, its popup opens. So all good.

    But this is how it actually was cached:
    https://i.imgur.com/idOAeS2.png
    The button does not have its style and the price tracker popup content is rendered directly into the product page – even though no “Modell” has been selected yet.

    It is a really strange behavior. Do you have any explanation for that? I have disabled the HTML block and the tracker on my live site for now, but it’s enabled on the staging site. I will provide login details and an example link in the private content area below for you to check out.

    I’ve tested WP-FastestCache and the caching function of WP-Optimize – same weird result with both plugins.

    Thanks
    Marco

    • This topic was modified 3 days, 2 hours ago by jackennils.
    #695086

    Hello,

    The behavior you’re seeing is likely caused by caching — may get “frozen” in a cached version of the page.

    To resolve this, try to exclude those product pages or URLs from being cached. Below are official documentation links showing how to do this with the two caching plugins you mentioned:

    https://www.wpfastestcache.com/features/exclude-page/,
    https://wordpress.org/plugins/wp-optimize/

    Best Regards,

    #695161

    jackennils
    Participant

    Hello Aizaz,

    Thank you for the quick reply. However, the provided solution is not really helpful.

    As I have described, it happens randomly. So the only solution would be to disable the caching for all products which is a very bad solution.

    I was hoping you could fix the features of your theme so that a standard caching plugin can be used as such a compatibility should be a matter of course.

    Thanks
    Marco

    #695277

    Hello,

    Please deactivate all the 3rd party plugins and activate only theme-required plugins on the site and then check the issue. I am sure your issue will be solved. Then, activate the 3rd party plugins one by one and check which plugin is creating the issue for you.

    Otherwise, if the issue still exists, then keep the 3rd party plugins deactivated and let me know I will further check and give you a possible solution.

    Best Regards,

Viewing 4 posts - 1 through 4 (of 4 total)