Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter croydon86

    (@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.

    Thread Starter croydon86

    (@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?

    Thread Starter croydon86

    (@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.

    croydon86

    (@croydon86)

    @ithobari can you elaborate on the permalink problem please.

    I am having the same problem. 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!

Viewing 4 replies - 1 through 4 (of 4 total)