Policy/Refound and Warranty

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
    • #126776
      ciccupio97
      Participant

      Good monring dear Sir,

      is possible to make policy/refound and warranty unique for whole site in order to disallow each vendor to have his own?

    • #126885

      Hello,

      For this admin have to add “Store Policy” from WCFM store dashboard -> Settings -> Store Policy.

      Then Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

      add_action('wcfm_init','remove_translate_option_for_vendor',100);
      function remove_translate_option_for_vendor() {
      	if( wcfm_is_vendor() ) {
      		global $WCFM, $WCFMu;
      		remove_action('wcfm_vendor_settings_after_seo', array( $WCFM->wcfm_policy, 'wcfm_policy_vendor_settings' ), 15 );
      	}
      }

      Thanks.

    • #127350
      ciccupio97
      Participant

      Hi thank’s for reply.

      I’ve tryied both method.
      Via child theme function.php and via plugin but in my case doesn’t work

      Attachments:
      You must be logged in to view attached files.
    • #127363

      Hello,

      To remove “Policy” option settings from vendor then the previous code will work –

      add_action('wcfm_init','remove_policy_option_for_vendor',100);
      function remove_policy_option_for_vendor() {
      	if( wcfm_is_vendor() ) {
      		global $WCFM, $WCFMu;
      		remove_action('wcfm_vendor_settings_after_seo', array( $WCFM->wcfm_policy, 'wcfm_policy_vendor_settings' ), 15 );
      	}
      }

      To remove “policy” tab from Vendor store, you need to add below code also –

      add_filter( 'wcfmmp_store_tabs', 'new_wcfmmp_store_tabs',90,2);
      function new_wcfmmp_store_tabs($store_tabs, $id) {   
          unset($store_tabs['policies']);
          return $store_tabs;
      }

      Thanks.

    • #127660
      ciccupio97
      Participant

      And for remove Policy tab from product page?

    • #127950

      Hi,

      Try ths code –

      add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs_0705', 100 );
      function woo_remove_product_tabs_0705( $tabs ) {	
          unset( $tabs['wcfm_policies_tab'] );          // Remove the policy tab
         	unset( $tabs['policies'] );
          return $tabs;
      }

      Thanks.

    • #129745
      ciccupio97
      Participant

      Thank’s.. I’ll test it and i came with news soon

    • #130430
      SebastianFloKa
      Participant

      Dear Mr. Sarmistha Chakraborty;
      similar but different topic:
      I want my vendors to enter only storewide store policies from their vendor dashboard and disallow to modify product policies. But the store policies should be displayed as currently on store page tab and on single product page tab. It’s a legal thing that there should be one store wide policy for the complete store and not be many different ones for each product.

      So is there a possiblity to hide only the tab to enter product policies in the “product manager” (hope this is correct word for where the vendor enters all details of a product such as price etc.). All rest stay the same.

      Thank you very much.

      Attachments:
      You must be logged in to view attached files.
      • #130437

        Hello,

        Hide “Product Policy” from product manager –

        add_action('init',function(){
        	global $WCFM; 
        	remove_action( 'after_wcfm_products_manage_tabs_content', array( $WCFM->wcfm_policy, 'wcfm_policy_product_settings' ), 100 );
        });

        Then Add this code to your child theme’s functions.php
        In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

        Thanks

    • #134868
      ciccupio97
      Participant

      thank’s work fine

Viewing 8 reply threads
  • You must be logged in to reply to this topic.