Wishlist item removal not working -urgent

This topic has 13 replies, 5 voices, and was last updated 9 years ago ago by Robert Hall

  • Avatar: mario83
    mario83
    Participant
    March 2, 2015 at 12:31

    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

    12 Answers
    Avatar: stan
    Stan Russell
    Participant
    March 2, 2015 at 13:14

    Hello,

    please provide us with admin credentials for your site in private content.

    Regards,
    Stan Russell.

    Avatar: mario83
    mario83
    Participant
    March 2, 2015 at 13:30

    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..

    Please, contact administrator
    for this information.
    Avatar: mario83
    mario83
    Participant
    March 2, 2015 at 15:44

    When I right click Inspect element this is what I get at my website:
    ×

    And this is how it looks on yours:

    ×

    Maybe that would give you some deeper insight.

    Avatar: mario83
    mario83
    Participant
    March 2, 2015 at 15:44

    <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

    Avatar: mario83
    mario83
    Participant
    March 2, 2015 at 18:00

    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.

    Avatar: Eva
    Eva Kemp
    Support staff
    March 2, 2015 at 18:07

    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.

    Avatar: mario83
    mario83
    Participant
    March 2, 2015 at 19:24

    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.

    Avatar: Eva
    Eva Kemp
    Support staff
    March 2, 2015 at 20:04

    Hello,

    Could you please provide us with FTP and wp-admin panel login details?

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: mario83
    mario83
    Participant
    March 2, 2015 at 21:52

    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.

    Avatar: jnunoalves
    jnunoalves
    Participant
    March 3, 2015 at 00:59

    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.

    Avatar: mario83
    mario83
    Participant
    March 3, 2015 at 09:59

    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

    Avatar: Robert Hall
    Robert Hall
    Support staff
    March 3, 2015 at 10:47

    Hello,

    You’re welcome!
    If you have any questions please feel free to contact us.

    Regards,
    Robert Hall.

  • Viewing 13 results - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.