Back to Forhad's Creations

WooFields – WooCommerce Custom Fields Plugin For WordPress

By WP Forhad / October 9, 2024

Woo Client Side is a WordPress plugin designed to help WooCommerce store owners collect custom data from customers directly on the product page. This plugin allows you to easily add custom fields to the WooCommerce product single page, such as email addresses, checkboxes, text fields, or other input fields. With Woo Client Side, businesses can gather relevant customer information during the browsing or shopping process, helping to enhance the customer experience and improve order management.

By enabling this plugin, store owners can create a more personalized product page experience, tailor the information gathered to fit their specific requirements, and use this data for marketing, lead generation, or order customization. It is easy to use, flexible, and requires no coding knowledge to implement.

Key Features

  • Custom Data Collection: Easily add custom fields to WooCommerce product pages, including text input, checkboxes, and more.
  • Field Options: Set fields to required or optional, customize field names, and choose different field types.
  • Customer Engagement: Use the collected information for follow-up communications, marketing, or personalized services.
  • WooCommerce Integration: Fully integrates with WooCommerce, ensuring a seamless experience for both store owners and customers.

Use Case

The Woo Client Side plugin can be highly useful for WooCommerce stores that want to collect additional data from customers at the product level. Here are some example use cases:

  • Personalized Product Requests: A store selling custom products, such as personalized gifts, could use the plugin to collect additional information from customers, like names or messages they want to include on the product.
  • Lead Collection for Marketing: If a store wants to collect potential customers' email addresses directly from the product page for lead generation or marketing purposes, the Woo Client Side plugin allows adding a custom email field, which can be optionally marked as required. This information can then be used for follow-up communications, newsletters, or promotional campaigns.
  • Customer Preferences and Feedback: For stores offering customizable products, such as clothing or furniture, the plugin can be used to gather customer preferences, such as color choices, sizes, or additional customization requests. These preferences can then be used to personalize the final product.
  • Subscription and Opt-In Forms: By adding a checkbox for customers to subscribe to newsletters or marketing communications, store owners can increase their mailing list during the purchase process.
  • Service Booking: If you are offering services that require specific customer information, such as booking a tour or consulting service, the Woo Client Side plugin allows adding fields like appointment dates, contact information, or special requests, ensuring all necessary details are collected before proceeding with the booking.

How to setup Woo Client Side

Step 01: First we have to go to the WordPress dashboard.

WP Dashboard

Step 02: Then we have to click the Plugins option from the dashboard. Then we have to click  “Add New Plugin” button  , from there we have to click “Upload Plugin”. Then we have to choose the plugin from our device. Then we have to click install button. Here we can Active The Plugin or we may active it later from Plugins options

Plugin Activation

Step 03: To work with this plugin we need to install WooCommerce plugin too. After install WooCommerce option and its menus with a new option called Client Fields will be added to the WooCommerce option like below

Client Options

Step 04: Clicking on Client Fields we can enable it and add custom field like bellow

Add necessary field

Step 05: Now we have to add a product like bellow

Product Add
Product Add

Step 05: After publish the product if we go view page of that product we will see the fields that we have added by which we can collect data.

Filed added to product page

Use our recommended page builder plugin, FancyPost to unlock a number of powerful blocks to help you to design amazing websites!

More screenshots

information collected
Field options

Live Demo

Click the button below to see a live demo of the Woo Client Side plugin in action. You can explore how the plugin allows you to add custom fields to WooCommerce product pages and how it collects customer data effectively. The live demo showcases various field types and their potential use cases, giving you a real understanding of how this plugin can enhance your WooCommerce store.

Download

Ready to enhance your WooCommerce store with custom data collection features? Click the button below to download the Woo Client Side plugin. This plugin makes it easy for you to collect additional information directly from product pages, improving personalization and customer experience. Get started today and take your WooCommerce store to the next level!

Please enable JavaScript in your browser to complete this form.

Developer area

The Woo Client Side plugin is designed to be flexible and developer-friendly, allowing developers to add their custom fields, modify existing features, and integrate third-party services with ease. Here, we provide an overview of some of the ways developers can extend and enhance the functionality of the plugin.

1. Custom Hooks and Filters

The Woo Client Side plugin comes with several hooks and filters that allow developers to customize its behavior without modifying the core plugin files. Below are some common hooks:

woo_client_side_before_fields: This action hook can be used to add custom content or HTML before the client-side fields are displayed.

add_action('woo_client_side_before_fields', 'my_custom_content_before_fields');
function my_custom_content_before_fields() {
    echo '<div class="custom-note">Please fill out the following details to proceed.</div>';
}

