Resolvedchange the URL on icon of the mini cart
Tagged: mini cart
- This topic has 7 replies, 2 voices, and was last updated 2 years, 4 months ago by
Althemist.
- AuthorPosts
- May 19, 2021 at 2:12 am #30459
Zerhouny
Participanthi,
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_buttonsMay 19, 2021 at 9:54 am #30462Althemist
KeymasterHi 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.
May 19, 2021 at 12:12 pm #30465Zerhouny
Participanthi,
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 importantMay 19, 2021 at 3:03 pm #30476Althemist
KeymasterIt’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.
May 19, 2021 at 5:25 pm #30478Zerhouny
Participanthi
i mange to contact woocommerce support and that the massege the send to meThanks 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.
May 20, 2021 at 4:42 pm #30501Althemist
KeymasterHi 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.
May 20, 2021 at 6:01 pm #30506Zerhouny
Participanthi again hh
I did what you told me but it doesn’t workMay 21, 2021 at 12:30 pm #30518Althemist
KeymasterIt 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
- AuthorPosts
You must be logged in and have valid license to reply to this topic.