Give vendor option to hide info from his store

Future Ideas

Give vendor option to hide info from his store Resolved

Viewing 9 reply threads
  • Author
    Posts
    • #78606
      tasos
      Participant

      Some vendor may not want to have their full details in their store.
      Can you think a feature for each vendor to check what info they can display
      i.e. may dont want to show phone number or address.

      Also they dont have field to display their website

    • #89258
      Michael Earley
      Participant

      Agreed on this, need to have a tickbox whether to make public or not for all info. ESPECIALLY ADDRES!

    • #89286
      sumit singh
      Keymaster

      Hi, add the following code in functions.php of your active theme.

      /* Hide the address */
      add_filter( 'wcmp_vendor_store_header_hide_store_address', 'hide_address');
      function hide_address() {
      	return 'Enable';
      }
      
      /* hide the phone */
      add_filter( 'wcmp_vendor_store_header_hide_store_phone', 'hide_phone');
      function hide_phone() {
      	return 'Enable';
      }
      
      /* hide the email */
      add_filter( 'wcmp_vendor_store_header_hide_store_email', 'hide_email');
      function hide_email() {
      	return 'Enable';
      } 
      Copy
    • #90968
      handmadeontheweb
      Participant

      is it possible to show the country the vendor is based in but hide the rest of their info?

    • #90982

      @handmadeontheweb, may I know what section are you referring to, so we can help you out accordingly.

    • #91009
      handmadeontheweb
      Participant

      on a vendors shop front. so when a customer views the vendors store they can see what country they are located in, but no other personal information

    • #91023

      @handmadeontheweb, can you please share a screen capture explaining, what field you want to remove so we can help you out accordingly.

    • #91025
      handmadeontheweb
      Participant

      Sure, if possible I would like the layout to be like so (I currently have all vendor info hidden)
      1. Vendor country
      2. Total number of sales vendor has had
      3. Vendor reviews
      I hope the pic explains it

    • #107593
      abhirup
      Moderator

      Hi, Sorry for the delayed response, as somehow we missed this thread.
      My replies are inline–
      >> 1. Vendor country
      — Override this template by copying it to yourtheme/dc-product-vendor/archive_vendor_info.php
      add below code after line no 12

      $location= metadata_exists( 'user', $vendor->id, '_vendor_country' )?get_user_meta($vendor->id, '_vendor_country', true):'';
      Copy

      remove below code from your function.php

      /* Hide the address */
      add_filter( 'wcmp_vendor_store_header_hide_store_address', 'hide_address');
      function hide_address() {
      	return 'Enable';
      }
      Copy

      >> 2. Total number of sales vendor has had
      — for this you need some custom code let me know if you still need this

      >> 3. Vendor reviews
      — update the new version(3.5.9) of WCMp plugin you can see the review on this page.

      Regards,

    • #111785

      We have not received any update from you for a long. Hope this ticket is already been resolved.

      We are now closing this ticket. Kindly create a new one if you need any further help.

Viewing 9 reply threads

The topic ‘Give vendor option to hide info from his store’ is closed to new replies.

Buy all Marketplace addons together, check out our Bundle

Buy at Slashed Price