Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Stores list map cannot be hidden in shortcode
Tagged: stores list
- This topic has 14 replies, 6 voices, and was last updated 4 years, 4 months ago by Winterja.
- AuthorPosts
- May 15, 2020 at 1:01 pm #131282salenishParticipant
Using this shortcode to format my stores list:
[wcfm_stores map=”” country=”” state=”” has_product=”yes” has_orderby=”” per_row=”3″]
It worked fine But it is no longer applying the filters now.
I want to hide map, country, state, all stores without products.please help.
- May 15, 2020 at 5:46 pm #131381trawler-captainParticipant
I have the same problem. all shortcodes in the vendor list are not working anymore. i want to get rid of the filter and the map and i want to have a grid of 5 vendors per listing. but it is not working at all. [wcfm_stores has_map=”no” per_row=”5″ theme=”compact”] plus the options for deactivating the filter. tried out different ways but nothing is working check http://dev.tradingstore.co.nz/wellington/
- May 16, 2020 at 4:47 pm #131790Sarmistha ChakrabortyMember
Hello,
It seems like you didnt paste the shortcodecode properly,
you may hide those stores from store list which not yet have any products, using
[wcfm_stores has_product="yes"]
Store per row 5, using –
[wcfm_stores per_row=5]
Hide map,country, state add below code in your theme’s functions.php –
add_filter('wcfmmp_is_allow_store_list_country_filter', '__return_false'); add_filter('wcfmmp_is_allow_store_list_state_filter', '__return_false'); add_filter('wcfmmp_is_allow_store_list_map', '__return_false');
Thanks.
- May 18, 2020 at 3:43 pm #132553trawler-captainParticipant
Hi there, this helped already a little. but if i deactivate the map. the whole sidebar stops working. as soon as i add this code in my functions.php add_filter(‘wcfmmp_is_allow_store_list_map’, ‘__return_false’);
the sidebar stops working and i cant select anything anymore also no search is possible.- May 18, 2020 at 6:11 pm #132620Sarmistha ChakrabortyMember
Hi,
It seems like you are using openstreet map, for this to hide map you need to add this css in your theme’s style.css –
div.wcfmmp-store-list-map { display: none !important; }
and Remove the code
add_filter('wcfmmp_is_allow_store_list_map', '__return_false');
Thanks.
- May 19, 2020 at 10:51 am #132914leitiParticipant
Why are you changing the shortcodes and not telling people? Or did I miss the announcement somewhere?
Same here – The shortcode wcfm_stores map=”” worked great, and now it has to be disabled via css and is still loaded. That’s not very userfriendly
- May 20, 2020 at 2:18 pm #133479Sarmistha ChakrabortyMember
You can also remove map using –
[wcfm_stores has_map="no"]
Please check here – https://docs.wclovers.com/store-list/Thanks.
- May 19, 2020 at 10:03 pm #133194trawler-captainParticipant
sorry i dont use openstreet maps, i use only google
- May 20, 2020 at 2:17 pm #133478Sarmistha ChakrabortyMember
Hello,
Map is still displayed in your store list page? Or sidebar still not working? Let us know the previous code was working or not?
Thanks!
- May 27, 2020 at 1:37 pm #135679Raúl Ramón ValParticipant
Hello
I have exactly the same problem. I was able to remove the country and state filter thanks to the function.php codes you mentioned. But now it would have to show the city and / or zip code filter (has_city = “yes” and has_zip = “yes” in the shortcode doesn’t work).
I’d also like to be able to adjust the map’s zoom options (attributes auto_zoom = “no” and map_zoom = “10” don’t work).
Thanks
- May 27, 2020 at 10:17 pm #135952Sarmistha ChakrabortyMember
Hello,
Which layout are you using for the “Store list page”? “Store list filter” is it in sidebar or top of the store page?
Thanks.
- May 28, 2020 at 1:23 pm #136129Raúl Ramón ValParticipant
Hello
I’m using the filters at the top, the ones that appear just below the map. Attached image
Thanks
Attachments:
You must be logged in to view attached files.- May 28, 2020 at 2:02 pm #136138Sarmistha ChakrabortyMember
Hello,
For this don’t use “add_filter”(functions.php code) to remove country and state filter.
Use this shortcode –[wcfm_stores has_radius="no" has_country="no" has_state"no" has_city="yes" has_zip="yes" auto_zoom = "no" map_zoom="10"]
Thanks.
- July 10, 2020 at 2:32 am #147435WinterjaParticipant
Hello,
How about this :
my ‘Choose location’ button show nothing, its pre-configuring on wcfm vendors, geo location and state/city information, but still doenst come up.this is my store list sidebar :
widget : store list : location filter, search by location
disabled : city and zip code,
enabled : state filter ( But it shows nothing! )Please, help me up with this, idk what im doing wrong.
Image attached.
Thanks
Attachments:
You must be logged in to view attached files. - July 12, 2020 at 10:32 pm #148473WinterjaParticipant
Hello again, please, i really need support in this!
- AuthorPosts
- You must be logged in to reply to this topic.