Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, I just checked the above URL. It looks like the plugin is not activated? Can you confirm that it is activated. If it is can you enable debug mode and check the log file.

    If it is enable can you also disable all other plugins except this one and check your checkout page again.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi is your issue resolved?

    I have the same problem. After reviewing the plugin code I found that the cart shortcode handler definitely won’t show anything if the cart is empty (this is from version Version 4.1.7):

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

    I ended up adding an “else” clause to that handler just to make sure the shortcode is being called (and it is).

    This seems to be a weak point in this handler. Shouldn’t it show something regardless?

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, thank you for sharing your code. We do have two shortcart code you can use. Each function differently.

    [wp_compact_cart] = This one only shows if there is a product in the cart.
    [show_wp_shopping_cart] = This one shows the cart even if there is no product in the cart.

    Does the above help you?

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Sorry forgot to add the following shorcode.

    [always_show_wp_shopping_cart]

    Plugin Contributor mbrsolution

    (@mbrsolution)

    I am marking this thread as resolved. No replies in 1 month.

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cart shortcode doesn't show anything’ is closed to new replies.