Home Forums WoodMart support forum Wrong Products in Woodmart Compare Page

Wrong Products in Woodmart Compare Page

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #291882

    Cotern
    Participant

    Hello,
    I’ve got issues with my compare page : the products I select are not the ones that are displayed on the compare page except when I select them directly from the compare page.

    Environment :
    Wordpress type : Multisite (sub directories)
    Host : o2Switch
    Child Theme : activated (function woodmart_compare_display_field has been customized)
    Cache Plugin : WP Rocket (compare page and woodmart_compare_list_2 cookie have been excluded)
    Cloudflare cache : activated (compare page is bypassed with Page Rules)
    Varnish cache : activated

    List of plugins :
    Copy Anything to Clipboard
    Easy Table of Contents
    Code Snippets
    Gumlet
    Leira Letter Avatar
    Loco Translate
    Safe SVG
    ShortPixel Image Optimizer
    WooCommerce
    WooCommerce Advanced Bulk Edit
    Woodmart Core
    WP Rocket
    WP Rocket | Varnish IP
    wpDataTables
    Yoast SEO
    WP Bakery

    Infos :
    – I’ve disables WP Rocket : nothing changed
    – I’ve disables Varnish cache : nothing changed
    – I’ve disables Cloudflare : nothing changed
    – I removed the custom woodmart_compare_display_field function : nothing changed
    – I switched to the main theme : nothing changed
    – woodmart_compare_list_2 cookie is filled up correctly
    – I imported my products to a new wordpress install a few weeks ago (everything is working fine)
    – When I remove one product from the comparison table, then table is updated with the correct products.
    – When I add ?whatever to the compare page URL, then the correct products are displayed

    It looks like a cache issue but when I disable all of them, the problem is still happening… I’m running out of ideas. Could you please help me?

    Best,
    Fabien

    #291927

    Hello,

    Please try to exclude the Compare page and Wishlist page from the cache plugin and check again.

    Best Regards

    #291929

    Cotern
    Participant

    Hello,
    I did it. Nothing changes.

    #291933

    Hello,

    Please provide your site admin access to the private area.

    Please confirm the permit for us to deactivate the plugins not related to the theme and switch to the parent theme for the while of checking what may take up to 15 minutes.

    Best Regards

    #291949

    Cotern
    Participant

    Here you go,
    Yes you can do it except WooCommerce if possible…
    I removed WP Rocket, Cloudflare, Varnish and I already switched to woodmart parent theme.

    #292071

    Hello,

    I am checking the issue and do not see the problem: https://gyazo.com/9967b30c446c149e97587c936087f97f \

    I have added three items from the shop page, I see these items on compare page.

    Please provide step-by-step actions to reproduce the problem.

    Best Regards

    #292140

    Cotern
    Participant

    Thanks for checking the issue,

    You need to remove and add more products to see the bug : https://recordit.co/1IXsdrZIT0

    Best,
    Fabien

    #292240

    Hello,

    What browser and device do you use? I delete and it works properly: https://gyazo.com/2babf6a3f6b22ac3a5d6632f28b5b221

    Best Regards

    #292242

    Cotern
    Participant

    I tried with Chrome, Firefox and Safari. Can you keep on adding and removing products? The bug occurs when you leave the compare page, select new products and come back to the compare page.

    #292312

    Hello,

    Please deactivate the cache plugin

    https://prnt.sc/12wu6nw
    https://prnt.sc/12wu70b

    WP Rocket is deactivated but it worse,

    Best Regards

    #292451

    Cotern
    Participant

    Hi,
    I don’t understand what you mean by “WP Rocket is deactivated but it worse” but I deactivated WP Rocket at the network level and it seems to work properly. So apparently it’s an issue with WP Rocket. I’ll investigate with them and I’ll come back to you if they say that their is something to do with the theme.
    Thanks.

    #292667

    Hello,

    If you have any questions please feel free to contact us.

    Best Regards

    #293437

    Cotern
    Participant

    Hi,

    FYI WP Rocket investigated this problem and they fixed it. Here is their answer in case it can help you to improve the theme or help someone to solve this issue :

    “I can see that the exclusions are set up correctly, and indeed the comparison page is not cached by WP Rocket, there is no folder for the page on the server:
    https://jmp.sh/ziv7gaK

    I think it’s now a browser caching issue. When using Incognito mode (browser caching disabled) there is no problem.

    But in a normal browser window, I could see that the comparison page is served from the browser cache, which is not updated. When reloading the page, the correct information then shows:
    https://jmp.sh/CZXIGao

    It’s because the page gets cached by the browser, due to this rule:
    https://jmp.sh/BIVXzMZ

    So I have added a different rule to the htaccess file to prevent this:
    https://jmp.sh/0if9iJo

    And now the page works correctly:
    http://recordit.co/743vgT7wYX”

    #293476

    Hello,

    Thank you for sharing.

    If you have any questions please feel free to contact us.

    Best Regards

Tagged: 

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