I've installed Woocommerce into a theme however as it wasn't configured for Woocommerce I'm running into a problem.
Client wants a sidebar to show catagories so I'm trying to pull in Woocommerce Layered Nav.
As the page wasn't displaying the nav I followed instructions online to make a woocommerce.php file that would override page.php. The code works to allow the space for the sidebar but currently it's pulling in nothing.
Any help would be greatly appreciated.
I have spent 20+ hours trying to fix this and created the code below, as I'm stuck at a roadblock I'm unsure how I could do more research before asking this question.
<pre><?php get_header(); $page_title = get_post_meta( get_the_ID(), 'magicreche-page-title', true );</pre> if( $page_title == 'enabled' ) { ?> <header><?php the_title( '<h1>', '</h1>' ); ?></header><?php} ?><div class="container"> <div class="row"> <div class="col-sm-4 sidebar"><?php get_sidebar(); ?></div> <article id="<?php echo esc_attr(getMagicrechePageID($section_page->ID)); ?>" <?php post_class('col-sm-8'); ?>> <?php woocommerce_content(); ?> </article> </div></div><?php get_footer(); ?>