• I have installed WooCommerce and trying to use it within my custom template. Did everything I need to do on the functions file and everything works like a charm…. but the shop page. All other pages are perfect, just the shop page is wrong. Basically, it’s not recognizing my_theme_wrapper_start, so it starts anywhere.

    Thus, I define this:

    function my_theme_wrapper_start() {
      echo '<div class="entry">';
    }

    and works in every single page. For these pages, the output code start is as follows:

    <section class="row features">
    <div id="content" class="mainzone">
    <div class="entry">

    but for Shop page it outputs like this:
    <div class="entry">

    so it simply ignored the 2 lines above it.

    Any idea on what am I doing wrong or how to fix it? I tried overriding templates but it doesn’t even work at all, I tried placing the templates in mytheme/woocommerce/templates and mytheme/woocommerce/ since I saw another thread saying template/ folder doesn’t work, but in my case NOTHING seems to work

    Any help appreciated, thanks in advance

    http://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Thread Starter cocobongo

    (@cocobongo)

    UPDATE: I just realized that the single product page is wrong as well.

    Tried serving different content based on conditional (if is_page, do something, if is_woocommerce do something else) but the problem persists. Even if I include the woocommerce part inside the div I want, the plugin “kills” everything over and below it, keeping only the header and footer.

    To be more clear: here’s the code I’m trying to use in page.php

    <div class="container innerpage">
    
    <section class="row features">
    <div id="content" class="mainzone">
    
       <?php if ( is_woocommerce() | is_shop() ) { ?>
         <?php include './templates/my_woo_page.php'; ?>
       <?php } ?>
    
    </div><!-- END MAINZONE -->
    </section>	
    
    </div><!-- container -->

    and the code works (meaning it gets the content only if is a woocommerce page) but it outputs this (in my_woo_page.php I only included the section class “my_woo”):

    <section class="my_woo">
    [.... woo content here ....]
    </section>

    So as you can see, it simply kills everything.

    Is there some kind of template I can check? I found several templates in /shop folder but nothing like a “full” template for the shop page, just the parts that form it.

    Also, why do all pages but shop and single product cause this yet all other pages are OK? Do they use different templates?

    Note: I tried using a custom page template for shop page, but nothing works, and I’m totally out of ideas on how to solve this

Viewing 1 replies (of 1 total)
  • The topic ‘Shop page not displaying properly’ is closed to new replies.