Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I need to add an order note with the barcode (UPC) of certain products within the order that contain a certain tag. So if a product in an order has the tag "In Stock at A" and does not have the tag "In Stock at B" I want an order note added with the barcode of that product.
I have found the "Update order note" action as well as the barcode variable but I can't figure out how to filter which barcodes are pushed through.
Any help would be greatly appreciated.
@PaleBlueDot wrote:I need to add an order note with the barcode (UPC) of certain products within the order that contain a certain tag. So if a product in an order has the tag "In Stock at A" and does not have the tag "In Stock at B" I want an order note added with the barcode of that product.
I have found the "Update order note" action as well as the barcode variable but I can't figure out how to filter which barcodes are pushed through.
Any help would be greatly appreciated.
Hello!
To add an order note with the barcode of products tagged "In Stock at A" and not "In Stock at B," you can filter products to identify the ones with the desired tags, extract their barcodes, and then update the order note with these barcodes. Use a script to filter products with the tag "In Stock at A" and without "In Stock at B," extract their barcodes, and join them into a single string. Finally, use the "Update order note" action to add this string to the order note. Adjust the script to suit your specific platform and programming language needs.
@Erika383Rivera wrote:
@PaleBlueDot wrote:I need to add an order note with the barcode (UPC) of certain products within the order that contain a certain tag. So if a product in an order has the tag "In Stock at A" and does not have the tag "In Stock at B" I want an order note added with the barcode of that product.
I have found the "Update order note" action as well as the barcode My iTero variable but I can't figure out how to filter which barcodes are pushed through.
Any help would be greatly appreciated.Hello!
To add an order note with the barcode of products tagged "In Stock at A" and not "In Stock at B," you can filter products to identify the ones with the desired tags, extract their barcodes, and then update the order note with these barcodes. Use a script to filter products with the tag "In Stock at A" and without "In Stock at B," extract their barcodes, and join them into a single string. Finally, use the "Update order note" action to add this string to the order note. Adjust the script to suit your specific platform and programming language needs.
Did that prove to be useful for you?
Hello! First of all thanks for the response. This seems like it would work but could you explain in a little more details how I go about making the script to filter products with certain tags?
If you mean that you are not sure how to add the tags conditions, it would look like:
If at least one of order / lineItems
If at least one of lineItems_item / product / tags
is equal to "Stock at A"
To add the second condition to check that it doesn't have the other tag, you need to "Add criteria" for that same line item (very important) and then choose:
None of lineItem_item / product / tags
is equal to "In Stock at B"
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024