WordPress.org

Ready to get started?Download WordPress

Forums

WP Menu Cart
[resolved] Shopping Cart Link (9 posts)

  1. golfer300
    Member
    Posted 9 months ago #

    The shopping cart does not current link to any page. It simply redirects the visitor to the page they are currently on when they click on the cart when it is empty. I'd like to direct it to where users can start shopping (my courses page). How would I do that?

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

  2. Ewout
    Member
    Plugin Author

    Posted 9 months ago #

    Hi Golfer,
    Are you using EDD? All systems except EDD link to their shop page, but since EDD doesn't have a default 'shop page' there's nothing to link to. Either way, you can change the link by adding the following filter to you theme's functions.php (just change the url value):

    add_filter('wpmenucart_emptyurl', 'change_wpmenucart_emptyurl', 1, 1);
    function change_wpmenucart_emptyurl ($url) {
        $url = 'http://yoursite.com/yourlink';
        return $url;
    }

    Let me know if that works for you!

    Ewout

  3. golfer300
    Member
    Posted 9 months ago #

    Thanks for the response. I am using WooCommerce and my shopping cart doesn't link to any specific page. When clicked it simply takes the visitor to the page they are currently on.

  4. Ewout
    Member
    Plugin Author

    Posted 9 months ago #

    Hey Golfer,
    I see you asked the same question a few months back, have you tried that solution?
    'go into WooCommerce Settings -> Pages make sure you set the "Shop Base Page" to the page you want the plugin to point to.'
    http://wordpress.org/support/topic/menu-cart-link-problem?replies=14

    If for some reason that doesn't work, the filter should still do the trick for you.

    Let us know if that works for you!

    Ewout

  5. golfer300
    Member
    Posted 9 months ago #

    Just tried that filter and it didn't work. I implement my domain name where it says http://yoursite.com/yourlink right?

    P.S. I am now getting a blank white screen when trying to access my site. What should I do?

  6. Ewout
    Member
    Plugin Author

    Posted 9 months ago #

    Not just the domain name, but the complete URL of the page you want to link to.

    Are you using the latest version of WP Menu Cart?
    (not WooCommerce Menu Cart)

    What is your shop base page set to in the WooCommerce settings?

  7. golfer300
    Member
    Posted 9 months ago #

    I am using the latest version of WP Menu Cart and my shop base page is set to the cart but my shop page is actually a category as you can see but the URL. http://www.codingmadesimple.com/product-category/courses

  8. Ewout
    Member
    Plugin Author

    Posted 9 months ago #

    Just to make sure: have you closed & re-opened the browser window/tab after adding the filter? WooCommerce AJAX cache is a bit persistent sometimes.

    If it still doesn't work, you could create a (temporary) admin account and send us the details at support@wpovernight.com. Right now codingmadesimple.com is blank for me.

  9. golfer300
    Member
    Posted 9 months ago #

    Thanks for all your help. I sent you an email.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.