• Resolved kellyteagle

    (@kellyteagle)


    Hi there,

    I have a situation I’ve never come across before. On Product pages, my client would like to add a text field that the customer will fill in. The field will contain a question or two, which the customer needs to answer BEFORE they checkout.
    Each product will have a set of different questions, so it can’t be done as a Variation option.

    I thought I’d add in a custom field using the Advanced Custom Fields option, but that only allows me to add a text field for the site owner to answer, when they edit a product. I specifically need the field to be edited by the Customer when they’re about to add a product to their basket.

    Can anyone help please?

    Thanks in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • No, ACF is not for this. Search for “add-ons” or “product options” on the plugins page. These plugins allow you to create various types of product page fields.

    Try a few and see what works for you.

    Similar premium plugins are available.

    Hello,

    Product Add-Ons can allow you to add a text field on product pages, and require customers to fill in before adding product to cart.

    Thread Starter kellyteagle

    (@kellyteagle)

    Thanks for your replies. I had hoped there might be a way to achieve this wihout using a plugin?

    The checkout page has an “order notes” field, where the customer can add any special requirements about their order. But of course, some may not, and in that case you would need to contact them.

    There are tutorials out there about how to do it in code, but php skills would be needed.

    Plugins are widely used for this requirement, its the way to go.

    Thread Starter kellyteagle

    (@kellyteagle)

    I am a PHP dev, and would prefer not to load up my sites sites with too many plugins. Thanks for your replies ??

    I’ve heard several people say that, but I’ve not understood the reason. If you write your own, you’re going to end up with much the same code to do the same thing, it’ll take a lot longer to setup and it’ll need debugging. Existing plugins should be more or less debugged already. Cutting a few unwanted functions out of the loop will make a negligible difference to execution time. Better to spend time writing stuff that doesn’t exist than reinvent the wheel. If there isn’t a plugin to do the job already then by all means, but adding a text field to a product page is well covered.

    Thread Starter kellyteagle

    (@kellyteagle)

    OK the reason is simple. Each plugin you add to a site has the potential to slow it down. Plugins normally come with a bunch of ‘bloat’ that you may or may not need. When they load up on a page, their libraries are imported – often files full of JS or CSS. Each of these requires another HTTP request to the server, and contributes to the page loading time.
    This isn’t a problem on computers with good broadband, but on phones or cr*p broadband, it can make a big difference to page loading times.
    I like to keep my websites as streamlined as possible – and as a PHP Dev. it should be possible for me to write my own code.

    I did in the end, by the way. I found a useful tutorial on the web which helped me work out how to do it ??
    I just needed to work out what hooks to use.

    • This reply was modified 4 years, 1 month ago by kellyteagle.
    Plugin Support abwaita a11n

    (@abwaita)

    Glad to hear that you solved this one – thanks for letting us know!

    I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add a custom text field to a product page’ is closed to new replies.