• Hi there,

    Love your plugin, it’s really one of the best we have used so far!
    Coming to the question. First of all I apologise if it’s been asked before, but we have done a reasearch in the forum and couldn’t find an appropriate answer.

    We built a woocommerce mutlivendor marketplace and would like to create categories-related result pages using Geo My Wp.
    Specifically, we would want users to click on a ‘product category’ (in homepage) and bring them into a geolocalized list of of product, related to that category.

    It does not seem possible using the given shortcodes. Is there a work around to achieve this ?

    Many thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hello @wlsfh,

    Thank you for the feedback, and I apologize for my delayed reply.

    So you’d like to display products with a specific category, but not specific to a location?

    I am assuming that because by creating link that will display results based on a specific category won’t allow you to also enter an address.

    • This reply was modified 3 years, 9 months ago by Eyal Fitoussi.
    Thread Starter wlsfh

    (@wlsfh)

    Hi Eyal,

    No worries.
    No, we’d like to display ‘geo localized’ products belonging to a specific category,

    I.e. say you have 2 categories in the HP, red shoes and white shoes. Consumers click on one category. In the result page consumer will be able to see only those products available in X radius from their current location.

    We managed to do many things with Geo My WP but this seems fairly difficult.

    Is is it any way possible?

    Thread Starter wlsfh

    (@wlsfh)

    Hi Eyal,

    Have you got time to look into this ?

    Thx

    Plugin Author Eyal Fitoussi

    (@ninjew)

    Hey @wlsfh,

    What you described should be possible using a filter and a custom function.

    There is the filter ‘gmw_pt_search_query_args’ which you can find in geo-my-wp/plugins/posts-locator/includes/class-gmw-posts-locator-form.php on line ~289.

    Using this filter you can modify the Search query arguments before they pass into the WP_Query class. So you could write a custom function that will get the category of the current page that is being viewed, and use that to modify the tax_query argument of the WP_Query ( see some info here ).

    This should be possible but does require PHP knowledge.

    I hope this helps abit.

    Let me know if you have additional questions.

    Thread Starter wlsfh

    (@wlsfh)

    Hi Eyal,

    Thank you for your detailed answer.
    Will give it a try and let you know.

    cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filter by category’ is closed to new replies.