• Hi the source code gives this error and cart drawer opens up only sometimes:

    Uncaught (in promise) Error: TypeError: this.modals.popup is null
    /wp-content/plugins/cartpops/public/dist/js/frontend.min.js?ver=1.4.26:2
    frontend.min.js:2:46958

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Nanny7,

    Thanks for reaching out and letting us know about the error you’re encountering. We apologize for any inconvenience caused.

    To better assist you, could you provide some more details? Specifically, it would be helpful to know the steps you took before the error occurred, any additional error messages you might have seen, and the browser or device you’re using.

    Once we have this information, our team will investigate the issue and work on finding a solution for you.

    Thanks again, and we appreciate your patience!

    Best,

    Niel, Cartpops

    Thread Starter nanny7

    (@nanny7)

    Hi thank you for the quick reply.

    I don’t seem to be replicating it again for some reason. I have played with the settings so not sure if it was something that I had but do not now.

    I was having issues with it not opening up sometimes with clicking on the Divi theme shopping cart icon. I added this to stop the link going to the cart page:

    jQuery( document).ready( function( $ ){
    $( '.et_pb_menu__cart-button' ).on( 'click' , function() {
    CartPops.drawer.toggle();
    });
    });
    jQuery(document).ready(function($){
    $("a.et_pb_menu__icon.et_pb_menu__cart-button").attr('href','#cart');
    });

    I was trying to append your shortcode to the menu instead but couldn’t find it in the doc files. Maybe the #cart link is the issue but it has to have a link otherwise it refreshes the page.

    This is a website with only one product so that is why I wanted to remove the going to the cart page, too many steps.
    Do you have any idea how I can add your icon in there instead. I can disable the Divi cart icon altogether.

    Thread Starter nanny7

    (@nanny7)

    I added your class to the link in the menu and created the icon using this:

    cpops-toggle-drawer cpops-floating-cart__count
    <span class="menu-shop"></span>
    <span class="menu-shop"></span>

    I am wanting to have the cart count on the icon as well. Is there a way to do this? Also instead of an “x” for removing the product – is it possible to make it a trash can icon as it is confusing to see the other big X above the listed product.
    Thanks

    Hello Nanny7,

    After reviewing your request, I regret to inform you that there is no native feature within our system to achieve the specific customization you’re looking for. This type of request involves scripting and customization beyond the scope of our support services.

    Adding our icon to the menu, incorporating the cart count, and changing the removal icon to a trash can would require custom development and modifications to the theme’s code. It’s recommended to consult with a developer or technical expert who can assist you in implementing these customizations according to your specific needs.

    We apologize for any inconvenience caused and appreciate your understanding. If you have any further questions or need assistance with any other aspect, please feel free to ask.

    Best,

    Niel, Cartpops

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘js issue and not opening up every time’ is closed to new replies.