Home Forums WC Vendors Free Support Check if page is shop function

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
  • #33933
    Igor
    Participant

    I see that WC Vendor hooks inside archive template of woocommerce. But is it possible to have conditional functions to check if page is shop vendor’s page? I don’t want to have the same layouts for archive and for vendor stores.

    #33934
    WC Vendors Support
    Participant
    #33953
    Igor
    Participant

    But this will break site if Wc Vendor is not installed. What is the best way to check if WC Vendor exists?

    #33958
    Igor
    Participant

    I use next code

    if (class_exists('WCV_Vendor_Shop')){

    Is this correct? Is this working also for WC Vendor PRO?

    You have separate page in docs for hooks, but I think you should also do some functions for developers or describe some common sollutions.

    #34084
    WC Vendors Support
    Participant

    But this will break site if Wc Vendor is not installed. What is the best way to check if WC Vendor exists?

    Well, if you dont have WC Vendors installed, of course it would break. We are WC Vendors. We assume you will always have our plugin active, otherwise why use our code? 🙂 And sure, wrapping it in an if class exists would work.

    #73282
    carlos
    Participant

    We, the owner have to make each new page of new vendor every time??? the plugin doesn´t make the store page automaticly? Or can we put some short code for call a template or something like that?

    Where the vendor can upload the banner for his store? or where can allow this?

    Thanks

    #73363
    Anna
    Member

    Hello,
    No- you do not have to make a new page for the vendor each time.
    The plugin does make the vendor store page automatically.

    If you are using Wc Vendors free, then the store banner is going to just be a media file entered in the store settings / store description field.

    WC Vendors Pro has front-end forms and uploads for banners and store icons for the vendors.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.