WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Making a standard wordpress page call woocommerce loop (1 post)

  1. discoking86
    Member
    Posted 4 months ago #

    So first, here is my dilemma. On the page I am working on (http://www.kryddtorget.se) I am using WordPress and Woocommerce. The shop is structured around 4 categories:

    ekologiska kryddor, ekologiska kryddblandningar, kryddset & gåvor, tillbehör

    On the main menu I have added these categories as links. So when you press the category "kryddor" you will go the the url http://www.kryddtorget.se/kategori/ekologiska-kryddor/.

    Now this works OK but I would prefer to have the main categories as standard wordpress pages and invoke the woocommerce loop on each of them to display the correct category products.

    The reason for this is that it is easier to weight the URLS in the sitemap and the links would also look better: www.kryddtorget.se/ekologiska-kryddor instead of http://www.kryddtorget.se/kategori/ekologiska-kryddor/

    My approach is to add a template for each category and assign that to the page. But my problem is how to call the woocommerce loop in the template, I want it to look just like the standard product archive (just that it should be filtered like it would when using the url: http://www.kryddtorget.se/kategori/ekologiska-kryddor/).

    Any ideas on how this could be done?

    Thank you!

    https://wordpress.org/plugins/woocommerce/

Reply

You must log in to post.

About this Plugin

About this Topic