[Resolved] How to Update View on All Users When a Change Occurs?
This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user has a view but want whenever the 1 user purchases a product on their site then another user viewing that same page will get an update stock count without refreshing.
Solution:
Unfortunately no this isn't possible with our plugins .
I believe something like this would need some custom code so that there is an active listener for changes in the database and to update as soon as any changes are made.
What you can do is to contact one of the registered contractors to see if they can get this done for you .
This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Hello, I have a kitchen display screen on the website hidden link which uses Toolset Views to display and AJAX to change their order status. When a user changes an order, the AJAX triggers the "Kitchen Orders" View to update.
Since there will be three different terminals of the KDS, I want to be able to reflect the changes for all users on the screen.
For example: If Screen 1 changes an Order, Screen 2 and 3 should update themselves to reflect the new frontend values.
Hi Shane, please see hidden link for a mockup of the regular kitchen screen.
There are two Toolset Views on this page: "Kitchen Orders" which displays the Orders and "Kitchen Orders Modal AJAX" which also displays a corresponding Order in a modal with custom AJAX to change their status (from Processing to Packaged, Packaged to Completed or back to Processing).
The Kitchen Orders view has a filter to refresh the page on submit. The custom AJAX triggers it by using $('.autoClickFSb').trigger('click');
If you want to test this, feel free to do so using either Order #4910 and #5010; please refrain from changing other Orders since they may be live or used for troubleshooting/development purposes.
Let's say, you and I are looking at this page. If I update Order #4910 from Processing to Packaged, it will refresh at the end to reflect the new values. However, if you don't manually refresh your page, you will not see this new change; vice-versa.
Ideally, your page should refresh by itself when I make a change so you can see the latest, most up-to-date version.
Does this make sense? Sorry but I can't provide a video explanation right now.
Unfortunately no this isn't possible with our plugins .
I believe something like this would need some custom code so that there is an active listener for changes in the database and to update as soon as any changes are made.
What you can do is to contact one of the registered contractors to see if they can get this done for you .