Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #694155

    I’m using a separate woocommerce pro cart plugin from codecanyon. It’s conflicting with enfolds cart. How do I completely disable all of enfolds cart feature so there is no JavaScript problems. Need it to just be removed from mobile and desktop.

    The pro plugin I use has a floating shopping cart icon and modal overlay upon adding to cart. That’s why I need enfolds disabled.

    Thank you. Your theme is super!

    Gary

    #694876

    Hey grpetz,

    Thank you for using Enfold.

    Please add this in the functions.php file.

    add_action('after_setup_theme','ava_woocommerce_mod', 100);
    function ava_woocommerce_mod() {
    	remove_action( 'init', 'avia_woocommerce_cart_placement', 10);
    }
    

    Best regards,
    Ismael

    #1483484

    Hello,

    Sorry to revive an old thread, but this is related and I figured it’d be nice to have both answers in the same place.

    I don’t want to disable the cart icon from the header—it’s fine if it always appears, even with no items in cart—but I want to disable the cart modal popup and the little icon showing the number of cart items added. These features require calls to get_cart_contents_count on every page load, which prevents caching for new customers as soon as they’ve added an item to their cart (as they browse other items in the store). Is this possible with Enfold?

    Thanks!

    #1483575

    Hi,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    #menu-item-shop .av-cart-counter,
    #menu-item-shop .dropdown_widget_cart {
    	display: none !important;
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1483588

    Hi Mike,

    My goal isn’t to hide the cart modal and indicator. My goal is to disable it. Simply hiding something doesn’t prevent the underlying code from running, and this underlying code is the difference between the server delivering a cached page (super fast) and an uncached page (much slower). Optimizing page speed is the intention here.

    #1483593

    Hi,

    You may need to directly modify avia_woocommerce_cart_dropdown function in the themes/enfold/config-woocommerce/config.php file or override it in your child theme. Remove the av-cart-counter and the dropdown widget.

    Best regards,
    Ismael

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