Hello again dear Maason,
I have wrote to YITH Wishlist plugin author. You can find all the support ticket summary below. Could you please forward this to you coder and ask help about this?
ardeth (@ardeth)
4 days, 13 hours ago
Hello dear team,
When i add a product to whishlist, the whislist icon (on top right of my page) turns +1 but when i go back to home page the icon turns 0 again. When i purge all my cache on backend and refresh my home page than it become +1 again.
Could you please advise.
-------------------------------0-------------------------------
Antonio La Rocca (@therock130)
4 days ago
Hi Oguz
I’m afraid the counter on the top right of your site is added by your theme
In order to avoid cache problem, you should load it via ajax, as we do for ATW butons and other wishlist components
If you’re willing to do some coding, I could suggest you a resource of our knowledgebase
This describes how to create a wishlist counter updated via ajax
Besides, I could help you to tweak this code to force counter update on page load
-------------------------------0-------------------------------
ardeth (@ardeth)
3 days, 21 hours ago
Hello Antonio,
Thank you for your promt reply. I have added to code in resource link you have shared to my child theme functions.php. Unfortunately nothing has happened.
I’d be appreciate if you could help me for further steps.
Thank you.
-------------------------------0-------------------------------
Antonio La Rocca (@therock130)
47 seconds ago
Hi again
the code by itself isn’t enough
it defines a new shortcode, that you’ll need to place in your header
So the next step is to override default header template of your theme, and replace current counter with
"CODE AUTOMATICALLY REMOVING BY YOUR SYSTEM- I am forwarding the code from Skype."
(I’m afraid I have no more specific indications on this step, as it would vary from theme to theme)
Then we can move to next steps:
1. customize template to make it look like your previous counter
2. make it automatically refreshed in ajax on page load