How to empty store list if location not provided?

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Vendors How to empty store list if location not provided?

Tagged: 

Viewing 5 reply threads
  • Author
    Posts
    • #119356
      obaza.cs
      Participant

      By default, the page is listing all store if no location has been provided. How to make it empty by default and display the list only after the location is provided or detected by browser?

    • #119404

      Hello,

      You can achieve this to enable the “Enable Auto Filter” option from admin WCFM dashboard -> Settings -> Geo location -> Enable Auto Filter (PFA)

      Thanks.

      Attachments:
      You must be logged in to view attached files.
    • #119734
      obaza.cs
      Participant

      Thanks for the quick response. Actually i already set that. It works like what it supposed to which is auto locate user loc and filter the vendors.

      But the issue is when somebody erase their address which is auto fill in the address bar, than the page will show all vendors.

      Just asking if you have any solutions to hide the vendors if the address bar is not filled.

      Thanks

    • #119760

      Hi,

      You need to override the “wcfmmp-view-store-lists-loop.php” file in your theme <your theme folder>/wcfm/store-lists/wcfmmp-view-store-lists-loop.php and add the “$search_data[‘wcfmmp_radius_addr’] != ”” condition. (PFA)

      Thanks.

      Attachments:
      You must be logged in to view attached files.
    • #119838
      obaza.cs
      Participant

      Problem solved. Tqvm for your great support. May God bless you always!

    • #121056

      You are always welcome 🙂

      Let me know if there’s anything else we can help you with.
      Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.

Viewing 5 reply threads
  • You must be logged in to reply to this topic.