branco holtslag
branco holtslag

Reputation: 279

Woocommerce [woocommerce_cart] shortcode not working

So I'm working on this website and I'm using the woocommerce plugin. The plugin is working fine and I can add things to my cart the only problem is that I can't view my cart. The image I've added shows my "Cart" page and you can see it just simply shows the shortcode.

http://gyazo.com/f0710eeb2fd63643bb74607988559e02

I have no idea why it isn't working :(

Upvotes: 5

Views: 11180

Answers (2)

Gary Hayes
Gary Hayes

Reputation: 1788

I've come across this issue this week. I found that deleting the cart page and regenerating it with Woocommerce fixed it.

Go to Woocommerce > Settings > Utilities > "Create default WooCommerce pages"

Upvotes: 0

branco holtslag
branco holtslag

Reputation: 279

I found out what was wrong, I had to add this little bit of code in the page.php file:

<?php
echo apply_filters('the_content',$wp_query->post->post_content);
?>

Hope it will help anyone else too :)

Upvotes: 13

Related Questions