WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
WooCommerce Cart not showing up (23 posts)

  1. croydon86
    Member
    Posted 1 year ago #

    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/

  2. Yojance
    Member
    Posted 1 year ago #

    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.

  3. croydon86
    Member
    Posted 1 year ago #

    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.

  4. Yojance
    Member
    Posted 1 year ago #

    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?

  5. croydon86
    Member
    Posted 1 year ago #

    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?

  6. Yojance
    Member
    Posted 1 year ago #

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

  7. croydon86
    Member
    Posted 1 year ago #

    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.

  8. nickandrea19
    Member
    Posted 1 year ago #

    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/

  9. cerrone
    Member
    Posted 1 year ago #

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

    Working then?

  10. Corey76
    Member
    Posted 11 months ago #

    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

  11. Daniel
    Member
    Posted 10 months ago #

    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

  12. romyraj
    Member
    Posted 8 months ago #

    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!

  13. marti36
    Member
    Posted 8 months ago #

    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

  14. esmi
    Forum Moderator
    Posted 8 months ago #

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

  15. marti36
    Member
    Posted 8 months ago #

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

  16. marti36
    Member
    Posted 8 months ago #

    I will in future esmi

  17. Jasemin
    Member
    Posted 7 months ago #

    Hi
    I wish to know how can i make the cart to have my 5 products by default with 0 quantity.

    Thanks in Advance,
    jasemin

  18. lesman
    Member
    Posted 7 months ago #

    Please anyone resolved this issue yet... mine is the checkout page doesnt display the contents at all even when the shortcode is placed on the page and also pages are setup correctly on the woocommerce pages. Pls help as was supposed to launch a website yesterday but this had caused a big delay...thanks in advance.

  19. echofield502
    Member
    Posted 7 months ago #

    Hi,

    I am using template monster theme and install woocommerce plugin.
    In the Shop page and the My Account page has a sidebar to display Cart info because I added Woocommerce_Cart to the Sidebar under Appearance >> Widget.

    Originally, the Cart was able to display with information if something is added to cart. All in a sudden, the Cart info no longer display. It display only the header of the sidebar, content is not displaying.

    I tried disable the woocommerce_function.php by rename it. The cart contents are displayed, but all the menu are displayed. Once I enable the woocommerce_function.php. The cart content is disappear again.

    Can anyone advise me how to fix this problem? I need to the cart info to display in sidebar.

    THank you.

  20. cjc1867
    Member
    Posted 5 months ago #

    Thank You Yojance for pointing me into the right direction, I had similar problem and had a checkout page already from another plugin so it wasn't created when I installed wooCommerce.

    Cheers

    Colin

  21. paisleygirl
    Member
    Posted 4 months ago #

    Please help, for some reason when someone is not logged in as a user when they visit the project page and select items it does not show the 'add to cart' button. How can I fix this?

    here is my site: http://www.berqcle.com

    Thank you!!

  22. Nick595
    Member
    Posted 4 months ago #

    Having the same problems as @paisleygirl, website is http://www.dokobags.nl
    Any help?

  23. S R
    Member
    Posted 3 months ago #

    I'm having the same issue:
    http://heartspectrum.com/cart/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic