Home › Forums › Support › WooCommerce Cart in Primary Menu – How to change url from cart to checkout? This topic has 3 replies, 2 voices, and was last updated 4 years, 2 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts April 24, 2018 at 6:46 am #558979 Daniel Hi Generatepress team, I was wondering if there is any way or custom snippet to change the url that is used for the WooCommerce cart in the primary menu from cart to checkout? Note: Besides WooCommerce > Checkout change cart’s page to checkout. Besides force redirect cart to checkout. Thanks again! GeneratePress 2.0.2GP Premium 1.6.2 April 24, 2018 at 9:53 am #559278 TomLead Developer Lead Developer WooCommerce has this filter: woocommerce_get_cart_url Try this: add_filter( 'woocommerce_get_cart_url', 'tu_custom_cart_url' ); function tu_custom_cart_url() { return 'URL TO YOUR CHECKOUT'; } Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development April 24, 2018 at 10:41 am #559339 Daniel Thank you Tom. This works! ๐ April 24, 2018 at 3:16 pm #559523 TomLead Developer Lead Developer You’re welcome ๐ Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In