Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Tengo un flow que debe crear una fila y lo tengo configurado de la siguiente manera:
{{order.name}}, {{order.customer.displayName}},{% for lineItems_item in order.lineItems %}{{lineItems_item.name}} | {% endfor %},{% for fulfillmentOrders_item in order.fulfillmentOrders %}{% for lineItems_item in fulfillmentOrders_item.lineItems %}{{lineItems_item.image.url}} | {% endfor %}{% endfor %},{% for lineItems_item in order.lineItems %}
{{lineItems_item.vendor}} |
{% endfor %},{% assign total_cost = 0 %}
{% for lineItem in order.lineItems %}
{% assign total_cost = total_cost | plus: lineItem.variant.inventoryItem.unitCost.amount %}
{% endfor %}
{{ total_cost }},{% for fulfillmentOrders_item in order.fulfillmentOrders %}{{fulfillmentOrders_item.order.totalShippingPriceSet.presentmentMoney.amount}} | {% endfor %},{{order.billingAddress.phone}},{% for paymentGatewayNames_item in order.paymentGatewayNames %}{{paymentGatewayNames_item}}{% endfor %},{{order.createdAt}},{% for fulfillmentOrders_item in order.fulfillmentOrders %}
{{fulfillmentOrders_item.order.currentSubtotalPriceSet.presentmentMoney.amount}}
{% endfor %},{% for fulfillmentOrders_item in order.fulfillmentOrders %}{{fulfillmentOrders_item.order.totalShippingPriceSet.presentmentMoney.amount}} {% endfor %},{{order.displayAddress.address1}} {{order.billingAddress.address2}} | {{order.billingAddress.city}}
Recientemente me apareció un error que dice:
"lineItem" es inválido Reemplaza esta variable.
Solved! Go to the solution
This is an accepted solution.
Esto fue causado por un error en la forma en que Flow interpreta Liquid (específicamente "assign") que ya se resolvió.
This is an accepted solution.
Esto fue causado por un error en la forma en que Flow interpreta Liquid (específicamente "assign") que ya se resolvió.
Genial, gracias por el comentario.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025