Tag order who's customer's last order was placed after a certain date.

Solved

Tag order who's customer's last order was placed after a certain date.

CooperMoyer
Shopify Partner
1 0 0

Hey,

I'm trying to create a flow that will add a tag to any order whose customer placed a separate order after a certain date. So, say if someone places multiple orders during Black Friday, if the date is set to be after Black Friday, it will add a tag to any orders where the customer placed multiple orders during Black Friday. Anyone have any idea on how to do this?

Thanks

 

Accepted Solution (1)

PaulMartin
Shopify Partner
624 60 148

This is an accepted solution.

PaulMartin_1-1728536536469.png

Hi Cooper,

Made this flow for you.

1. Use Order created trigger

2. then check if the order created is created between start and end of desired date (for this case, between Dec 1--12AM and Dec 2--12AM)

3. then get Orders based on filters (created between Nov 29 and Nov 30, and created by the customer who placed the order in step 1)

4. then count the number of orders from step 3

5. then if the number of orders > 1, each order in the list gets tagged by the set tag you wanted.
- Orders in the list have the following attributes (1) Created between Nov 29 and Nov 30 (2) Created by the customer who placed the order in step 1

 

-------------------------------------------------------------------------------------------

 

PaulMartin_2-1728537303208.png

I modified this in order to test the flow. I modified it to:

1. Use Order created trigger
2. check if the order created is created between start and end of desired date (for this case, today Oct 10--12AM and Oct 11--12AM)

3. then get Orders based on filters (created between Oct 7 and Oct 8, and created by the customer who placed the order in step 1)

4. then count the number of orders from step 3

5. then if the number of orders > 1, each order in the list gets tagged by the tag "OCT7".

 

These are the list of orders made on October 7. Only Paul Martin Lopez made orders.

PaulMartin_3-1728537469606.png

 

1st, I will run the flow for the customer Steve Wonder, the result, no orders were tagged.

PaulMartin_4-1728537657987.png

Next, I will run the flow for the customer Paul Martin Lopez, the result, 9 orders were tagged

PaulMartin_5-1728537879928.pngPaulMartin_6-1728537918426.png

 

-----------------------------------------------------

If I were to change the flow:

3. then get Orders based on filters (created between Oct 8 and Oct 9, and created by the customer who placed the order in step 1 - Paul Martin Lopez)

 

Then no orders are tagged because Paul Martin Lopez only made 1 order between October 8 and 9.

PaulMartin_7-1728538258128.png

PaulMartin_8-1728538293478.png

 

Hope this helps and feel free to ask/continue the conversation

View solution in original post

Replies 2 (2)

WizzCommerce_Co
Trailblazer
181 26 42

Hi @CooperMoyer , thank you for posting here!

To create a flow that tags orders where the customer placed multiple orders during a specific period (like Black Friday), you can use Shopify Flow (if available in your plan). Here’s how you could achieve this using Shopify Flow:

  1. Trigger: Start with the trigger set to Order Created. This will ensure that the flow is triggered whenever a new order is placed.

  2. Condition:

    • Add a condition to check if the order date is after Black Friday (e.g., December 1st).
    • Then, check if the customer placed any orders during Black Friday (e.g., November 24th–November 27th). You can do this by checking the order history of the customer.
  3. Action:

    • If the condition is met (i.e., they placed multiple orders during Black Friday and one after the event), use the Add Order Tag action to tag that customer's order.

Example Flow Setup:

  • Trigger: Order Created
  • Condition: Order Date > December 1st
  • Condition: Customer has orders between November 24th–November 27th
  • Action: Add Order Tag (e.g., "Multiple Black Friday Orders")
If my answer is helpful, please let me know by accepting the Solution and giving a Like !!!
Skyrocket BFCM with Wizz's apps: BOGO+ Buy X Get Y Free Gift
| Wizz Flash Sale & Price Edit | Snap B2B Wholesale Pricing | Snap Product Page Coupon | Snap Presale & Backorder | SnapNoti FOMO Visitor Counter | SnapBundle Volume Discounts
Find more support, feel free to contact: support@wizzcommerce.io
If our suggestion is useful for your problem, please let us know by giving Like and Accept Solution !!!

PaulMartin
Shopify Partner
624 60 148

This is an accepted solution.

PaulMartin_1-1728536536469.png

Hi Cooper,

Made this flow for you.

1. Use Order created trigger

2. then check if the order created is created between start and end of desired date (for this case, between Dec 1--12AM and Dec 2--12AM)

3. then get Orders based on filters (created between Nov 29 and Nov 30, and created by the customer who placed the order in step 1)

4. then count the number of orders from step 3

5. then if the number of orders > 1, each order in the list gets tagged by the set tag you wanted.
- Orders in the list have the following attributes (1) Created between Nov 29 and Nov 30 (2) Created by the customer who placed the order in step 1

 

-------------------------------------------------------------------------------------------

 

PaulMartin_2-1728537303208.png

I modified this in order to test the flow. I modified it to:

1. Use Order created trigger
2. check if the order created is created between start and end of desired date (for this case, today Oct 10--12AM and Oct 11--12AM)

3. then get Orders based on filters (created between Oct 7 and Oct 8, and created by the customer who placed the order in step 1)

4. then count the number of orders from step 3

5. then if the number of orders > 1, each order in the list gets tagged by the tag "OCT7".

 

These are the list of orders made on October 7. Only Paul Martin Lopez made orders.

PaulMartin_3-1728537469606.png

 

1st, I will run the flow for the customer Steve Wonder, the result, no orders were tagged.

PaulMartin_4-1728537657987.png

Next, I will run the flow for the customer Paul Martin Lopez, the result, 9 orders were tagged

PaulMartin_5-1728537879928.pngPaulMartin_6-1728537918426.png

 

-----------------------------------------------------

If I were to change the flow:

3. then get Orders based on filters (created between Oct 8 and Oct 9, and created by the customer who placed the order in step 1 - Paul Martin Lopez)

 

Then no orders are tagged because Paul Martin Lopez only made 1 order between October 8 and 9.

PaulMartin_7-1728538258128.png

PaulMartin_8-1728538293478.png

 

Hope this helps and feel free to ask/continue the conversation