LVDM
LVDM

Reputation: 454

WooCommerce not showing templates

Hi i'm creating a webshop with WooCommerce but with a self made theme, now showing the content-single-template works fine, however the cart/checkout page is not working. This is what i've done so far:

• Add woocommerce.php in the root of my theme with woocommerce_content() inside.

• Created "woocommerce" directory in the root of my theme inside this directory another one "checkout" and inside there my custom form-checkout.php

• Shortcodes on every page are included

• Clean install WooCommerce

• Flushed permalinks

I've read trough this article from WooCommerce on how to integrate it and followed every step precisely.

When i switch to a differend theme it does show the cart/checkout page so wondering what i'm overseeing here.

Thanks

EDIT:

Contents: woocommerce.php

<?php
get_header();

woocommerce_content();

get_footer();

Upvotes: 3

Views: 2757

Answers (2)

hiddenpearls
hiddenpearls

Reputation: 673

The Proper way to work with WooCommerce Templates is, Copy the templates folder from your /wp-content/plugins/woocommerce/templates/ and paste it in your theme like /wp-content/themes/your-theme/ and rename it to /woocommerce/ So It would be like this

/wp-content/themes/your-theme/woocommerce/ and then you can edit the templates and change the UI.

Upvotes: 2

LVDM
LVDM

Reputation: 454

Got it fixed, because i basically created my own theme i started switching theme's and see the difference between mine and the working theme.

What fixed it for me was in content.php placing this:

<?php the_content(); ?>

Upvotes: 6

Related Questions