[wcj_input_field]

Output input field

Description

[wcj_input_field] shortcode outputs input field.

Args

name
(required) Unique name.

Default: None
type
(optional) Input field type. Possible values:

  • text
  • number
  • password
  • date
  • month
  • week
  • time
  • datetime-local
  • email
  • color
  • range
  • tel
  • url
Default: text
label
(optional) Admin label.

Default: None

Example

[wcj_input_field name="custom_name_1" type="number"]
Accessible through:
  • [wcj_input_field]
Tested on WooCommerce 3.1.2 and WordPress 4.8.2
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply

Comments

11 Comments

  1. Zahed July 5, 2016 at 5:40 pm #

    Hi,
    IF i Put this Command [wcj_input_field]
    It shows “Attribute “name” is required!”
    I am Using Free Version
    Please help me about this.
    I am So much New at WordPress

    Reply

    • Booster Support Team July 5, 2016 at 5:43 pm #

      Hi,

      You’ll need to give some custom unique name to your field: [wcj_input_field name="custom_name_1"].

      Best regards,
      Tom

      Booster Support Team
  2. Zahed July 6, 2016 at 9:52 am #

    After Making order at “Order Receive” page and “thank you page” I want to collect “Customer Transaction Number” , so Need to create a input Text/Number with submission Button
    So that I can track the payment
    What i have to Do? Following commands give only Input. Looking for Both input and Submission Button
    [wcj_input_field name="custom_name_1" type="number"]

    I have attached a sample picture
    https://ps.w.org/woocommerce-bkash/assets/screenshot-3.png?rev=1119622

    Reply

  3. Andreas July 22, 2016 at 8:51 am #

    Hey,

    where does the input of this field go? How can I put it in an confirmation-email?

    Reply

  4. Joomla Candy December 2, 2016 at 2:06 pm #

    Hi,
    Please clarify what should be in the name field. In the example you suggest custom_name_1, but where do I get that from? Is it the input field title? Or the number, as they are numbered “#3” for example? Where else can I give a name to an input field?

    Reply

  5. Jason February 27, 2017 at 5:53 pm #

    How do I get the meta_data for a custom input field?
    [wcj_input_field name="custom_name_1" type="number"]

    Reply

  6. Hing Tithsya July 31, 2017 at 1:57 am #

    Hello.

    Related to [wcj_input_field], I want to know if there are some possible ways to:

    1. make the input (Required)
    2. Upload file (image, screenshot)

    ?

    Best regards,

    Tithsya

    Reply

    • Booster Support Team July 31, 2017 at 7:27 pm #

      Hi,

      Unfortunately no at the moment. However I will add it to the plugin. Making it required will be quite easy – so I will do that tomorrow. Regarding file upload – this may be more complicated, I will have to check the code before knowing how long will it take.

      Best regards,
      Tom

      Booster Support Team
    • Booster Support Team August 1, 2017 at 7:54 pm #

      Hi,

      1. As promised, I’ve added option to make fields required. Please download the development version here – https://booster.io/dev/. You will need to uninstall the old plugin version first (don’t worry your saved settings won’t disappear). Now you can make field required by adding required="yes" to the [wcj_input_field] shortcode, e.g.:

      [wcj_input_field name="test_input_field" label="Test Input Field" required="yes"]

      2. Regarding file uploads – didn’t have time to check it yet.

      Best regards,
      Tom

      Booster Support Team
  7. nrapiera August 15, 2017 at 7:57 pm #

    Answer to all the questions :

    The data from the custom field is only visible on Woocommerce > Orders
    When you click view the order theres a widget on the top left with the field name and value.

    Hope it helped

    It would be great if we could show those data in the email aswell just to confirm the informations that was sent.

    Reply

    • nrapiera August 15, 2017 at 7:59 pm #

      *On top right. Sorry