Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #657486

    Mr. X
    Participant

    I m also to implement the facetWP plugin with the X-theme.

    I’m using this tutorial from facetWP:
    https://facetwp.com/integration-with-woocommerce-and-the-storefront-theme
    In this example the Storefront-theme is used.

    I created a facet called “prodcat” with the datasource “product categories” and a template “facetwp_template”.
    In the textwidget in the sidebar is this text:
    [facetwp facet=”prodcat”]

    No filtering option is visible in the sidebar.

    In the video https://facetwp.com/integration-with-woocommerce-and-the-storefront-theme on 2.20 min its shown that the archive-product.php from WooCommerce should be used like this:

    <div class= ‘facetwp-template’>

    <?php if ( have_posts() ) : ?>

    <?php
    /**
    * woocommerce_before_shop_loop hook
    *
    * @hooked woocommerce_result_count – 20
    * @hooked woocommerce_catalog_ordering – 30
    */
    do_action( ‘woocommerce_before_shop_loop’ );
    ?>

    <?php woocommerce_product_loop_start(); ?>

    <?php woocommerce_product_subcategories(); ?>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php wc_get_template_part( ‘content’, ‘product’ ); ?>

    <?php endwhile; // end of the loop. ?>

    <?php woocommerce_product_loop_end(); ?>

    <?php
    /**
    * woocommerce_after_shop_loop hook
    *
    * @hooked woocommerce_pagination – 10
    */
    do_action( ‘woocommerce_after_shop_loop’ );
    ?>

    <?php elseif ( ! woocommerce_product_subcategories( array( ‘before’ => woocommerce_product_loop_start( false ), ‘after’ => woocommerce_product_loop_end( false ) ) ) ) : ?>

    <?php wc_get_template( ‘loop/no-products-found.php’ ); ?>

    <?php endif; ?>

    </div>

    Question 1:
    If the facetWP-plugin is used with the x-theme. Should the archive-product.php from WooCommerce also be placed in the main-directoy of the X-theme or somewhere else?

    Question 2:
    Which file shoud be if the WooCommerce products should be filtered on a WordPress-PAGE, so not an archive?

    Thank you so much for your help.

    #657585

    Rupok
    Member

    Hi there,

    Thanks for writing in! It sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

    Thank you for your understanding.