WordPress.org

Ready to get started?Download WordPress

Forums

  1. Andrew Tegenkamp
    Member
    Posted 8 months ago #

    I noticed that on a default install the "cart empty" message from settings does not display on an empty cart. Everything else worked great and is just what I needed (thanks!) so I tracked this down and found on
    wp_shopping_cart.php around line 35 it states

    function show_wp_shopping_cart_handler()
    {
        if (cart_not_empty())
        {
           	$output = print_wp_shopping_cart();
        }
        return $output;
    }

    but it should be as follows:

    function show_wp_shopping_cart_handler()
    {
    	$output = print_wp_shopping_cart();
    	return $output;
    }

    It seems that it has to run print_wp_shopping_cart to get the empty message now and that function checks cart_not_empty() and grabs the empty message from settings.

    http://wordpress.org/plugins/wordpress-simple-paypal-shopping-cart/

  2. mra13
    Member
    Plugin Author

    Posted 8 months ago #

    We have a few different shortcodes (one that doesn't show anything until there are items in the cart and there is one that shows an empty cart image or message when there is nothing in the cart).

    Which shortcode are you using?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.