-1

Strange situation - I installed WooCommerce, and by default the /shop, /cart, etc. pages work fine. However, the formatting is off, so I tried making a "woocommerce.php" template as directed. This contains the call to "woocommerce_content()"

Now when I load the /shop page for instance, everything shows EXCEPT the products - they aren't there. Without the woocommerce.php template, the products show just fine.

Is there something I'm missing? -jim

1

1 Answer 1

1

I found the answer - might be obscure, but still might help someone:

Apparently the custom navigation template messed up / overwrote the "$posts" array, so I just saved the original, and restored it after including the navigation:

<?php
$saved_posts = $posts;
get_template_part('tpl-nav');
$posts = $saved_posts;
?>

Just added to to the top of the woocommerce.php template and it fixed the problem.

Not the answer you're looking for? Browse other questions tagged or ask your own question.