{"id":1191108,"date":"2016-11-11T11:44:30","date_gmt":"2016-11-11T19:44:30","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/"},"modified":"2016-11-11T11:44:30","modified_gmt":"2016-11-11T19:44:30","slug":"can-i-add-acf-field-data-as-wc-order-item-meta","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/","title":{"rendered":"Can I add ACF field data as WC order item meta?"},"content":{"rendered":"<p>I&#8217;m using Event Tickets Plus for my users to purchase course tickets thru WooCommerce, but I&#8217;m running into an issue. I need to have certain strings attached to the order item meta of each course. I&#8217;d like to store these strings as Advanced Custom Fields data on the post that my event ticket is added to. If I&#8217;m not understanding this correctly, here&#8217;s the workflow I&#8217;d like.<\/p>\n<p>&#8211; Admin would store strings in 2 fields on a single-course post using Advanced Custom Fields<br \/>\n&#8211; User would purchase a ticket to a course<br \/>\n&#8211; On checkout, those 2 fields would be sent as order_item_meta, collected by Zapier<\/p>\n<p>As far as I can tell, something like wc_add_order_item_meta() wouldn&#8217;t work because I&#8217;m skipping that step.<\/p>\n<p>Any help in figuring this out would be appreciated.<\/p>\n","protected":false},"template":"","class_list":["post-1191108","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Can I add ACF field data as WC order item meta? -<\/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:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Can I add ACF field data as WC order item meta? -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m using Event Tickets Plus for my users to purchase course tickets thru WooCommerce, but I&#8217;m running into an issue. I need to have certain strings attached to the order item meta of each course. I&#8217;d like to store these strings as Advanced Custom Fields data on the post that my event ticket is added [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/\",\"name\":\"Can I add ACF field data as WC order item meta? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-11-11T19:44:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Can I add ACF field data as WC order item meta?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Can I add ACF field data as WC order item meta? -","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:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/","og_locale":"en_US","og_type":"article","og_title":"Can I add ACF field data as WC order item meta? -","og_description":"I&#8217;m using Event Tickets Plus for my users to purchase course tickets thru WooCommerce, but I&#8217;m running into an issue. I need to have certain strings attached to the order item meta of each course. I&#8217;d like to store these strings as Advanced Custom Fields data on the post that my event ticket is added [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/","name":"Can I add ACF field data as WC order item meta? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-11-11T19:44:30+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-acf-field-data-as-wc-order-item-meta\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Can I add ACF field data as WC order item meta?"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1191108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1191108\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1191108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}