• I’m creating a wordpress website using woocommerce and dokan plugin, so users can create an account and post their products, and I’d like to be able to add a “location” field to each woocomerce product they create via their front-end admin. The data would be stored in my database, so I could create a search map by location and make the users find all the products based on their position.

    I really don’t know where to begin. I’ve tried looking at several tutorials to store lat/long in mysql but I can’t manage to create a field in my “add a product” form. And I can’t seem to find a way to call back those lat/long stored data on the added product page. If I can’t even do that I can’t even begin to think about the “search by radius” code.

    Could someone please enlighten me? Thanks a lot

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you figure out how to do this? I am looking for something similar…

    Thread Starter 4irmax

    (@4irmax)

    Hey,

    No sorry and I’ve been busy so I had no time to improve my code.
    I’ll let you know if something comes up ??

    looking to do a similar thing, i want to be able to add the geolocation of a product and then display this on a map

    Did either of you have any luck?

    HI,
    Checkout GEO my WP plugin. IT allows you to geotag any of your post types, including Woo Products. Then you can created search forms ( using GEO my WP form builder ) to search and find products based on address, radius, categories and more. Results will show as a list and or Google Map.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin Woocommerce] add location field to woocommerce products’ is closed to new replies.