Woocommerce is setup but the cart doesn't display
-
WooCommmerce: 2.5.5
WordPress: 4.5.2
Server: Apache/2.4.16 (Win32) OpenSSL/1.0.1p PHP/5.6.12This forum is my last hope. I’ve been trying to develop a WooCommerce site into a WordPress theme that I created. As far as I’m aware I’ve done everything right.
I have my WooCommerce pages set up.
I have the loop set up so products displayed and products can be added to the cart behind the scenes.
I’ve set up support for WooCommerce in my functions.php//make theme woocommerce aware add_action( 'after_setup_theme', 'woocommerce_support' ); function woocommerce_support() { add_theme_support( 'woocommerce' ); }
I’ve included <?php woocommerce_content(); ?> in woocommerce.php
I’ve added these functions which I believe do something to add a WooCommerce content area to templates but removing it or adding it likewise affects nothing./*WOOCOMMERCE FUNCTIONS */ 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); function my_theme_wrapper_start() { echo '<ul class = "list">'; } function my_theme_wrapper_end() { echo '</ul>'; }
I’m at a loss. Everything (AFAIK) should be in place to display WooCommerce content, like the Cart, and Checkout but I get nothing on my page templates. I can add products to the cart but I just can’t see it.
Unfortunately I’m only on localhost so I can’t link to a live site but if anyone has some inspiration as to why my WooCommerce site isn’t working, I’d be extremely grateful. ??
- The topic ‘Woocommerce is setup but the cart doesn't display’ is closed to new replies.