12.12.2023, 10:53
(12.12.2023, 08:25)admin Wrote: Use this to enable automatic plan switching only for certain users (admin and user123 in this example):
Code:$(function() {
var show = window.showPrevNextPlan;
var user = window.Globals ? window.Globals.user : '';
if (show && (user == 'admin' || user == 'user123')) {
setInterval(function() {
show(true);
}, 10 * 1000);
}
});
This is exactly what I'm needing, thank you.
Is it possible to specify what plan ID's to switch between?
And if so, could I setup 2 at the same time with different plans and users?