This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Swipe limited to some pages
#2
You can override the swipe handler function and provide a list of allowed plan IDs where swap should work.
Add to Custom JavaScript:
Code:
$(function() {
  var fn = showPrevNextPlan;
  var allowed = [ 4, 6, 10 ]; // allowed plan IDs
  
  showPrevNextPlan = function(next) {
    if (allowed.indexOf(currentPlanId) >= 0) {
      fn(next);
    }
  };  
});
Reply


Messages In This Thread
Swipe limited to some pages - by Mirco - 05.01.2022, 09:49
RE: Swipe limited to some pages - by admin - 05.01.2022, 12:57
RE: Swipe limited to some pages - by Mirco - 05.01.2022, 14:29
RE: Swipe limited to some pages - by admin - 05.01.2022, 15:00
RE: Swipe limited to some pages - by Mirco - 05.01.2022, 15:52
RE: Swipe limited to some pages - by Mirco - 10.01.2022, 06:43
RE: Swipe limited to some pages - by admin - 10.01.2022, 07:53
RE: Swipe limited to some pages - by Mirco - 10.01.2022, 08:09
RE: Swipe limited to some pages - by admin - 10.01.2022, 08:28
RE: Swipe limited to some pages - by admin - 10.01.2022, 10:41
RE: Swipe limited to some pages - by Mirco - 10.01.2022, 10:46

Forum Jump: