WordPress.org

Support

Support » Plugins and Hacks » WP Menu Cart » [Resolved] Start Shopping link re-direct

[Resolved] Start Shopping link re-direct

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author 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;
    }

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

    Plugin Author Jeremiah

    @jprummer

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

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