Homepage › Forum › Product Support › Sofani › Wishlist icon cache problem
- This topic has 19 replies, 3 voices, and was last updated 8 years, 12 months ago by
Jackie.
-
AuthorPosts
-
9 years ago #6026
When I add an item to the wishlist it shows 1 on shopping page but when I go to other pages it goes back to "0" because of caching. This doesn't happen on cart icon. How can I solve that?
9 years ago #6027This reply has been marked as private.9 years ago #6031Hi again,
Thanks for contacting us.
We have got access to your website then check Wishlist button > it works normally.
You can check 2 images attachment below.
Please check again, then feedback to us soon.
Best Regards,
YoloTheme
9 years ago #6036This reply has been marked as private.9 years ago #6066Hi again,
Thanks for your feedback.
We have got access to your website then checked the issue carefully.
It causes WP Super Cache plugin, please disable this plugin or try to use other cache plugins to get rid of the issue.
Best Regards,
YoloTheme
9 years ago #6069Ok I deleted wp super cache and installed w3 total cache, but now my site is super slow than before even gzip is enabled.
9 years ago #6070I am still having the same problem on IE with w3 total cache. Could you recommend me what caching plugin should I use with your theme?
9 years ago #6079Hi again, canyasa
Thanks for getting back to us.
Please wait for us. Our developers are checking your website then try to find the cache plugins that suitable for your website.
We will feedback to you as soon as possible.
Best Regards,
YoloTheme
9 years ago #6084Hi Canyasa.
I found a solution for your site and helped you add to your site.
Now it working fine.
You can check solution at this link https://wordpress.org/support/topic/wishlist-shortcode-does-not-work/
Check it and let me know again if you need something.
Regards.
Jackie.
9 years ago #6085Thanks for looking into it, right now page cache is not enabled that is why it is working now. Did you get a chance to test while page caching enabled? It was not working while page cache enabled.
9 years ago #6086Yes, you can enable your cache site. We just disable cache for wishlist function.
Regards.
Jackie.
9 years ago #6111Ok, I enabled and again it doesn't work. wishlist/* doesn't effect on anything. When I add the item to the wishlist and navigate to other page, wishlist icon shows "0".
8 years, 12 months ago #6132Hi Canyasa,
I see you disable wishlist icon at the header. Do you still need a wishlist icon?
I follow this trick https://wordpress.org/support/topic/wishlist-shortcode-does-not-work/ and work find on our demo site http://demo.yolotheme.com/sofani/ Our site use WP Super Cache.
You can check it and let me know, maybe you forgot clear cache.
Please check it and let me know again.
Regard.
Jackie.8 years, 12 months ago #6135I tried that too but when it caches the page, icon count doesn't work it shows the cached icon not updated icon so I decided to follow different path, maybe you guys can help me with that.
FYI, it doesn't work on your demo either. You can test it like how I did, clear all your cache and go to blog page (http://demo.yolotheme.com/sofani/blog-3-columns/) then go to shop and add a product to your wishlist, your wishlist icon will increase 1. Now go back to your blog page and voila your wishlist icon shows zero items in your wishlist.
If we go back to what am I trying to do is, I would like to show add wishlist icon only to logged in users. (I know yith has a paid version for it but I believe I can do display:inline-block thing without paying) I tried to display: none; on wishlist button's ID with using is_user_logged_in() function, it worked on button but it broke the "add cart button" :/
Do you know where should I put that code? (I wrote it on functions.php then deleted it cause of the cart button problem)
8 years, 12 months ago #6139Yes. This is an issue from wishlist plugin, and I'll feedback this author. So I can help you show wishlist icon for login user.
You can replace my attach file to folder
themes/yolo-sofani/templates/header/wishlist.php
Please check it and let me know again.
Regards.
Jackie.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.