woo_client_side_after_fields: This action hook can be used to add content after the client-side fields.

add_action('woo_client_side_after_fields', 'my_custom_content_after_fields');
function my_custom_content_after_fields() {
    echo '<p>Thank you for providing the additional information.</p>';
}

woo_client_side_validate_field: This filter can be used to customize the validation logic of the custom fields.

add_filter('woo_client_side_validate_field', 'custom_field_validation', 10, 2);
function custom_field_validation($is_valid, $field_value) {
if (empty($field_value)) {
$is_valid = false; // Add custom validation logic here.
}
return $is_valid;
}

2. Adding Custom Field Types

Developers can extend the functionality of the plugin by adding additional field types to collect specific information from users. Below is an example of adding a new field type called "Number" to the plugin.

add_action('woo_client_side_register_fields', 'add_custom_number_field');
function add_custom_number_field($fields) {
    $fields['number'] = array(
        'label'    => 'Enter a Number',
        'type'     => 'number',
        'required' => false,
    );
    return $fields;
}

3. Customizing the Display of Collected Data

If you need to display the collected data on other pages, such as the cart or order summary pages, you can use the appropriate hooks to achieve this.

Example: Displaying custom data in the WooCommerce cart.

add_action('woocommerce_after_cart_item_name', 'display_custom_data_in_cart', 10, 2);
function display_custom_data_in_cart($cart_item, $cart_item_key) {
    if (isset($cart_item['woo_client_custom_field'])) {
        echo '<p><strong>' . __('Your Custom Field:', 'woo-client-side') . '</strong> ' . $cart_item['woo_client_custom_field'] . '</p>';
    }
}

4. Adding Custom JavaScript or Styles

If you need to add custom JavaScript or CSS to improve the user experience, you can enqueue your own styles or scripts to extend the plugin functionality.

Example: Enqueuing a custom JavaScript file to provide custom validation or UI enhancements.

function woo_client_side_enqueue_custom_scripts() {
    wp_enqueue_script('woo-client-custom-script', get_stylesheet_directory_uri() . '/js/custom-client-side.js', array('jquery'), null, true);
}
add_action('wp_enqueue_scripts', 'woo_client_side_enqueue_custom_scripts');

5. Overriding Plugin Templates

If you need to change the way the client-side fields are displayed, you can override the template files.

  • Copy the desired template from the plugin directory (woo-client-side/templates/) to your theme or child theme directory (e.g., yourtheme/woo-client-side/).
  • Modify the copied template to suit your requirements, ensuring any custom changes are safe from future plugin updates.

6. Integrating Third-Party APIs

Developers can also integrate third-party services to collect and use the data in more sophisticated ways. For example, integrating a CRM to send customer details collected from the WooCommerce product page.

Example: Sending data to an external API for CRM integration.

add_action('woocommerce_checkout_update_order_meta', 'send_custom_data_to_api');
function send_custom_data_to_api($order_id) {
    $order = wc_get_order($order_id);
    $custom_data = get_post_meta($order_id, '_woo_client_custom_data', true);
    
    $response = wp_remote_post('https://api.example.com/data', array(
        'body' => json_encode(array(
            'order_id'   => $order_id,
            'custom_data' => $custom_data,
        )),
        'headers' => array('Content-Type' => 'application/json'),
    ));
}

Associate Plugins

  • Woo Commerce By Automattic

Search , install and active the to Woo Commerce By Automattic plugin like below to add a tour package by Tour Package plugin

Request for new features

We are always looking to improve! If you have any suggestions for new features or improvements to the plugin, feel free to reach out to us. Your feedback helps us make Easy Job Listing even better.(Contact form , Telegram, Whatsapp, Messenger)

Donate

If you enjoy using Woo Client Side and would like to support its continued development, please consider making a donation. Your contributions will help us add more features, provide regular updates, and continue offering support to all users.

Forhad Avatar

Hossain Muhammed Forhad

Forhad Hossain is the co-founder of Pluginic. He brings a one-of-a-kind fusion of tech brilliance, business savvy and marketing mojo to the table.

Forhad has consistently spearheaded the development of innovative products like Gutenic, Editorial Rating, FancyPost and many others that have become market leaders in their respective niches.

Website Builder Front Website Builder Back

Want To Build Better WordPress Websites?
Start Here! 👇

0
1 0 Rating
2 0 Rating
3 0 Rating
4 0 Rating
5 0 Rating
Total Vote: 0

Aggregate Rating System by Editorial Rating

Leave a Reply

Your email address will not be published. Required fields are marked *