I’m adding to “list of quantity” every time a new order is made. But I notice that the “list of quantity” will stop adding once 3 orders are made. This happened to every single listings. The max of things added to the list will be 3x. Does anyone know why? and how to resolve this?
Hi there, @chefheroes27… if you can provide screenshots and/or a link to your editor with a clear explanation of where to look, I’m sure someone can help you figure out what’s going on. Without those things, it’s not possible to say what might be causing the issue.
Thank you for your reply @mikeloc ! What I notice is this workflow can add to the list accurately for 3x. After 3x, most of the time it’s not adding and in a very few times it’s adding. Oddly enough, everything in the workflow occur, except for this one. Nothing changes between trials.
This is the image of all the orders created as the result of step 2.
As you can see a lot of the orders are not recorded in step 3, but recorded in step 2. I just don’t understand how sometimes it’s recorded and sometimes it’s not when they all have the same workflow.
I’m not sure what you are showing there, but lists can’t contain duplicate items (so, a specific number would only appear in a list one time)… maybe that’s what you are running into?
Yes! that’s it! it’s a very important insights that you just shared. Thank you so much.
By the way, do you know how to automatically take down listing when it hits the expiry date / when it’s out of stock? Ideally, I want this to just happen in the background, without the need for me to trigger it. I’m sensing I need to use backend workflow. But I’m quite confused on how to use them. I already have “published status = yes/ no” in my database. @mikeloc
Hi Adam, I’m aware that I have been asking the same question in the forum and every time I asked it, you always responded. I appreciate the time you took to respond. I found your explanation to be quite high level for me. I’m a newbie and need more of a detailed walkthrough. I have also asked follow up question with you, but I’m still confused & unable to execute on it. Thus, I was hoping if other people, such as @mikeloc, have an idea and wouldn’t mind to have a go in explaining, I would really appreciate it. Thank you to @adamhholmes and @mikeloc and everyone else. I’m really feeling the support of a community here and def made my journey in making my app for the first time so much easier!
If you want to do it when the stock count hits 0, you can just use a database trigger event as shown below (although you could argue there’s really no need for that… just use search constraints on your listing pages to exclude Listings with a stock count of 0).
In any case, here’s all you need to do:
Set up a database trigger event on the backend, as shown below:
Thank you so much, Adam. Appreciate your help & support. This is very detailed and very easy to follow. I think I have managed to remove the listing when the expiry date is reached.
But I do have a prob with taking the listing down when it’s out of stock. I think I have followed your steps well. The only difference is that I don’t have a stock count. I recorded the data as availability and order quantity → stock count = availability - order quantity. I have attached my set up for your reference. If you have the chance, keen to get your thoughts on why it’s not working.