[Plugin Woocommerce] add location field to woocommerce products
-
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
- The topic ‘[Plugin Woocommerce] add location field to woocommerce products’ is closed to new replies.