Home Forums Plugin or Theme Compatibility THEME: How To Use Theme's Default Template for Vendor Stores

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #3960
    somertech
    Participant

    Ok,

    First off, I expect that I might not do the best job explaining my issue as my WordPress knowledge and vocabulary is limited.
    Anyway, here goes.

    I am noticing that on the Front-End of my site, the Vendor related views and the product related views are not using the default template from my Theme. At least I don’t think so.

    There are two noticeable differences between these dynamically generated pages (archives I think you call them) and the WP Pages that I create in which I use WooCommerce or WC Vendor shortcodes.
    1. The Breadcrumb trail is visually completely different.
    2. The main area of the page is NOT contained within the Theme’s usual DIV box.

    I am wondering if you can make some suggestions as to how I get the WooCommerce or WC Vendor archive pages to appear identically to the manually created pages as it relates to my Theme’s default page template?

    I read the KB on copying WC Vendor template files to my theme’s directory, which I did, but that obviously isn’t enough.

    Conceptually it seems like I want Woo and WC Vendors templates to be subordinate to my Theme’s default template. Not sure if that is correctly stated but I think that is conceptually right.

    Any thoughts?

    Thanks

    Mike

    #3961
    WC Vendors Support
    Participant

    Hi Mike,

    For the /vendors/vendorname that isn’t a WC Vendors template, it’s WooCommerce’ archive-product.php. If your theme overrides it, the template would be in /wp-content/themes/YOURTHEME/woocommerce/archive-product.php

    The WC Vendors templates are for the dashboard and the reports and the settings and emails, not viewing actual products. Actual products are handled again by WooCommerce in the /YOURTHEME/woocommerce/single-product/*.* area.

    For pages you create on your own with shortcodes, on the right side of the page editor you’ll see a layout area, often in that dropdown there’s something like default, full width, blog view, etc…. Tinker with these and see if that changes the shortcoded pages to something you prefer.

    If I misunderstood you, please post a few screenshots of what you’re talking about and that’ll help me out!

    Ben

    #3962
    somertech
    Participant

    Hi Ben;

    I think your understanding is the reverse of what I am looking for.

    I DO want my Theme’s default template to override the WooCommerce template for the product and store archives.

    Here are some screenshots on dropbox
    https://www.dropbox.com/sh/hqsswxknc3wo292/AADQICvPK-srBE9dplWN1H8xa?dl=0

    Hopefully my callouts in the images will explain the problem better. Also the files are named “Good” and “Bad”. 🙂

    Thanks

    Mike

    #3963
    WC Vendors Support
    Participant

    I cant do anything about breadcrumbs. Those are theme related and nothing WC Vendors related.

    Screenshots #2, #3, & #4 are all customized by the WC Vendors templates. Just copying them to your themes directory isn’t enough. All you’re doing there is copying a template into the same copy of the same template. 🙂 You have to open them in a text editor and customize them! It looks like on #2 editing the vendor-main and vendor-mini to center up that text will do wonders for you.

    In #3 you can easily remove the div elements and customize them any way you wish.

    In #4, the template for that in v1.5.0 kinda sucks. Try changing it to the content found in this version of vendor-list.php instead, and then customize as you feel necessary:

    https://github.com/wcvendors/wcvendors/blob/master/templates/front/vendor-list.php

    ….additionally, in version 1.6.0 of WC Vendors, which is not released yet, but will be soon, you should be ready for this:

    https://www.wcvendors.com/knowledgebase/v1-5-0-to-v1-6-0-upgrade-guide/

    Ben

    #3977
    somertech
    Participant

    Thanks Ben;

    I did find the updated content for the Vendor-list.php template useful.

    However, I am still in search of an answer to my themeing issue.

    As indicated by the screenshots, the content that comes from the WC Vendor WordPress Pages containing shortcodes (such as: /vendor_dashboard, /orders & /shop_settings) are rendered according to my Themes rules and looks fine.
    I assume that this is because the Page is first rendered according to the Theme template selected in the Page Designer, BEFORE the Shortcode is executed.

    I need to know if there is way to force archive-pages, which I believe are dynamically generated, to somehow leverage my Theme template as well?
    Would this require hand modifying the HTML/CSS elements in WC Vendor template files to look like my Theme template, or is there a way to (I don’t know) link the WC Vendor archive pages to my Theme template so that I get WC Vendor content to execute INSIDE my Theme template, which is conceptually what seems to happen with shortcodes in WordPress Page files?

    Thanks;

    Mike

    #3980
    WC Vendors Support
    Participant

    If your theme has a file /YOURTHEME/woocommerce/archive-product.php — then you are already templating out the archives with your theme. If not, copy from /plugins/woocommerce/templates/archive-product.php into /YOURTHEME/woocommerce/archive-product.php and template it out as you see fit.

    WC Vendors just hooks into these themes that WooCommerce and your theme provide hooks for.

    If you want to customize archive-product.php to “only do certain things when its loading a vendors store listing” then see:

    https://gist.github.com/bentasm1/56a56f8996b289c076f8

    #8060
    Marj Wyatt
    Participant

    I subcontracted to a developer who “threw the code over the wall” and disappeared. This plugin was listed as a requisite plugin so I’m just coming up to speed on it.

    I’m writing to say that this was a very helpful post. I’ve got a highly customized theme based on the Genesis Framework and, since the subcontractor I hired neglected to implement my latest version of the theme code and went about things their own way, her code wasn’t working at all.

    So, thank you. I may be back with actual questions if I can’t sort things on my own.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Plugin or Theme Compatibility’ is closed to new topics and replies.