Hi Yith team,
I launched my brand new site a few days ago with your plugin, and I did not realize the “Add to wishlist” button was not working properly… And I have no idea why :\
On Chrome and Firefox, it seems to work pretty well, but sometimes I can just add one first item to a wishlist, and then for the other ones it shows “Added to wishlist !” when you click on the heart… but items are not added in the wishlist. And it occurs whether you’re connected or not, I can’t see any difference.
On Edge, I can add one item, but it’s impossible to add others. And for some of my customers, their popup “Added to wishlist !” is blank, it displays an empty white rectangle, and that’s it… And it doesn’t add the item to the wishlist, of course…
Do you have any idea what could cause that ? Maybe an issue with other plugins ?
Many thanks for your help !
After some more investigations, it looks like some of my items just can’t be added to the wishlist, and I have no f*cking idea why… the items I created on my new version of WordPress are not able to be added to the wishlist, whereas my older ones are…
When I click on the heart on my old items, the heart comes filled black and the item is properly added to the wishlist. It shows “Product added to wishlist !”
When I click on my new items, the heart stays white, the item is not added to the wishlist but it shows the “Product added to wishlist !” message…
We hope you are doing well!
It is likely that some plugin is causing conflicts with ours, or it may even be your theme.
In order to see what is happening, could you send us the link of your page? Remember to activate the wishlist for all users, so we can do tests.
Could you try leaving only our plugin, WooCommerce and a default WordPress theme active? Let us know if by doing this the problem persists.
I’m looking forward to your response.
Have a nice day!
Thanks a lot for your reply 🙂 You’ll find my products here : https://www.plumesduweb.com/categorie-produit/livres-papier/
The first twelve items in this list have been done on this new website, the older ones are from my previous install (I made a huge update from a WordPress installed and not updated since 2017, the website was on an old server before with PHP 7.0, I couldn’t update too much without big issues).
If you try to click on the “Wishlist” button in this page on these first 12 items, the heart will stay white and the item will not be added to the wishlist. On the older ones, it works.
I tried your advices and also compared with my preproduction website (which was stopped 10 days ago, when I launched the website), and I’m completely lost lol
> On my preproduction, I have the same plugins (except “Facebook for WooCommerce” which is only on production), the same theme, and everything works just fine.
> On my production :
– I tried to disable all my plugins except yours and Woocommerce : I still have the issue
– I tried to switch to a default WordPress theme (I’m using GP Premium / GeneratePress) : still the issue.
It’s been 3 hours now that I’m looking for what I did since the website’s launch that could cause that… And I have no fucking idea.
And you know the best part ? I added a virtual item two days ago (the previous ones I talked about are “physical” items), the first on this page : https://www.plumesduweb.com/categorie-produit/e-books/
And its “Wishlist” button works… it’s the only product that was made on this new website, where the wishlist actually works.
Many thanks for your help :\
I can see the problem on your website, thank you for the URL.
It is very strange, maybe if you give us some extra information, we could approach to the solution:
-How do you create these products?
-Are default WooCommerce products? (Simple/virtual/variable)
-How did you import the older ones that work?
Let us know, please.
Have a nice day!
Thanks a lot for your kind support 🙂
I made a huge update of my WordPress, of all its plugins (Woocommerce included) and installed GP Premium to replace my old outdated theme. So the overall database is the original one, excepted these twelve new items which were created AFTER this huge update.
These Woocommerce products, as the older ones, were created via the Woocommerce interface, without any plugin. These are simple items, no virtual or variable ones.
Therefore, you made me think of something, I can’t tell if it’s related (and I don’t think so, but who knows…) but it’s the only difference between my preproduction server (where the Wishlist perfectly works) and the production one : when I was working on updating my website, a few clients made orders on my older production website. So after I launched the new website, in the same night, I made an import of these orders, via the “Order / Coupon / Subscription Export Import Plugin for WooCommerce (BASIC)” plugin.
I had an issue with phpmyadmin and no easy access to my database at this time to check the last post ID, but I knew my last page had the ID 9628 and my last order (a test one) the ID 9621, so I told the plugin to insert the “new orders from my old production” beginning at ID 9700 (they were from ID around 9000 in the previous website).
So, to simplify my thoughts : these 12 items were created between the 19th and the 22th of october, with IDs coming from 9452 to 9609, on my “new” website, and they are followed in the database, from IDs 9700 to 9712, by orders registered between the 14th of october and the 22th of october on my previous website… There is a “problem” if we consider the order of IDs VS the order of creation dates… And these 12 items are the only ones to “suffer” from it, as my older items were created in september, and the new ones have been created with IDs “post 9712” and I’m able to add them to the wishlist…
Wow, I investigated in my database, and I have an interesting hint : I found a lot of my customer already added these items to their wishlist, which made me think some of them could add them to their wishlist…
And then I saw mine XP Right now, I have 19 items in my “front-office” wishlist. In my database wishlist, it appears that I have a hundred : only one for each item I can see on my front office, but dozens for the other ones. My last created items is in my wishlist 20 times, it’s the one I tested my button the most… I can see the “dateadded” of each one of my tests…
So I think I found a bug, a bug I might created with my import of orders… But it looks like a bug anyway 😛
And I tried with my customers wishlists, I can see the same issue… Some of them tried many times to add the same item in the twelve new ones, and each one of their tries has its own line in the wp_yith_wcwl table…
Really strange and complex issue I think. But also checking your site I have seen that the problem could be with the configuration.
By default, variable products cant’ be added to the wishlist, but on your site, I can.
The problem could be with that because you are supposed to select a variation firstly before adding to the Wishlist or the button won’t work.
Could you try enabling the AJAX loading in the plugin options and Hiding the button on the loop? That way, they should go to the product page and select a variation before adding any product.
Let us know, please.
Thanks for your reply. I just updated the settings so that AJAX is on YES and Hiding the button on the loop is on NO. I cleared my cache, nothing seems to have changed. Olders items can still be added in my Wishlist, the twelve new ones can’t, and when I try to add them to my wishlist, it still adds one line in the wp_yith_wcwl table… :\
PS : I don’t have any variable product on my website, the options you can see on the product pages come from a plugin, “WooCommerce Extra Product Options Pro”…
I found a “way”, that’s pretty boring for me considering the accountancy (but I’ll deal with it…), but I’m about to recreate the products… If I duplicate one of these 12 items, immediately the brand new product works perfectly… That’s totally insane, they are just the same in the database posts and postmeta tables…
I also tried to change the creation date for my old products in the database, but it changed nothing…
- The topic ‘Adding to wishlist issues’ is closed to new replies.