How can we improve WooCommerce?

New WooCommerce Extension - Custom Product Form Fields

I would love to see an Extension for WooCommerce to add "custom form fields" functionality to the products pages. In some cases extra information needs to be captured along with the product or service you are selling.

For example: I am selling services and I need to get a date, time, and driving directions from the purchaser.

Or I am selling a sign product and need to know a phone number, type (maybe a dropdown with options), and directions.

I can not find any cart solution (out of the box) that can do this. So a great addition to your WooCommerce could be "Product Forms Plugin" to allow users to create simple forms, then attach them to products to capture custom info. I would pay $$$ for this!!! Please consider developing this. I am sure many of us could use ad extension like this.

76 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Fred RomanoFred Romano shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    Nick MarquesNick Marques shared a merged idea: Personalized Products / User Input Details  ·   · 

    49 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • ee commented  ·   ·  Flag as inappropriate

        and how do we make the product custom text NOT show up as a slug? someone else had this problem too. Thank you.

      • ee commented  ·   ·  Flag as inappropriate

        what about just if then statements? could you do something simple like that even?

      • ee commented  ·   ·  Flag as inappropriate

        does Filtah's method work with the new 2.0 woocommerce? thanks.

      • CyrusCyrus commented  ·   ·  Flag as inappropriate

        Is there a possibility to add an extra price field? In Europe one would hve to add a 100g price or price per kilo for food products... how can i handle this issue?

      • mkellymkelly commented  ·   ·  Flag as inappropriate

        Thanks for the code this works great. Only problem is it shows the text input as the slug on the cart page. E.g Happy Birthday Joe in the text input becomes happy-birthday-joe

      • westwebwestweb commented  ·   ·  Flag as inappropriate

        @Filtah and @aschroder - thank you!!

        I agree the "CUSTOM_TEXT" in the Additional Info doesn't look good, but I think that the whole area looks clunky, so I'm just going to remove it.

        This hack has really got me out of a massive hole, I hope that WooCommerce will integrate this feature soon.

      • mattQmattQ commented  ·   ·  Flag as inappropriate

        @filtah, @Tim Read - all is ok but like Tim my button "add to cart" is hidden...some1 can send any solution or something

        mateusz[dot]krupnik[at]gmail[dot]com

        Regards
        Matt

      • melbahmelbah commented  ·   ·  Flag as inappropriate

        Got the custom field to work, however is there anyway to get rid of the "CUSTOM_TEXT" in the additional information tab?

      • Steve TsonevSteve Tsonev commented  ·   ·  Flag as inappropriate

        If it says completed what does that mean? and why would I still have to change the code in the variable.php in order to get custom product form fields? Wrodpress and woocommerce are so progressive in what they have to offer I am surprised they are missing such a basic feature. I mean by not including it they are excluded a large number of businesses that require custom fields, like bakeries(cakes), flowers (delivery), pizza (delivery), print (text, like a customer printed shirt to whatever)

        By if this was implemented in why are people still unable to find it?

        Thanks

      • Konrad K.Konrad K. commented  ·   ·  Flag as inappropriate

        Tim Read

        It's because add-to-cart-variation.min.js doesn't see any option select so it makes add to cart button hidden. Simply woocommerce thinks that no option is selected.

        Really ugly messy but working fix i've pasted here.
        http://pastebin.com/ykR6Ar2f

        Hope it helps until someone takes more time to refine .js

      • Tim ReadTim Read commented  ·   ·  Flag as inappropriate

        Big props to @filtah for trying to sort this. I've got as far as seeing the free text box on my screen but my Add to basket button is missing. I have set a price for the variation. Any ideas?

      • filtahfiltah commented  ·   ·  Flag as inappropriate

        One more thing, as mentioned before, to be able to use this fix you need to create a variable product. Add a custom product attribute with any name but with the value 'CUSTOM_TEXT' (without quotes..)
        Save the page.
        Now add a variation, give it a price, and save again.
        You should see your custom text box now on the product page.

      • filtahfiltah commented  ·   ·  Flag as inappropriate

        Right, I finally figured this out. The code posted earlier from github is correct, however the file and location of where to post it has completely changed!!!!
        I figured it out by painstakingly searching all the source files text contents for similar code!!!!
        I'm not php guru and there's a lot of code here. anyway, I figured it out and i'm posting as others may find this useful.

        the file you are looking for is buried here:

        woocommerce/templates/single-product/add-to-cart/variable.php

        You need to add only a few lines of code.
        The code form github should be able to guide you but for gods sake, dont just copy-paste the whole thing!

        I am using WooCommerce 1.6.6

        It's too diffucult to explain how to edit the code, so heres a link to the patched version, so you can just replace your existing file without any need for coding:

        https://gist.github.com/4577058

        Please note - if you update WooComerce it will overwrite and break this fix.
        Please do yourself a favour and also have a look at the code so you can see the simple changes I've made - you will need to manually re-apply them for a version update as the code will probably be a bit different.

        Cheers

      • buzzmandtbuzzmandt commented  ·   ·  Flag as inappropriate

        Can we get an update on this before I start trying to hack at code I don't understand?

      • Danielle DinoDanielle Dino commented  ·   ·  Flag as inappropriate

        Is there an update to this post yet? I really need an extension or modified PHP file as well that will allow for text input product variations just like Fred needed.

      • Danielle DinoDanielle Dino commented  ·   ·  Flag as inappropriate

        Did anything ever become of this? I am in dyer need of the same exact thing. I can't get this hack to work because there is no file called woocommerce_template_functions.php. I see a woocommerce_functions.php, woocommerce_template.php but nothing exactly as Ahsley says.

        Is there a plugin yet or can someone help me figure this out? i just need a text box for attributes to the user can add their own attributes.

      ← Previous 1 3

      Feedback and Knowledge Base