Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Adding a Filter Option for Vendors (to filter vendors NOT products)
- This topic has 2 replies, 1 voice, and was last updated 3 years, 12 months ago by chloe.
- AuthorPosts
- April 26, 2020 at 5:34 am #123109chloeParticipant
Hello!
I’m trying to create a user flow that works like this:
user enters address >>> user then chooses a pickup location (a geo-located custom post type) >>> user then sees a list of all vendors available for that pickup location
For example, if the user enters their address and then selects LOCATION-A, I want them to then see all vendors that deliver to that pickup location.
The part where I’m stuck is the part where I can filter the vendors by a custom value, ie the pickup location the user selected. I have a couple ideas for an approach:
1) Pickup locations are simply CATEGORIES and I filter vendors by that CATEGORY (or custom taxonomy)
or
2) Pickup locations are ACF SELECT VALUES and I filter vendors by a a custom query META_KEYI have geolocation working, the custom post type working, vendors working, I just need to be able to somehow tie pickup locations to a filtered vendor list. I’m an experienced developer so I’m fine with completely rebuilding templates and writing custom queries, I’m just not sure exactly what I’m supposed to be calling. I’ve been trying for several hours to dissect the [wcfm_stores] shortcode from the class-wcfmmp-shortcode.php file, but while I can strip out most things and get the vendors to display, I cannot seem to filter them by any meaningful value. The best I can do is create a template that displays an un-styled list of all vendors.
I’m open to other ideas or options for the user flow/journey, I just really need to be able to tie a pickup location into each vendor in a prominent way. If this is only possible with Ultimate, that’s not a barrier for me. I’m really open to anything.
Can you help point me in the right direction for this?
Thank you very much!
- April 28, 2020 at 10:41 pm #124393chloeParticipant
Anyone have any ideas?
I still have not heard from the direct support request I submitted for the ‘categories for vendor’ solution I’ve seen mentioned in a few threads. If it’s not possible, that’s ok, I’d just like a little feedback.
Thanks!
- April 30, 2020 at 10:03 pm #125155chloeParticipant
Ok, I’ll just mark this as “there is no solution and this isn’t possible” and move on to a different vendor solution.
- AuthorPosts
- You must be logged in to reply to this topic.