Woocommerce, create an order product meta data

Hi everyone,

I’m currently working with a WordPress site using WooCommerce and the UniCPO plugin, which calculates prices and stores product-specific information as metadata.

So far, I’ve successfully processed and extracted this structured data using spreadsheets and external tools. However, I’ve encountered a limitation when trying to create orders programmatically from external sources.

The current order creation module only allows adding general metadata at the order level, but not metadata specific to individual line items (products). As a result, when I try to assign a key:value pair meant for a specific product in the order, the system doesn’t recognize or apply it correctly.

I’m wondering:

  • Is there any way to request or enable support for line item-specific metadata in the order creation process?
  • Or would this require building a custom app or module from scratch?

I’ve attached a screenshot that shows an example of how our product data appears, including the individual line item metadata, to help clarify what I’m trying to achieve.

I believe this is a feature more users will increasingly need as workflows become more dynamic and data-driven. Any guidance or suggestions would be greatly appreciated!

Thanks in advance!
Adrian



Welcome to the Make community!

Currently this module doesn’t support meta data for individual line items.

In the meantime, you can use the app’s universal module (Make an API Call) module.

You can also suggest for it to be made in the Idea exchange. Don’t forget to search for it first, just in case someone already suggested it, so that you don’t end up creating a duplicate.

If you need assistance in setting up the app’s universal module, or the built-in generic HTTP modules, please provide additional information about what you have tried in relation to the external service’s Developer API Reference — how you are setting the connection up, a link to the endpoint are you trying to connect to, and what errors you are encountering.

You can also complete this brand new course/tutorial in the Make Academy on how to use external APIs — API calls with HTTP modules

  • API and Endpoints
  • Header and body
  • Multipart/form-data
  • OAuth 2.0

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Hello, thank you for your reply. I guess I will have to study a little first, because now, I do not even know how to begin to ask, but in a week or so, when I take some courses on the Make Academy, I may have some (a lot) questions.

I appreciate your help.

Thank you!