Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hello everyone,
I would like to implement a workflow and am encountering problems.
The aim of the workflow is to automate the payment reminder process. I have already found a flow in the flow library that implements something like this. Unfortunately, the problem here is that I still have to manually add a due date to the order:
I have therefore tried two approaches without success:
1. i have tried using the trigger "order created" to execute an action that sets a due date. Unfortunately, I have not found an action that does this.
2. i tried to execute the action "send Payment reminder" with the trigger "order created" and a waiting time and encountered this problem:
Is there a way for one of my solutions? Of course I would also accept another way.
Thank you
There's this one, although I have no idea if it will work. It's not in Shopify Workflow, it's adding an input in your cart page. Give it a read:
Set custom issue, delivery and due dates - Sufio for Shopify
Something like this in order to add a default due date:
<input type="hidden" name="attributes[Invoice Due Date]" id="invoice-due-date" value="2020-11-13" />
Definitely read the article I attached above.
Hi Lukas2019,
You may be able to handle this use case using the `order.paymentTerms.paymentSchedules` list (show below) and iterating through the payment schedules to test if it should have a reminder send and then send the reminder.
Hope that helps!
Hello Dave,
thanks for the answer.
Please enlighten me so that I understand this correctly.
The workflow is started by a new order. Then I wait 7 days. The payment schedules are read out by the for_each.
In the next step I check if it is a specific payment method, if the order is fully paid and if there is an overdue.
If I understand it correctly, all orders would run through this workflow up to this query and my query would then only give a payment reminder to the orders that I have filtered through the query.
Is that correct?
Thank you
Unfortunately, this does not work either, because every order fails at the second step: `order.paymentTerms.paymentSchedules`.
No items are found. What am I doing wrong here?
Payment terms is used to make payment schedules, which is a feature of the B2B product. Do you use that? Or do you use some other system?
Reading through the above thread, it seems like your are trying to reproduce the B2B payment terms feature through Flow. In order for "Send Payment Reminder" to work, it needs a Payment Schedule. So you need to first create that payment schedule for an order.
I believe the way to create a schedule is to call this the create API for https://shopify.dev/docs/api/admin-graphql/2023-07/objects/PaymentTerms. You would need to use Send HTTP Request to call this particular API.
Hi Lukas, We currently have the same problem. Have you found a solution yet?
Unfortunately, I failed with the HTTP request and we have now set up an internal process for someone to manually enter the payment terms
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024