Hide store tabs

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 8 reply threads
  • Author
    Posts
    • #59586
      gusslou
      Participant

      Hi,

      I would like your help to do 3 things.

      1. How do I hide some vendor store tabs? there are 4 defaults tabs on vendor store page. I would like to hide “About” tab and “Followers” tab.

      2. How do I reduce store name font size?

      3. How do I add total earnings tile on ledger to page to vendor dashboard?

      Thanks.

    • #59652
      WCFM Forum
      Member

      Hi,

      1. How do I hide some vendor store tabs? there are 4 defaults tabs on vendor store page. I would like to hide “About” tab and “Followers” tab.

      – Please disable “Followers” module from WCFM Admin Setting -> Modules
      About – each vendor setting has this option. If you want to hide this globally then I have to give you a code snippet for this.

      2. How do I reduce store name font size?

      – Best way to add CSS at child theme’s style.css for this. Give me a store URL from your site, I will help you in this.

      3. How do I add total earnings tile on ledger to page to vendor dashboard?

      – Vendor dashboard already has “total earning”. But it show last moth earning, do you want to change this for lifetime ?

      Thank You

    • #59719
      gusslou
      Participant
      This reply has been marked as private.
    • #59724
      gusslou
      Participant

      I am referring to vendor account dashboard from the vendor’s point of view in point 3 not admin view of vendor.

    • #59827
      WCFM Forum
      Member

      HI,

      1. The method you suggested disables the followers module completely. I do not want this. I want follow module to remain active but I want to hide only followers tab and about tab from vendor store globally. I would be grateful if you can share code snippet I can add to my child theme to help me do this. images included below.

      – Please use this code snippet –

      add_filter( 'wcfmmp_store_tabs', function( $store_tabs, $store_id ) {
      	if( isset( $store_tabs['about'] ) ) unset( $store_tabs['about'] );
      	if( isset( $store_tabs['followers'] ) ) unset( $store_tabs['followers'] );
      	return $store_tabs;
      }, 50, 2 );

      3. Please use this to hide no. of sold item –

      add_filter( 'wcfm_is_allow_stats_block_sold_item', '__return_false' );

      But this will work after next update.

      Well, Admin Fee and Earning is actually same. As you have setup commission mode “For Admin” so it’s showing ass Admin Fee. If you set this “For Vendor” then it will show you “Earning”

      Thank You

    • #60078
      gusslou
      Participant

      Thank you for your reply.

      The snippets you sent me worked perfectly.

      I however did not receive the css code snippet to reduce size of store name font size to 30px. Kindly send me that as well.

      Thank you.

    • #60237
      WCFM Forum
      Member

      HI,

      Please use this CSS –

      #wcfmmp-store .banner_text h1 {
          font-size: 30px !important;
      }

      Thank You

    • #78462
      jorsenmejia
      Participant

      how to hide description tab?

    • #79113
      WCFM Forum
      Member

      Hi,

      Please use this code for the purpose –

      add_filter( 'wcfmmp_store_tabs', function( $store_tabs, $store_id ) {
      	if( isset( $store_tabs['about'] ) ) unset( $store_tabs['about'] );
      	return $store_tabs;
      }, 50, 2 );

      Thank You

Viewing 8 reply threads
  • The topic ‘Hide store tabs’ is closed to new replies.