Posted on

Show a custom template for the vendor shop pages

Are you using the plugin WooCommerce Product Vendors?
Well, I think you will love this tutorial then!

If you are one of those users who want to setup a custom vendor shop page, add this code in your functions.php file located in wp-content/themes/your-theme-name/:

Delete the <?php first line if you are having errors come up after saving the file.

Be sure to create a file named taxonomy-shop_vendor.php in your wp-content/themes/your-theme-name/woocommerce/ folder and edit it to match your desires.

For a basic configuration, I suggest to copy the template taxonomy-product_cat.php from the folder wp-content/plugins/woocommerce/templates/ and paste it in your theme WooCommerce folder. Then rename it and apply your changes.

6 thoughts on “Show a custom template for the vendor shop pages

  1. Nice~!
    These seems to be for the Vendors but
    how can I create a page for the /vendor top page…? If I go to /vendor it just gives me 404, would nice to show all the vendors or something on that page.

    1. Hi Teo,
      cool idea!

      Actually this is not supported, but we are rewriting the plugin, so perhaps we could add something like this.

      If you’d like you could add this to our ideas board: – that way our developers know what solutions our customers need as they can be voted up and prioritized based on demand.


  2. Ciao,
    ho fatto come indicato ma quando apro la pagina vendor mi appaiono i seguenti errori:

    Warning: include(/home4/alex/public_html/wp-content/themes/one-child/woocommerce/taxonomy-shop_vendor.php): failed to open stream: No such file or directory in /home4/alex/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 195

    Cosa sto sbagliando?

    Warning: include(): Failed opening ‘/home4/alex/public_html/wp-content/themes/one-child/woocommerce/taxonomy-shop_vendor.php’ for inclusion (include_path=’.:/opt/php54/lib/php’) in /home4/alex/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 195

    1. Ciao, non esiste il file taxonomy-shop_vendor.php nel tuo tema.

  3. ciao, grazie per la risposta veloce.
    ho capito di dover creare cartella woocommerce e file taxonomy-shop_vendor.php nel child-theme.. a quel punto si apriva una pagina bianca alla visione di una pagina vendor..
    quindi ho copiato il file taxonomy-product_cat.php e incollato nella cartella woocomerce col file taxonomy-shop_vendor.php.
    ancora pagina bianca.. quindi ho detto allora non era da copiare il file ma il contenuto del file.. ho copiato il contenuto di taxonomy-product_cat.php in taxonomy-shop_vendor.php ma aquesto punto ricevo una pagina errore 500 – internal server error…

    1. perso le speranze

Leave a Reply

Your email address will not be published. Required fields are marked *