• Skip to primary navigation
  • Skip to main content
  • Skip to footer
woocommerce wordpress roadmap

Roadmap Studios

Zoho Partner Nederland, WooCommerce, Ionic Framework

  • Services
  • Shop
    • WooCommerce – Zoho CRM
    • WooCommerce – Zoho Inventory
    • WooCommerce – Exact Online
  • Resources
    • Documentation
    • Affiliate Program
  • Blog
  • Login
  • Contact

Custom Fields SO

08/01/2019 by

WooCommerce Zoho Inventory

  • Getting Started
  • Zoho General Preferences
  • WooCommerce Account Settings
  • Connect with Zoho Inventory
  • Tax Mapping
  • Data Sync
  • Cron Scheduling
  • Reset Sync
  • Orders Sync
  • Zoho Item changes in real-time to Woo
  • Zoho Order Status to Woo
  • Pricelist
  • Custom Fields SO
  • Items Custom Fields
  • Upgrading From Start to Connect/Pro
  1. Home
  2. Docs
  3. WooCommerce Zoho Inventory
  4. Custom Fields SO

Since version 1.4.0 we have introduced a new big feature: Custom Fields of Sales Order.

Now its possible to map custom WC checkout fields with custom Zoho Sales Order fields.

*Note: in this tutorial, we assume you have already configured Custom Fields in Zoho and in WooCommerce. If not, please follow the Zoho Inventory documentation, as well as install a Checkout Custom Fields plugin in your WooCommerce store.

How to find the Zoho Custom Field ID:

  1. Go to Zoho Preferences > Items > Fields Customization
  2. Click on the custom field to edit it
  3. Now copy the field id from the URL of your browser. It will look something like this:
    inventory.zoho.com/app#/settings/preferences/customfields/163444000000350007/

End result:

Simply fill in the WooCommerce field name on the left side and the Zoho Field ID on the right side and click on save. Voila! Now you have enabled complete orders if you use custom fields!

How to sync the order’s Payment Method to Zoho:

The payment method is a standard field in Woo and not a custom field, so you will need to create a custom called “payment_method” for the order and then hide it on the Frontend with some CSS.
After that step, simply copy below code and paste it into your child theme – functions.php or custom plugin.

add_action( 'woocommerce_checkout_update_order_meta', 'my_custom_checkout_field_update_order_meta' );

function my_custom_checkout_field_update_order_meta( $order_id ) {
   $order = new WC_Order( $order_id );
   $method = $order->get_payment_method();
   update_post_meta( $order_id, 'payment_method', $method );
}

*Tip: we recommend in changing the function’s name to avoid conflict with other plugins.

Want to know what a Website costs?

Take the Quiz and find out!

Get Started

Footer

About us

Roadmap Studios is a digital agency based in the Netherlands. We help you achieve your business objectives with exceptional creativity mixed with vision, marketing and advanced technology.

KvK: 86628623
BTW: NL864028738B01

Solutions

  • Shop
  • eCommerce Calculator
  • Services
  • WooCommerce Managed Cloud

Company

  • Portfolio
  • Who we are
  • Our Process
  • Contact
  • Affiliate Program
  • Terms and Conditions

© 2020 · Roadmap Studios  · All Rights Reserved · Return to top

You were not leaving your cart just like that, right?

Enter your details below to save your shopping cart for later. And, who knows, maybe we will even send you a sweet discount code :)

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in settings.

Roadmap Studios
Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Cookie Policy

More information about our Cookie Policy