Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Policy/Refound and Warranty
- This topic has 9 replies, 3 voices, and was last updated 4 years, 7 months ago by ciccupio97.
- AuthorPosts
- May 5, 2020 at 6:45 am #126776ciccupio97Participant
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?
- May 5, 2020 at 1:34 pm #126885Sarmistha ChakrabortyMember
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.
- May 6, 2020 at 2:30 pm #127350ciccupio97Participant
Hi thank’s for reply.
I’ve tryied both method.
Via child theme function.php and via plugin but in my case doesn’t workAttachments:
You must be logged in to view attached files. - May 6, 2020 at 2:37 pm #127363Sarmistha ChakrabortyMember
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.
- May 6, 2020 at 11:42 pm #127660ciccupio97Participant
And for remove Policy tab from product page?
- May 7, 2020 at 2:46 pm #127950Sarmistha ChakrabortyMember
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.
- May 11, 2020 at 11:52 pm #129745ciccupio97Participant
Thank’s.. I’ll test it and i came with news soon
- May 13, 2020 at 6:10 pm #130430SebastianFloKaParticipant
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.- May 13, 2020 at 6:26 pm #130437Sarmistha ChakrabortyMember
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
- May 25, 2020 at 2:55 am #134868ciccupio97Participant
thank’s work fine
- AuthorPosts
- You must be logged in to reply to this topic.