Home › Forums › WoodMart support forum › Wrong Products in Woodmart Compare Page
Wrong Products in Woodmart Compare Page
- This topic has 13 replies, 2 voices, and was last updated 3 years, 6 months ago by Elise Noromit.
-
AuthorPosts
-
May 12, 2021 at 5:38 pm #291882
CoternParticipantHello,
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 : activatedList 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 BakeryInfos :
– 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 displayedIt 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,
FabienMay 12, 2021 at 8:58 pm #291927
Elise NoromitMemberHello,
Please try to exclude the Compare page and Wishlist page from the cache plugin and check again.
Best Regards
May 12, 2021 at 9:00 pm #291929
CoternParticipantHello,
I did it. Nothing changes.May 12, 2021 at 9:07 pm #291933
Elise NoromitMemberHello,
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
May 12, 2021 at 11:20 pm #291949
CoternParticipantHere 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.May 13, 2021 at 10:46 am #292071
Elise NoromitMemberHello,
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
May 13, 2021 at 1:26 pm #292140
CoternParticipantThanks for checking the issue,
You need to remove and add more products to see the bug : https://recordit.co/1IXsdrZIT0
Best,
FabienMay 13, 2021 at 9:01 pm #292240
Elise NoromitMemberHello,
What browser and device do you use? I delete and it works properly: https://gyazo.com/2babf6a3f6b22ac3a5d6632f28b5b221
Best Regards
May 13, 2021 at 9:04 pm #292242
CoternParticipantI 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.
May 14, 2021 at 8:06 am #292312
Elise NoromitMemberHello,
Please deactivate the cache plugin
https://prnt.sc/12wu6nw
https://prnt.sc/12wu70bWP Rocket is deactivated but it worse,
Best Regards
May 14, 2021 at 1:50 pm #292451
CoternParticipantHi,
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.May 16, 2021 at 9:28 am #292667
Elise NoromitMemberHello,
If you have any questions please feel free to contact us.
Best Regards
May 18, 2021 at 7:00 pm #293437
CoternParticipantHi,
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/ziv7gaKI 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/CZXIGaoIt’s because the page gets cached by the browser, due to this rule:
https://jmp.sh/BIVXzMZSo I have added a different rule to the htaccess file to prevent this:
https://jmp.sh/0if9iJoAnd now the page works correctly:
http://recordit.co/743vgT7wYX”May 18, 2021 at 9:19 pm #293476
Elise NoromitMemberHello,
Thank you for sharing.
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
Tagged: compare
- You must be logged in to create new topics. Login / Register