#56747 Cart quick view overlay not closing

Landing Forums JupiterX WordPress Theme Cart quick view overlay not closing

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • David S.

    Dear Artbees team,

    I am not able to close the cart quickview on desktop. Every time I click on the arrow to close it I get an error on the console:

    Uncaught TypeError: t(…).alterClass is not a function
    at HTMLButtonElement.<anonymous> (frontend.min.js?ver=1.18.0:1)
    at HTMLDocument.dispatch (jquery.js?ver=1.12.4-wp:3)
    at HTMLDocument.r.handle (jquery.js?ver=1.12.4-wp:3)

    Do you know how I can fix that? I use autoptimize, but the plugin has nothing to do with the error, because the error I pasted here is what I see when Autoptimize is disabled.

    The website is radianceswimwear.com

    Thank you!

    Tatyana Hutsol Support Team

    Hello,

     

    This issue has been already reported to the developers and they are working on it.

    The problem will be solved in the update.

    Please take our apologies.

     

    Thank you.

    Regards.

    Douglas Araujo

    Hello to solve this one must add AlterClass.js to code. There are many ways, the easy way is to paste this script into
    “Tracking Codes Before </body> Tag” on jupiter panel:

     

    <script>
    /**
    * jQuery.alterClass
    *
    * For altering classes
    *
    * @param removals (wildcards are possible)
    * [@param] additions
    * @return jQuery object
    *
    * @author Axel Jack Fuchs (Cologne, Germany)
    * @date 01-03-2016 10:33
    * @url https://gist.github.com/jackfuchs/3583421f2b21553efb364868e8c17be0
    *
    * Example
    * Before: <div class="remove-foo-1 remove-foo-2 remove-bar"></div>
    * Alter: $('div').alterClass('remove-foo-* remove-bar', 'add-foo add-bar');
    * Result: <div class="add-foo add-bar"></div>
    */

    $.fn.alterClass = function (removals, additions) {
    var self = this;

    if (removals.indexOf('*') === -1) {
    self.removeClass(removals);
    return !additions ? self : self.addClass(additions);
    }

    var patt = new RegExp('\\s'+ removals.replace(/\*/g, '[A-Za-z0-9-_]+').split(' ').join('\\s|\\s') +'\\s', 'g');

    self.each(function (i, it) {
    var cn = ' '+ it.className +' ';

    while (patt.test(cn)) {
    cn = cn.replace(patt, ' ');
    }

    it.className = $.trim(cn);
    });

    return !additions ? self : self.addClass(additions);
    };
    </script>

    Amir Rather Support Team

    Dear Douglas Araujo,

    Thank you so much for sharing this solution with us, I checked it and it worked.

    Well, this is exactly why we went public with our support platform so we could help each other out and save time.

    Thank you once again 🙂

    biechevarria-ab8bdf16

    Hello Douglas.
    What is your version the Jupiter X? Mine is v1.18.1 and I have copied and pasted your code and it has not solved anything for me.

    Why could it be?

    PD: please fix this quickly. Customers of a store cannot have this kind of problem

    Amir Rather Support Team

    Biechevarria

    I have used this code on multiple sites and it worked each time, Could you please send over your site URL and administrative WordPress access(in a private reply) so we can check what might be going on in the backend?

    Regards

    biechevarria-ab8bdf16

    Hi Amir.
    How can I write to you privately

    Tatyana Hutsol Support Team

    Hello @biechevarria,

     

    You can post your credentials here, just click on the button “Make this reply private” https://take.ms/v7b54 and it will be visible only to support agents.

     

    Thank you.

    Regards.

    Private
    biechevarria-ab8bdf16
    This reply has been marked as private.
    David S.

    Hi guys,

    I have the same problem as  @biechevarria. I pasted it in the panel, and I get other errors then.

    I’m using a temporary hack to remove the class on click, which works, but it is not clean since the error is still in the background… So it would be appreciated if you figure out how to solve it for him, if you could share what is the solution.

    Thanks!

    Amir Rather Support Team

    Hello @biechevarria,

    Thank you for the site URL please send over the Administrative Login Username and Password as well (in a private reply).

    @David S sure, keep checking this thread.

    Regards

Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login