Okay
  Public Ticket #2609432
Wishlist Error
Closed

Comments

  •  1
    BartGB started the conversation

    Hi, i've got a problem with the GemMart Theme, first demo homepage, basically i can add and delete items from the wishlist, but i can't just view it because the button doesn't work. This happens just in the desktop view, because mobile works perfectly and the wishlist it's displayed correctly, how can i solve?

    If you want you can verify this problem, directly in the demo:

    https://ar-electromax.myshopify.com/

    Try to add items to wishlist, it will work, but if you click on the "My Wishlist" button on the top header, it won't.

  •  231
    Shopify Team replied

    Hi Bart,

    Thanks for purchasing our theme.

    Can you give us a staff account so we can fix this for you, please?


    Best regards,

    Shopify Team


  •  1
    BartGB replied

    Hi, thanks for replying so fast! Can't you just tell me how to fix it? I'm a developer too

  •  231
    Shopify Team replied

    Hi Bart GB,

    Please back up your theme and follow these steps below to fix it: 

    1. From Admin, Online Store - Themes - Actions - Edit code

    2. Open file Assets/gp-customjs.js.liquid

    8957594984.png

    3. Scroll to line 804~824 and replace the piece of code by this code below

    8448579146.png


    /* ADD TO WISHLIST */
      $(document).on('click touchend', function (e) {
        var container = $('.wishlist-slideout');
        var container2 = $('.btn-wishlist');
        var container3 = $('.my-account-link .link.wishlist a');
        var container4 = $('.site-header-wrapper .link.wishlist a');
        var container5 = $('#header.header1 .top-header-wrapper .header-account .link.wishlist');
        if (!container.is(e.target) && container.has(e.target).length === 0 && !container2.is(e.target) && container2.has(e.target).length === 0 && e.target.className != 'btn-remove-wishlist' && !container3.is(e.target) && container3.has(e.target).length === 0 && e.target.className != '.my-account-link .link.wishlist a' && container4.has(e.target).length === 0 && e.target.className != '.site-header-wrapper .link.wishlist a' && container5.has(e.target).length === 0 && e.target.className != '#header.header1 .top-header-wrapper .header-account .link.wishlist') {
          $('.wishlist-slideout').removeClass('active');
          $('.wishlist-slideout-container').removeClass('active');
        }
      });
    


    4. Click Save to save the updates and check the front end again.


    Best regards,

    Shopify Team


  •  1
    BartGB replied

    Tried the code, it doesn't work :(

    With the new code even the "add to wishlist" button stopped working, any other suggestion?

  •  231
    Shopify Team replied

    Hi BartGB,

    Can you give us the url site, please?


    Best regards,

    Shopify Team


  •  1
    BartGB replied

    The site right now is still in development and it's password protected, but again, the demo is affected by the same problem, i think you can try to fix it from there, 'cause i literally didn't touch anything, the site is very similar to the demo.

  •  231
    Shopify Team replied

    Hi BartGB,

    We've fixed our demo by this code that we sent to you.

    If we can't check your store, we don't know the error to fix it. We'll send file Assets/gps-customjs.js.liquid for you. Please replace code in this file to your theme.


    Hope you understand our situation. 

    Shopify Theme


  •  1
    BartGB replied

    Solved!

  •  231
    Shopify Team replied

    If you have any problems, please contact us 🤗

    Best regards,

    Shopify Team