Support » Plugin: WP Menu Cart » Start Shopping link re-direct

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Jeremiah

    (@jprummer)

    Hey there!

    EDD doesn’t have a specific products page designated, so we’ve made it really easy to set your own via a filter. Add the following code to your theme’s function.php and modify the url to be the url you want to send users to:

    /**
     * Set page url when cart is empty
     */
    //add_filter('wpmenucart_emptyurl', 'add_wpmenucart_emptyurl', 1, 1);
    function add_wpmenucart_emptyurl ($empty_url) {
    	$empty_url = 'https://yoursite.com/empty';
    	return $empty_url;
    }
    Thread Starter danwpc

    (@danwpc)

    Thank you, Jeremiah! Once I removed the slashes in front of add_filter it worked perfectly.

    Plugin Contributor Jeremiah

    (@jprummer)

    Glad to hear it! Sorry for the confusion on that. Enjoy. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Start Shopping link re-direct’ is closed to new replies.