Home Forums WC Vendors Free Support Get the Value of Vendor City and State

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.


Thank you to all of our customers!


Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #9054
    Martin Yi

    Hello everyone,

    I need some help. How do I get the city and state value of a Vendor in a Product? So I could calculate the shipping cost.

    Thank you so much.

    WC Vendors Support

    Hi Martin!

    If you are looking to add city/states or even zip codes to the vendor shop settings, you can use this code and customize it so that you can add the new fields:


    It will save the data to the user meta so you can query it using get_user_meta().

    Have fun!


Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.