WordPress.org

Ready to get started?Download WordPress

Forums

WP Menu Cart
[resolved] Start Shopping link re-direct (4 posts)

  1. danwpc
    Member
    Posted 9 months ago #

    The Start Shopping link currently directs to my home page. I'd like to direct it to where users can start shopping (catalog page, in my case). Where would I do that? I'm using EDD. Thanks!

    http://wordpress.org/plugins/wp-menu-cart/

  2. Jeremiah
    Member
    Plugin Author

    Posted 9 months ago #

    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;
    }
  3. danwpc
    Member
    Posted 9 months ago #

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

  4. Jeremiah
    Member
    Plugin Author

    Posted 9 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic