Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

disable the vendor policy page on the vendor store page

WCMp Core

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #141883
      l.gan
      Participant

      Hello

      Thanks for your help and support team.

      Please tell me the php code to disable the vendor policy page on the vendor store page. (I need policies on the product page. We need to remove the policies on the store page and exclude them from indexing by search robots)

      I mean disabling the page, which by url:
      …/vendor-slug/vendor-shop-name/policies/

    • #141914

      @l.gan, as you don’t need a vendor shop page policy page, so just disable the option “Enable Policy” via WCMp >> Settings >> General.

      Then it will also remove this from vendor shop page.

      • #141917
        l.gan
        Participant

        Sorry, I probably didn’t express myself correctly.
        Thanks for the reply, that’s what I did.

        This removed the policies from the vendor store page – yes.
        But it also removed the policies from the product page as well. I need policies on the product page.

        Please tell me how to leave policies on the product page, but remove them from the vendor page.

    • #141922

      Hi,
      kindly add below code to your function.php

      add_filter( 'wcmp_store_tabs', 'callback_wcmp_store_tabs');
      
      function callback_wcmp_store_tabs($tabs){
      	$new_tabs = array();
      	foreach($tabs as $tab){
      	 	if($tab['id'] != 'policies' ) {
      	 		$new_tabs[]= $tab;
      	 	}
      	}
      	return $new_tabs;
      }
      Copy

      regards,

    • #141923
      l.gan
      Participant

      thank you very much my issue is resolved

    • #141935

      You are welcome @l.gan

Viewing 4 reply threads

The topic ‘disable the vendor policy page on the vendor store page’ is closed to new replies.