WordPress.org

Support

Support » Plugins and Hacks » WooCommerce Cart not showing up

WooCommerce Cart not showing up

  • croydon86
    Member

    @croydon86

    I have just installed the WooCommerce plugin on my existing WordPress theme. I have integrated the plugin using the correct functions as found in the WooCommerce integration guide.

    Now the shop index works fine, as does the product page. However, when I click ‘add to cart’, and then ‘view cart’, the shopping cart page is completely blank.

    I am not sure what this is, as the cart page (generated by the plugin) has the correct WooCommerce shortcode:

    [woocommerce_cart]

    I also increased the memory on my server as I read somehwhere this could have been a restriction.

    I am not sure what else to do, any ideas?

    http://wordpress.org/extend/plugins/woocommerce/

Viewing 15 replies - 1 through 15 (of 22 total)
  • Can you post a link to your Website? I recently had an issue with the cart and checkout page and it turned out to be that I had a page named page-cart.php and page-checkout.php and as soon as I got rid of those, everything worked like a charm.

    croydon86
    Member

    @croydon86

    Thanks but my site is being built locally, so I do not have a link.

    Where did you find those files? I can not see them in my template files.

    These files were inside the theme’s folder so if you don’t see them you might be experiencing another kind of problem.

    What does your System Status say? Any Red fields at all?

    croydon86
    Member

    @croydon86

    I am integrating this into my own theme, hence why these files are not there. The index and product page for the shop displays fine, just nothing in the cart.

    There are no errors either with the system status.

    Maybe I have missed something when integrating into my theme. The only thing I did was (after installing the plugin), I added this code to my functions.php file…

    function my_theme_wrapper_start()
    {
        echo the_breadcrumb();
        echo '<section role="main"><div class="wrap">';
    }
    
    function my_theme_wrapper_end()
    {
        echo '</div></section>';
    }
    
    function mytheme_prepare_woocommerce_wrappers()
    {
        remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
        remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
    
        add_action( 'woocommerce_before_main_content', 'my_theme_wrapper_start', 10 );
        add_action( 'woocommerce_after_main_content', 'my_theme_wrapper_end', 10 );
    }
    add_action( 'wp_head', 'mytheme_prepare_woocommerce_wrappers' );
    
    add_theme_support( 'woocommerce' );

    Is there something else I need to do maybe?

    Add woocommerce_content() to your theme and see if that helps.

    croydon86
    Member

    @croydon86

    Thanks for taking the time to help, but I found the problem.

    The page.php in my theme was only calling the header and footer php files. It was not calling the the_content, I added this function and it solved the problem.

    nickandrea19
    Member

    @nickandrea19

    I’m having the same problem. I created a woocommerce.php file and added it to my theme. I replaced <?php the_content("<p>__('Read the rest of this page')</p>"); ?> with <?php woocommerce_content(); ?>

    Here is the site link: http://shamalah.com/cart/

    Guys, please try to change the permalink structure on WP settings > Permalink > to DEFAULT.
    WC to DEFAULT as well.

    Working then?

    Make sure Curl is installed, I had a woocommerce extention that required it and the cart and checkout pages which it is used on make the pages appear blank, installed Curl and all was Fixed 🙂

    Hope this helps someone

    Daniel
    Member

    @41dreams

    Thanks Corey! Saved me a big headache it wasn’t CURL for me is was an extension that gave the error of “Sorry, but you cannot run this plugin, it requires the SOAP support on your server/hosting to function.”

    – Daniel

    Add to cart error only 2 specific items adding on website the rest does not add to the cart.
    I recently update woocommerce and I also try deactivating woocommerce and activate back.
    its been weeks I am looking for solution.
    please help!

    Hi

    I am having the same problem – check http://www.martinspencephotography.co.uk then select SHOP – nothing displays despite there being products.

    Any ideas?

    Thanks
    M

    esmi
    Forum Moderator

    @esmi

    @marti36: As per the Forum Welcome, please post your own topic.

    sorry – sorted – went into settings to chagne the page setup

    I will in future esmi

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘WooCommerce Cart not showing up’ is closed to new replies.