Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › WCFM Geolocalization products not listed if out of customer position
- This topic has 2 replies, 1 voice, and was last updated 4 years, 7 months ago by ciccupio97.
- AuthorPosts
- May 26, 2020 at 2:46 pm #135355ciccupio97Participant
Hi dear, I’m facing on this kind of problem.
Product List Radius Search on geolocalization tab filter product dipending on the Maximum Radius to Search value defined.
But what happen: This filter only show product so far from customer position as per maximum radius to search but if product is out of this radius products are not listed.
Must be better to display all product in whole country and display first of all products near customer not excluding even product out of that radius.Please help me
- May 26, 2020 at 2:56 pm #135356ciccupio97Participant
In my personal case could be ok maybe by raise until 1000km insted of 500km
- May 26, 2020 at 3:29 pm #135362ciccupio97Participant
fixed by adding this on function.php of child theme
add_filter( 'wcfm_max_radius_to_search_options', function( $max_radius ) { $max_radius = array( '10' => '10', '15' => '15', '20' => '20', '50' => '50', '100' => '100', '150' => '150', '200' => '200', '500' => '500', '1500' => '1500' ); return $max_radius; });
- AuthorPosts
- You must be logged in to reply to this topic.