{"id":256960,"date":"2021-04-20T12:10:07","date_gmt":"2021-04-20T12:10:07","guid":{"rendered":"https:\/\/digitallabs.agency\/?p=256960"},"modified":"2025-05-22T19:26:02","modified_gmt":"2025-05-22T19:26:02","slug":"como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce","status":"publish","type":"post","link":"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/","title":{"rendered":"How to add custom fields to the WooCommerce checkout form?"},"content":{"rendered":"\r\n\r\n\r\n<p>We&#8217;ll often need to customize the payment form, for example, if we want to add a NIT (Tax Identification Number) field. In this article, we&#8217;ll show two of the most common ways to do this.<\/p>\r\n<ol>\r\n<li>Add fields through WooCommerce actions and filters.<\/li>\r\n<li>Add payment fields through plugins.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Add fields via WooCommerce actions and filters<\/h2>\r\n\r\n\r\n\r\n<p>To do this, you&#8217;ll need to have access to your theme&#8217;s source code files or create a new plugin.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Adding fields via plugins<\/h2>\r\n\r\n\r\n\r\n<p>There are several plugins in the WordPress repository that allow us to edit custom checkout fields. Some of these plugins are:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-woocommerce-docs wp-block-embed-woocommerce-docs\">\r\n<div class=\"wp-block-embed__wrapper\">https:\/\/docs.woocommerce.com\/document\/tutorial-customising-checkout-fields-using-actions-and-filters\/<\/div>\r\n<\/figure>\r\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ll often need to customize the payment form, for example, if we want to add a NIT (Tax Identification Number) field. In this article, we&#8217;ll show two of the most common ways to do this. Add fields through WooCommerce actions and filters. Add payment fields through plugins. Add fields via WooCommerce actions and filters To [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-256960","post","type-post","status-publish","format-standard","hentry","category-sin-categorizar"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to add custom fields to the WooCommerce checkout form? - Digital Labs 2024<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to add custom fields to the WooCommerce checkout form? - Digital Labs 2024\" \/>\n<meta property=\"og:description\" content=\"We&#8217;ll often need to customize the payment form, for example, if we want to add a NIT (Tax Identification Number) field. In this article, we&#8217;ll show two of the most common ways to do this. Add fields through WooCommerce actions and filters. Add payment fields through plugins. Add fields via WooCommerce actions and filters To [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/\" \/>\n<meta property=\"og:site_name\" content=\"Digital Labs 2024\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/digitallabsagency\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-20T12:10:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-22T19:26:02+00:00\" \/>\n<meta name=\"author\" content=\"Samuel Gonon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Samuel Gonon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/\"},\"author\":{\"name\":\"Samuel Gonon\",\"@id\":\"https:\/\/digitallabs.agency\/#\/schema\/person\/d14f2b50e72b1cd75b36878595ac2a99\"},\"headline\":\"How to add custom fields to the WooCommerce checkout form?\",\"datePublished\":\"2021-04-20T12:10:07+00:00\",\"dateModified\":\"2025-05-22T19:26:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/\"},\"wordCount\":118,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/digitallabs.agency\/#organization\"},\"articleSection\":[\"Sin categorizar\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/\",\"url\":\"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/\",\"name\":\"How to add custom fields to the WooCommerce checkout form? - Digital Labs 2024\",\"isPartOf\":{\"@id\":\"https:\/\/digitallabs.agency\/#website\"},\"datePublished\":\"2021-04-20T12:10:07+00:00\",\"dateModified\":\"2025-05-22T19:26:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/digitallabs.agency\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to add custom fields to the WooCommerce checkout form?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/digitallabs.agency\/#website\",\"url\":\"https:\/\/digitallabs.agency\/\",\"name\":\"Digital Labs\",\"description\":\"Digital Labs\",\"publisher\":{\"@id\":\"https:\/\/digitallabs.agency\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/digitallabs.agency\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/digitallabs.agency\/#organization\",\"name\":\"Digital Labs\",\"url\":\"https:\/\/digitallabs.agency\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/digitallabs.agency\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/digitallabs.agency\/wp-content\/uploads\/2024\/05\/logo-digital-labsMesa-de-trabajo-14-2.png\",\"contentUrl\":\"https:\/\/digitallabs.agency\/wp-content\/uploads\/2024\/05\/logo-digital-labsMesa-de-trabajo-14-2.png\",\"width\":159,\"height\":53,\"caption\":\"Digital Labs\"},\"image\":{\"@id\":\"https:\/\/digitallabs.agency\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/digitallabsagency\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/digitallabs.agency\/#\/schema\/person\/d14f2b50e72b1cd75b36878595ac2a99\",\"name\":\"Samuel Gonon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/digitallabs.agency\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a1b194ee9c07bc5011477fffe5f7606b61065f083152237a36b8b72bb0d5d59a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a1b194ee9c07bc5011477fffe5f7606b61065f083152237a36b8b72bb0d5d59a?s=96&d=mm&r=g\",\"caption\":\"Samuel Gonon\"},\"url\":\"https:\/\/digitallabs.agency\/en\/author\/samuelgonon\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to add custom fields to the WooCommerce checkout form? - Digital Labs 2024","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/","og_locale":"en_US","og_type":"article","og_title":"How to add custom fields to the WooCommerce checkout form? - Digital Labs 2024","og_description":"We&#8217;ll often need to customize the payment form, for example, if we want to add a NIT (Tax Identification Number) field. In this article, we&#8217;ll show two of the most common ways to do this. Add fields through WooCommerce actions and filters. Add payment fields through plugins. Add fields via WooCommerce actions and filters To [&hellip;]","og_url":"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/","og_site_name":"Digital Labs 2024","article_publisher":"https:\/\/www.facebook.com\/digitallabsagency","article_published_time":"2021-04-20T12:10:07+00:00","article_modified_time":"2025-05-22T19:26:02+00:00","author":"Samuel Gonon","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Samuel Gonon","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/#article","isPartOf":{"@id":"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/"},"author":{"name":"Samuel Gonon","@id":"https:\/\/digitallabs.agency\/#\/schema\/person\/d14f2b50e72b1cd75b36878595ac2a99"},"headline":"How to add custom fields to the WooCommerce checkout form?","datePublished":"2021-04-20T12:10:07+00:00","dateModified":"2025-05-22T19:26:02+00:00","mainEntityOfPage":{"@id":"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/"},"wordCount":118,"commentCount":0,"publisher":{"@id":"https:\/\/digitallabs.agency\/#organization"},"articleSection":["Sin categorizar"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/","url":"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/","name":"How to add custom fields to the WooCommerce checkout form? - Digital Labs 2024","isPartOf":{"@id":"https:\/\/digitallabs.agency\/#website"},"datePublished":"2021-04-20T12:10:07+00:00","dateModified":"2025-05-22T19:26:02+00:00","breadcrumb":{"@id":"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/digitallabs.agency\/en\/como-agregar-campos-personalizados-al-formulario-de-pago-en-woocommerce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/digitallabs.agency\/"},{"@type":"ListItem","position":2,"name":"How to add custom fields to the WooCommerce checkout form?"}]},{"@type":"WebSite","@id":"https:\/\/digitallabs.agency\/#website","url":"https:\/\/digitallabs.agency\/","name":"Digital Labs","description":"Digital Labs","publisher":{"@id":"https:\/\/digitallabs.agency\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/digitallabs.agency\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/digitallabs.agency\/#organization","name":"Digital Labs","url":"https:\/\/digitallabs.agency\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/digitallabs.agency\/#\/schema\/logo\/image\/","url":"https:\/\/digitallabs.agency\/wp-content\/uploads\/2024\/05\/logo-digital-labsMesa-de-trabajo-14-2.png","contentUrl":"https:\/\/digitallabs.agency\/wp-content\/uploads\/2024\/05\/logo-digital-labsMesa-de-trabajo-14-2.png","width":159,"height":53,"caption":"Digital Labs"},"image":{"@id":"https:\/\/digitallabs.agency\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/digitallabsagency"]},{"@type":"Person","@id":"https:\/\/digitallabs.agency\/#\/schema\/person\/d14f2b50e72b1cd75b36878595ac2a99","name":"Samuel Gonon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/digitallabs.agency\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a1b194ee9c07bc5011477fffe5f7606b61065f083152237a36b8b72bb0d5d59a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a1b194ee9c07bc5011477fffe5f7606b61065f083152237a36b8b72bb0d5d59a?s=96&d=mm&r=g","caption":"Samuel Gonon"},"url":"https:\/\/digitallabs.agency\/en\/author\/samuelgonon\/"}]}},"featured_image_src":null,"featured_image_src_square":null,"author_info":{"display_name":"Samuel Gonon","author_link":"https:\/\/digitallabs.agency\/en\/author\/samuelgonon\/"},"_links":{"self":[{"href":"https:\/\/digitallabs.agency\/en\/wp-json\/wp\/v2\/posts\/256960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitallabs.agency\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitallabs.agency\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitallabs.agency\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/digitallabs.agency\/en\/wp-json\/wp\/v2\/comments?post=256960"}],"version-history":[{"count":0,"href":"https:\/\/digitallabs.agency\/en\/wp-json\/wp\/v2\/posts\/256960\/revisions"}],"wp:attachment":[{"href":"https:\/\/digitallabs.agency\/en\/wp-json\/wp\/v2\/media?parent=256960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitallabs.agency\/en\/wp-json\/wp\/v2\/categories?post=256960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitallabs.agency\/en\/wp-json\/wp\/v2\/tags?post=256960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}