Issue- Wishlist not displaying products.
-
Hello
When i click on “Add to wishlist”, it shows “added to wishlist” and when i go to wishlist it shows blank wishlist.
Thank You
https://www.ads-software.com/plugins/yith-woocommerce-wishlist/
-
Hi adukale,
are you using some cache plugin on your site?
In this case, you should set an exclusion rule for wishlist page, as its contents are not meant to be cachedLet me know!
Have a nice day! ??Hey
No i am not using any cache plugin.
Thank You
Hi again!
Can you share with us a link where I can check your problem?
In addition of that, does the problem occur for both logged-in and unauthenticated users?Let me know
Have a nice day ??Hello
Please see below url
https://www.mygrowingbelly.com/
Yes the issue occur for both logged in and unauthenticated users.
Thank You
Hi There,
I activated yith-woocommerce-wishlist.2.0.12 plugin and it’s supposed to add wishlist to woocommerce setting but I don’t see “wishlist” on my woocommerce setting and no wishlist in my products neither!
Please help me solve the issue.https://www.spiritualityera.com
Thanks
Just checked your installation as an unauthenticated user, and plugin correctly add products to the cookie (here a screen)
So I can’t really figure out where the problem lays; can you help me with some debug?
First things first, can you ask your server provider if there is page cache enabled on your server? If yes, can you ask them to add wishlist-2/* to page exceptions?
Then, can you try to add a debug var_dump to wishlist template?
Simply copy file /wp-content/plugins/yith-woocommerce-wishlist/templates/wishlist-view.php to your theme root; then open this brand new file and add<?php var_dump( $wishlist_items ) ?>
at line 49
This should print in wishlist page, before table, all wishlist contents, and would help me understand the problem
Thanks for your patience
Since version 2.0.0 of the plugin, wishlist doesn’t add anymore Wishlist section under woocommerce settings; you should find a new link “YIT Plugins” in you dashboard, with wishlist settings as subpage (here a screen)
Please, for future support request, open one topic for each problem; this will let us manage requests better, and will help users searching for a solution to their problem on the forum
Have a nice day ??
I have the same problem: any news about it please?
many thanks
Mario
Hi Mario, I’m sorry, but on my local installation plugin works fine, so I’m waiting for some additional information. Can you please follow this steps to help me debug the problem?
1. Share with us a link where I can check if product are correctly added to wishlist cookie / db table
2. Are you using some cache plugin?
3. Does your provider automatically cache pages for better performance?
4. Can you follow debug steps described in previous post and share with us the results?Let me know
Thanks for your patience
Have a nice day!Hello!
thanks for your reply.1- this is the link where you can try to add a product to the wishlist:
https://www.rewavelab.com/product/tote-bag-kite-esquinzo2- No, the plugin is installed but deactivated
3- i’ve verified and the provider use a cache control but it was deactivated since the beginning.
4- debug step completed.thanks for your help.
Mario
Here I am again, after some debug; here my conclusion:
– I checked default “add to wishlist” as unlogged user, and it doesn’t work
– I checked “add to wishlist” procedure, forcing it by calling site page with “add_to_wishlist” param (I.E. https://www.rewavelab.com/product/tote-bag-kite-esquinzo?add_to_wishlist=265 ). This is working fine
– After this test, I focused my attention on AJAX call of default add-to-wishlist; returned content is correct, and header Set-Cookie correctly setAnyway, admin-ajax url seems to point to an alias (https://rewavelabcom.ipage.com/rewavelab/wp-admin/admin-ajax.php), and Set-Cookie doesn’t set cookie for current domain
(This seems to be a pretty different problem from the one started the topic, even if it has the same symptoms)
Why other ajax calls are correctly working on your installation and wishlist “add to wishlist” request fails?
I checked “ajax_url” variable included in js on your site pages, and it seems woocommerce prefere to use a “relative” version of the path
I tried it on wishlist, and everything seems to work just fine, but I want to make more appropriate test before commiting it in plugin repo
If you want to try this solution yourself, please open wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl-init.php and change line 353 from this
'ajax_url' => admin_url( 'admin-ajax.php', is_ssl() ? 'https' : 'http' ),
to this
'ajax_url' => admin_url( 'admin-ajax.php', 'relative' ),
Let me know if this solves the problem
Have a nice day!RIGHT!
IT WORKS! excellent support!Thanks a lot to help me!
Have a nice day
Mario
Hi everyone,
I tried the above solution but it doesn’t fix the problem on my site. The wishlist only works for logged in users. If not logged in a message appears that the product was added but the wishlist remains empty. The cookie is created correctly (I think).
I have installed version 2.0.12 of the plugin. This is the url of my site https://gypeattarti.wpengine.com and I have disabled all caching in wp-engine.I would really appreciate if you could help me.
Thank you in advance.Something to add to the above question. If I add anything to the basket then the wishlist is displaying alla the items I had previously added. If I empty the basket the wishlist is empty.
Hi @smanolakis,
wp-engine use very aggressive page cache, and some of this systems are out of your direct control.
This is not a bad practice at all, as this can speed up your pages, but wishlit changes for every user, and cache may not be applied.
I suggest you to read this article from their support forum
Can you open a ticket to their support, asking them to disable cache for wishlist page and all urls matching
wishlist/*
pattern? Don’t forget to ask them to exclude
yith_wcwl_products
cookie from cache
Let me know if there are any updatesHave a nice day!
- The topic ‘Issue- Wishlist not displaying products.’ is closed to new replies.