Graphene and Woocommerce compatibility

  • Aurora

    #8793

    Hi,

    I add a plugin in my wordpress but my problem is I have a big problem with the shop in particular with categories and products display.

    All products and categories are outside on the “page”.

    I had a similar problem whan I tested an other shopping pluggin. I solve this problem by shortcode given buy developper of this first product.

    For this first problem : I put all the shortcodes of the all categorie in a new individual page for each of them.

    But I suppose my problem is similar. How to afficher in a Graphene original page a product page who come form woocommerce, please ?

    Thank you

    Mod

    Kenneth John Odle

    #42175

    Link to page?

    Aurora

    #42176

    Hi,

    I have not url my website is on my computer with wamp for the moment.

    But I test Woocommerce with differents themes tofay and the problem is the same for all theme.

    Even with a theme create especialy for woocommerce : Organic shop them of forest theme

    The only solution I found is apparently : pages and categories of ecommerce plugins requires to appear in a page of the active theme. Otherwise, themes are break.

    :-/

    Mod

    Kenneth John Odle

    #42177
    Quote:
    But I test Woocommerce with differents themes tofay and the problem is the same for all theme.

    If that is the case, you may want to take it up with the Woocommerce developers. Or have they already told you that it’s a theme issue and not a plugin issue?

    Aurora

    #42178

    Hi,

    I found an article about compatibility on the codex on woocommerce but, I don’t found all in Graphen

    http://docs.woothemes.com/document/third-party-custom-theme-compatibility/

    I’m not good in PHP :'( can you help me please ? Or someone has already done these manipulations?

    For example, for the first part : Woo say to found the loop in the page.php of graphen

    ? <Php if (have_posts ()):

    But I don’t found it.

    Thank you

    Anonymous

    #42179

    Graphene uses different template hierarchy. So the solution with replacing loop is a little complicated maybe.

    Use hooks instead.

    This is not tested but… try to put this in your graphene child theme functions.php:

    <?php
    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', 'graphene_before_page_content', 10);
    add_action('woocommerce_after_main_content', 'graphene_after_page_content', 10);

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

    function my_theme_wrapper_end() {
    echo '</div>';
    }
    ?>

    Don’t forget to declare support when you set it up with this in functions.php:

    add_theme_support( 'woocommerce' );

Viewing 6 posts - 1 through 6 (of 6 total)

  • You must be logged in to reply to this topic.