Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hey all, Im trying to count how many items in an order have a 0 sales price and how any have a > 0 sales price. The reason to do this is to tag orders containing a BOGO order.
Can anyone advise on how to do this?
BTW - I have tried to simply flag the discount code attached to the order to then trigger the tag but this doesnt work either.
Thanks so much in advance for any help.
Hello @AnthonyH2 :
The discount code should appear under the order details:
Can you share details as to why this approach did not work?
Counting the items at each price level is possible, but would require using a run code action in the flow, which would be more complicated. Also, it seems the price-based approach might catch other orders that are not BOGO, if there are other reasons items could be reduced to $0 (e.g., a reshipment for damaged items or a free gift promotion). Thus, using the discount code would be preferred, if it would preform the same result.
Hi TDogs, thanks so much for your reply. Ive reverted back to the simplest method by comparing the discount code to the code in the condition box as follows:
Its not picking up the B2G3FLASH discount code in the shopify order summary. I used order.discountCode as the condition attribute.
The discount code is shown in the order summary, and it matches with the code in the order.
Hi @AnthonyH2 ,
Can you try using the newer field "Discount Codes"? It should be located just below the one you are using.
Hi @TDogs, thanks again, Im trying the new field.
Will let you know if i get it solved!
HEY @TDogs Im still having the Flow problem.
Ive attached the order summary which shows that the discount code exists Flash24
But in the flow result, the discount code is empty.
Any ideas why this might be happening?
I'm not sure of the scenarios where discountCode is empty but there is a code. you could try discountApplications or the plural discountCodes. You can try rerunning that same workflow once you make changes. FYI, you can also use "log output" to show the output from those variables in the workflow run page
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024