Home Forums WC Vendors Pro Support Hiding details on vendor page

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!

 

  • This topic has 3 replies, 3 voices, and was last updated 7 years ago by Anna.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #59036
    Michael Matker
    Participant

    Hello,

    Is there a way to hide certain details on the vendor page so that a public user can’t see it? I.e. hide the vendors address from the public?

    Thanks!

    #59126
    Anna
    Member

    @mmak0710
    You can modify the front-end templates so that the vendor’s address does not appear- such as in the store-header.php template.
    Learn how to modify templates here, if you have no already done so: https://www.wcvendors.com/kb/changing-vendor-templates/

    #59838
    zikria
    Participant

    hi! if I already moved the templates to the child theme. can you please tell me what code will i have to paste to remove vendor address from the store front end page.

    #59900
    Anna
    Member

    @zikria-shakil
    You don’t’ have to move all of the templates- only the one or ones which you modify.
    To ensure that you do not publish your vendors’ locations, you can do the following edit to your store-header.php file:
    1. First, make a folder in your theme/child theme file called: wc-vendors
    2. Make a folder within wc-vendors called: store
    3. Go to your plugins > wcvendors-pro and find the store-header.php template. Here’s the path: wp-content/plugins/wcvendors-pro/templates/store/store-header.php
    4. Copy that template and move it to the folder in your theme/child theme you just created: wp-content/themes/your-theme-or-child-theme/wc-vendors/store/storeheader.php
    5. Make this edit:
    Remove approx line 55, which looks like this:
    $address = ( $address1 != '') ? $address1 .', ' . $city .', '. $state .', '. $store_postcode : '';

    Save .

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