Hi, I’m planning to move the site from localhost to production in a few days and today I noticed that I cannot remove items added to the wishlist. Nothing happens when I click on “X” button.
As I can see this feature works on your demo, could you please help to resolve my issue.
Did you have any reports of this kind so far that might help me?
Switching theme to WordPress default themes resolves the problem.
YITH WooCommerce Wishlist version: 2.0.3
Thank you
Theme version: 2.6.2 WooCommerce version: 2.3.5Hello,
please provide us with admin credentials for your site in private content.
Regards,
Stan Russell.
Hi, I’m still running the site on localhost as I build it for the client. Therefore, as much as I would like to, I cannot provide you access at this point..
<a href="javascript:void(0)" onclick="remove_item_from_wishlist( '/wishlist/view/?remove_from_wishlist=2', 'yith-wcwl-row-2');" class="remove" title="Remove this product">×</a>
<a href="javascript:void(0)" onclick="remove_item_from_wishlist( 'https://www.8theme.com/demo/legenda/wp-admin/admin-ajax.php?wishlist_item_id=7925', 'yith-wcwl-row-7925');" class="remove" title="Remove this product">×</a>
Forgot to wrap it
After spending all day by google for a solution, it seems to me that it is a theme issue after updating wishlist plugin. The theme is overwriting wishlist templates with the old ones.
This is what I get in the console:
Uncaught ReferenceError: remove_item_from_wishlist is not defined
I’ve found that many people has resolved this issue by updating the theme.
Any help is appreciated.
Hello,
You need disable Ajax “Add to Cart” option in Theme Options > Single Product Page.
Please do this and check Wishlist page after that.
Thank you.
Regards,
Eva Kemp.
Hi,
thank you for reply but it doesn’t help.
I forgot to mention earlier that adding products to wishlist is only possible when I’m logged in as an administrator.
what i can see from code is that this removal button is of class class=”remove” and has a ‘onclick’ call to remove_item_from_wishlist() function. However, latest version of plugin Yith wishlist (v2.0.3.) has its own binding to that function with:
$(document).on( ‘click’, ‘.remove_from_wishlist’, function( ev ){
var t = $( this );
ev.preventDefault();
remove_item_from_wishlist( t );
return false;
} );
they bind to a class which doesn’t exist in the whole theme (v2.6.2) and the jquery.yith-wcwl.js file in which remove_item_from_wishlist() function is implemented is not visible to theme files.
It’s probably something similar to ‘add to wish list’ functionality.
Importing that .js would probably fix this issue, but if versions of theme and plugin are incompatible in any other area, I don’t think that this is the way to do it.
Does any of this help?
It is possible that I got it wrong, I only took a look at the theme and plugin source code.
Theme version: 2.6.2 WooCommerce version: 2.3.5Hello,
Could you please provide us with FTP and wp-admin panel login details?
Thank you.
Regards,
Eva Kemp.
Sorry, I’m still building the website on localhost and it’s not publicly exposed. Do you have any other suggestions? Teamviewer perhaps?
BTW: I have looked it some more, in init of the plugin includes minified version of javascript which doesn’t ‘have’ the function you call in theme. they have made this function not available from anywhere else.
https://www.8theme.com/topic/single-product-page-problems/page/2/#post-45372
I think it’s the same issue. I also had the same issue. I backed up the file and removed from server. It worked fine.
Thank you. Actually it works. It’s not a happy solution because obviously somethings wrong, but it will work for now until the theme is either updated or serve another plugin. Thanks again
Hello,
You’re welcome!
If you have any questions please feel free to contact us.
Regards,
Robert Hall.
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.