• Resolved daitarn3

    (@daitarn3)


    it’s hours I try to solve this problem:
    when I click on the cart icon, placed in the header I do not go to the “cart” page but it opens a sidebar, how can I solve? I have to go to the “cart” page.
    (see image)

    thank you
    Massimo

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello

    I think this bit of JavaScript code will help:

    jQuery( document ).ready(function($) {
    	$('#site-header div.elementor-widget-woocommerce-menu-cart').on('click', function(event){
    		event.preventDefault();
    		window.location.href = wc_add_to_cart_params.cart_url;
    	})
    });
    Thread Starter daitarn3

    (@daitarn3)

    I apologize for the question ….

    the code you wrote to me where I paste it?
    I tried in CC / JS (it tells me there are errors)
    I tried in Theme -Editor (it tells me there are errors)
    I tried in Elementor widget menu (tells me there are errors)

    thank you

    • This reply was modified 6 years, 5 months ago by daitarn3.
    Thread Starter daitarn3

    (@daitarn3)

    sorry !!!
    it is OK

    • This reply was modified 6 years, 5 months ago by daitarn3.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cart icon URL’ is closed to new replies.