Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Hide Store Radius Slider and A Constant Radius
- February 24, 2020 at 12:42 pm #108488awaludinParticipant
I’m using wcfm_stores to show a list of stores inside a radius. By using hard coded method I can set other than 50 km radius. Usually I set 10 so the radius shown is 1 km as default. I also commented several lines of codes to hide search and category filter for wcfm_stores. However if the plugin is updated, all my code was wiped out. Is it possible to make a constant radius and hide the slider? Is it possible to hide the search form without touching the code?
- February 27, 2020 at 1:28 pm #109013Sarmistha ChakrabortyKeymaster
For this requirement(to make a constant radius and hide the slider), you have to override the store search template in your activated child theme.
<your activate theme>/wcfm/store-lists/wcfmmp-view-store-lists-search-form.php
Replace the radius range field
<input class="wcfmmp_radius_range" name="wcfmmp_radius_range" id="wcfmmp_radius_range" type="range" value="<?php echo (absint(apply_filters( 'wcfmmp_radius_filter_max_distance', $max_radius_to_search ))/apply_filters( 'wcfmmp_radius_filter_start_distance', 10)); ?>" min="0" max="<?php echo apply_filters( 'wcfmmp_radius_filter_max_distance', $max_radius_to_search ); ?>" steps="6" />
<input class="wcfmmp_radius_range" name="wcfmmp_radius_range" id="wcfmmp_radius_range" type="hidden" value="4" />
And remove those fields which are you don’t want to display in front-end.
- April 9, 2020 at 9:59 pm #117377gorkkirkParticipant
I would like nothing to be shown by default until the address is entered. it’s possible?
- April 13, 2020 at 5:00 pm #118730
- June 28, 2020 at 8:30 am #144747mauro.chuchuyParticipant
Hi gorkkirk I was searching for customizations for my marketplace and saw your question. The answer to your last question is on a different post:
Hope its not too late!
- You must be logged in to reply to this topic.