Skip Navigation

[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 .

https://toolset.com/contractors/

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 2 voices.

Last updated by jesseB-4 6 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#915355

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.

Is it possible to set this up using Toolset?

#915494

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jesse,

I'm not so sure this one is possible . Even through I don't understand fully what the issue is exactly.

Could you possibly record a video explaining?

Thanks,
Shane

#915908

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.

#916047

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jesse,

I think i understand what you want.

So you're saying if Person A makes an order or change then you want Person B to see that change if they are looking at that same page as well correct?

Thanks,
Shane

#916240

Hi Shane, that is correct!

We would love to have this done thru Toolset, since the views render a majority of our KDS already.

#916286

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jesse,

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 .

https://toolset.com/contractors/

Thanks,
Shane

#916747

Okay Shane. We do have a contractor; I'll reach out and ask him to see if he can do anything.