Resolvedchange the URL on icon of the mini cart

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #30459
    Zerhouny
    Participant

    hi,
    how can i change the URL on icon of the mini cart to go dirctly to the cart page without displaying woocommerce_widget_shopping_cart_buttons

    #30462
    Althemist
    Keymaster

    Hi Zerhouny,

    I am afraid that would not be possible. It wasn’t mean to be used like a standard link. The only option would be to disable the header cart and place a link to the cart page in some of the menus.

    #30465
    Zerhouny
    Participant

    hi,
    thank you for you answr,but when i’m in the tcheckout page its work as i whant,can i duplicat that behavior for the rest page
    can you please help it’s very important

    #30476
    Althemist
    Keymaster

    It’s a standard WooCommerce behavior and not theme related. It’s the same with any theme – on the checkout page the link opens the page. It’s part of the core WooCommerce scripts.

    Unfortunately, as I already explained this can’t be changed.

    #30478
    Zerhouny
    Participant

    hi
    i mange to contact woocommerce support and that the massege the send to me

    Thanks for the SSR

    I was able to confirm that the behavior you reported is built into your theme, Rigid by Altehemist.com. Here’s how it appears on their demo when you click the cart icon: https://snipboard.io/Abe9lE.jpg

    Therefore, you will want to get in touch with the theme developers so that they can assist you further on how to bypass the minicart display and instead show the cart page. You can reach them through their contact page: https://althemist.com/contacts/

    I hope this helps.

    Thanks.

    #30501
    Althemist
    Keymaster

    Hi Zerhouny,

    I have double cjecked this. It looks the only option to override the default behavior would be with JS. This should work:

    $(document).on("click", "#rigid_quick_cart_link", function(event) {
        window.location = this.href;
    });

    The best way to implement it would be in the rigid-front.js of the child theme.

    #30506
    Zerhouny
    Participant

    hi again hh
    I did what you told me but it doesn’t work

    #30518
    Althemist
    Keymaster

    It was tested before I gave you the code. Keep in mind that the JS function must be in the child-theme’s rigid-front.js and it must be INSIDE the window.jquery function

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register