Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Geo location radius
Tagged: geo location, maps
- This topic has 7 replies, 3 voices, and was last updated 5 years ago by jp2019.
- AuthorPosts
- November 21, 2019 at 9:22 pm #93311awaludinParticipant
Hello, Nice plugin you have here. I wonder if it is possible to set lower radius such as 1 or 2 kilometers? The lowest from WCFM settings is 50 km radius. Thank you.
- November 23, 2019 at 12:03 pm #93587WCFM ForumMember
Hi,
Sure, please add this code to your site –
add_filter( 'wcfm_max_radius_to_search_options', function( $max_radius ) { $max_radius = array( '1' => '1', '2' => '2', '5' => '5', '8' => '8', '50' => '50', '100' => '100', '150' => '150', '200' => '200', '500' => '500' ); return $max_radius; });
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/Thank You
- December 4, 2019 at 1:27 am #95917jp2019Participant
In which line of code should it be inserted?
- December 7, 2019 at 12:55 pm #96410WCFM ForumMember
Add this code to your child theme’s functions.php – any where
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/ - December 10, 2019 at 8:05 am #96813jp2019Participant
It didn’t work. Could you send me where I can modify the code inside the plugin? In which file and line of the plugin code?
- December 12, 2019 at 9:08 am #97160WCFM ForumMember
Kindly show me screenshot, where you have added this code.
Well, it’s very dangerous to edit plugin’s core files, you will not able to update plugin anymore!
- December 12, 2019 at 6:43 pm #97253
- December 16, 2019 at 6:32 pm #97642jp2019Participant
Sorry, I din’t perceive that the code automatically places the values on the store administrator page…
It’s all ok!
Thanks for your answer
- AuthorPosts
- The topic ‘Geo location radius’ is closed to new replies.