What is your goal?
I want to generate a DOCX file from WooCommerce orders using the Microsoft Word (Docx‑Templater) module in Make.
For each order I build a text block (pedido_texto) with order number, customer details, address, a picking list, total, and notes.
Then I aggregate all orders into a single variable (contenido_pedidos) and insert it in the Word template using the placeholder for that variable.
What is the problem & what have you tried?
Instead of showing the rendered text (for example Pedido #32827 and Cliente: DEBORAH TERESA VACAS LÁZARO and the picking list), the DOCX shows the raw Make expression and the JSON of the line items.
The same template and delimiters work correctly for other fields (fechainicio, fechafin, fechageneracion), so only contenido_pedidos is affected.
Error messages or input/output bundles
There is no explicit error message from Make; the scenario runs successfully, but the generated DOCX content is wrong.
Relevant configuration and sample outputs:
Module 18 (Tools > Set variable) – pedido_texto value (simplified):
“Pedido #” & {{3.number}} & “\n” &
"Cliente: " & {{3.shipping.first_name}} & " " & {{3.shipping.last_name}} & “\n” &
"Teléfono: " & {{3.billing.phone}} & “\n” &
"Dirección: " &
trim(
{{3.shipping.address_1}} & " " &
ifempty({{3.shipping.address_2}}; “”)
) &
“, " & {{3.shipping.postcode}} & " " & {{3.shipping.city}} &
ifempty(”, " & {{3.shipping.state}}; “”) &
“\n\n” &
“PICKING:\n” &
join(
map(
toArray({{3.line_items}});
item.quantity & " x " & item.name
);
“\n”
) &
“\n\n” &
“Total: " & {{3.total}} &
ifempty(”\nNotas: " & {{3.customer_note}}; “”) &
“\n\f”
Module 19: Basic Aggregator on module 18; output contains an array 19.array with pedido_texto for each order.
Module 20 (Tools > Set variable) – contenido_pedidos value (current version):
{{join(
map(19.array; item.pedido_texto);
“\n\n”
)}}
Module 22 (Microsoft Word > Create DOCX from template):
Values entry: key contenido_pedidos, value type Value, value {{20.contenido_pedidos}}.
In the DOCX template: placeholder {{contenido_pedidos}}.
Actual DOCX output example (simplified):
“Pedido #” & 32827 & “\n” & "Cliente: " & DEBORAH TERESA & " " & VACAS LÁZARO & “\n” & …
PICKING:
join(
map(
{“id”:302443,“name”:“Aguacate Primera”,“product_id”:4910,“variation_id”:0,“quantity”:7,…}
Instead of the expected:
Pedido #32827
Cliente: DEBORAH TERESA VACAS LÁZARO
PICKING:
7 x Aguacate Primera
1 x Caja de Naranjas (para zumo y de mesa)
…








