Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 102102

croydon86 on "[Plugin: WooCommerce - excelling eCommerce] WooCommerce Cart not showing up"

$
0
0

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?


Viewing all articles
Browse latest Browse all 102102

Trending Articles