Support » Fixing WordPress » Woocommerce

  • Resolved ezsave


    How do I allow the price field to accept text in woocommerce
    I would like to use this field for city / location

Viewing 8 replies - 1 through 8 (of 8 total)
  • I don’t believe that you can. A price is always going to be a numerical value. It’s pard to pay $”New York” for an item.

    What exactly are you trying to do with this? There’s got to be another way around it.

    I would like to post a city name in the place where the price posts

    So is it only that city that the price applies to? Can people in other cities/locations purchase that item as well? Is there different prices for different locations? How will you be ble to control which location and price that users choose?

    I ask these things because… I see people all the time that buy the one at the lowest price regardless of the location, and then say “Oh, I didn’t know there was a difference that I just got that one”. It’s an administration nightmare.

    We actually don’t sell products we are using this for a business directory
    So we don’t need to post prices
    We just want an easy way to post a location with the business name
    As we are entering the business name as the product name

    Oh… Then forget about the price field and create a custom attribute field and use that to hold the location.

    I have to say that I don’t know if Woocommerce is really the best platform for this. There’s a whole lot of stuff in there that you won’t use ever so it seems like a lot of overkill when you could just develop a small custom post type that would handle what you want to do, make things a lot eaiser for you, and allow you to not worry about issues like this. 🙂

    This is true but we like a particular theme and using just the portfolio from it didn’t allow us to post all the info we needed

    As for the attributes, we tried but we couldn’t find one that posted our city names where we needed. Maybe some more trial and error on our end is needed

    You just need to modify the theme to display the attribute where you need it to go. You can see how the attributes are displayed by looking at the templates that are inlcuded with Woocommerce so it should be easy enough to track that information down.

    Thank you for your help appreciate it

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Woocommerce’ is closed to new replies.