Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Vendors › store setup field customisation
- This topic has 5 replies, 2 voices, and was last updated 4 years, 8 months ago by Sarmistha Chakraborty.
- AuthorPosts
- April 14, 2020 at 6:03 pm #119043williamParticipant
Hi
Is there a documentation where I can find every single field list in the store-setup i.e add_filter( ‘wcfm_is_allow_store_map_location’, ‘__return_false’ ); turn of the map. How about turning off the Store Country and Store State/County.
I tried:
add_filter( ‘wcfm_is_allow_store_country’, ‘__return_false’ );
add_filter( ‘wcfm_is_allow_store_state’, ‘__return_false’ );It does not work
- April 15, 2020 at 2:27 pm #119318Sarmistha ChakrabortyMember
Hello,
In store setup removing country and State/County,
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_filter('wcfm_marketplace_settings_fields_address',function($fields, $user_id) { unset($fields['country']); unset($fields['state']); return $fields; },10,2);
Thanks.
- April 15, 2020 at 3:55 pm #119341williamParticipant
Thank you.
I am asking about where can I get documentation to read about all the snippet?
I.e all the fields in store setup such as Support Setup field etc.. - April 15, 2020 at 9:04 pm #119431Sarmistha ChakrabortyMember
Hello,
Here is the link :https://docs.wclovers.com/tweaks/ where you can find general code snippet.
Though you will not get every code snippet , and for this you have contact our support.Thanks.
- April 16, 2020 at 2:35 am #119555williamParticipant
Thanks
You are correct. The article is does not contains all the snippet. It would be good as a feature if setting up store, the admin can choose which part in the store setup can be toggle on and off. Plus adding additional custom field. You can even sell this a premium add on.
I want to modify the Store Setup > Customer Support step with the following:
1. Auto filled the phone, email, address from data previously enter in the Store Setup > Store
2. Hide Country, City/Town, State/Country, Postcode/ZipThank you.
- April 17, 2020 at 3:27 pm #119991Sarmistha ChakrabortyMember
Hello,
As send you previously to hide Country, City/Town, State/Country, Postcode/Zip from store setup,
add_filter('wcfm_marketplace_settings_fields_address',function($fields, $user_id) { unset($fields['country']); unset($fields['state']); unset($fields['city']); unset($fields['zip']); return $fields; },10,2);
And by-default the fields which you fillip during Store Setup, will Auto filled in vendor store settings.
Thanks.
- AuthorPosts
- You must be logged in to reply to this topic.