WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Woocommerce (9 posts)

  1. ezsave
    Member
    Posted 1 year ago #

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

  2. catacaustic
    Member
    Posted 1 year ago #

    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.

  3. ezsave
    Member
    Posted 1 year ago #

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

  4. catacaustic
    Member
    Posted 1 year ago #

    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.

  5. ezsave
    Member
    Posted 1 year ago #

    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

  6. catacaustic
    Member
    Posted 1 year ago #

    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. :)

  7. ezsave
    Member
    Posted 1 year ago #

    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

  8. catacaustic
    Member
    Posted 1 year ago #

    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.

  9. ezsave
    Member
    Posted 1 year ago #

    Thank you for your help appreciate it

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.