• Resolved Slaacr

    (@slaacr)


    I am new to PMS, this is the first time that I have used it. The issue I am having is with using elementor to block certain buttons from the different tiers. The setup does seem very straight forward, but, with no success I have attempted all settings. What happens is absolutely nothing gets hidden at all.

    I created a custom plugin that works wonderfully with PMS so I know the plugin works. I have also extended the user account page with an extra tab and form content. All that works great. Here is what I’ve tried.

    1. Disabled and even deleted all but PMS and Elementor. This includes my own custom plugin.
    2. Every combination of settings within Elementor to attempt to get anything to hide.
    3. New test users with one of the 3 tiers, admin user of course, Incog windows, cleared caches, and multiple browsers.
    4. Page re-saves, subscription tiers re-saved, and page re-saves.
    5. Tried to restrict content to containers, buttons, and text blocks. All of those have been restricted individually. Even with and without the container having settings at the same time.

    I really dont want to have to create custom templates to be able to use this outside of Elementor so any help would be appreciated.

    Installed plugins > Elementor Version 3.25.0, essential Elementor addons Version 6.0.8, Filebird Version 6.4.2, PMS Version 2.13.0, and the WordPress importer Version 0.8.3.

    I am using the free version of PMS, I don’t want to utilize pro until I know this is going to test properly and be the fit I think it will be.

    Please advise.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @slaacr,

    It is very important to mention that when you’re testing this you should not test with an Administrator account or a user account that has Admin privileges since this type of users bypasses all restriction functionality. This should be tested from an Incognito window with a normal user account (Subscriber role).


    Note: Also if you give this normal user a PMS Membership and the restriction was based around this membership then it’s normal for the content to appear to this user (since the user has an active membership).

    Thread Starter Slaacr

    (@slaacr)

    Thanks for getting back

    “testing this you should?not?test with an Administrator account or a user account that has Admin privileges”

    I had read your comment about that in another thread, this is why I created a test user. The user by default was a WordPress subscriber. I manually gave this user a subscription plan. Incognito didn’t change anything in way of blocking the content.

    After some contemplation last night, I had a hunch that I tested this morning. The initial solution is you cannot put the restricted content too deep in nested containers. I moved the buttons all the way out to the container that splits the body content (2nd level essentially). not ideal for this layout but I would have make made it work. Just to be thorough the 3rd level container that housed the buttons was supposed to be restricted, for efficiency, not every button individually. It did not matter whatsoever what settings you put on that container or buttons, everything showed on 3rd level container. Somehow changing the page in a significant way temporarily fixed it.

    With the test user on the basic plan the right buttons showed and the higher plan button went away. Hurray! Now, If you change the subscription plan on the test user to a higher plan ALL buttons show again. Regardless of settings. I am not using a cache plugin and dumping the browser cache and incognito once again still does not fix it. I switched the test user back to the lowest plan and all buttons show.

    Thanks

    • This reply was modified 4 months, 4 weeks ago by Slaacr.
    Thread Starter Slaacr

    (@slaacr)

    Ok, I do appear to have the issue pinned down. It concerns me greatly since new “subscribers” of any plan are likely to see all the buttons until.

    1. Logout
    2. Regenerate Elementor Cache & CSS
    3. Log back in ( if buttons still exist, refresh page ) and everything works for that user.

    If I upgrade that users plan, as long as I repeat those steps it works. Harsh for testing.. Even worse if I can’t figure out how to fix caching. I wonder if other caching plugins are going to do the same?

    • This reply was modified 4 months, 4 weeks ago by Slaacr.
    Thread Starter Slaacr

    (@slaacr)

    I’m now of the mind that we cannot have multiple restrictions on the same page. Container 1 restricts logged out users or certain subscription plans. Container 2 is for logged in users with allowed subscriptions. I believe the multiple restrictions are having conflicts. The reason I think this is last set of settings on the page works after caching issues are resolved. I can swap the containers places and make test user changes (or log out) and it works instead.

    I’ve gone ahead and abandoned the use of this feature for now. I am going to go ahead and use elementors display conditions instead. Keep in mind, I would like to help fix this if you are interested.

    Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @slaacr,

    I’ve tested on my WP Instance and have two different containers (that are not nested), each having its own set of Content Restriction settings, and everything works correctly. To have a better idea of your setup:

    1. Could you please send a screenshot of how those containers were added to the page?
    2. Could you please send a screenshot of how the Content Restriction functionality was applied to each container?

    You can use a site like https://snipboard.io/ to share the screenshots.

    Best regards,

    Thread Starter Slaacr

    (@slaacr)

    Nested Container Setup
    https://snipboard.io/k5FczG.jpg

    Settings for Container 1
    https://snipboard.io/voKFAN.jpg

    Settings for Container 2
    https://snipboard.io/hfsXzD.jpg

    Plugin Support alexandrubodea

    (@alexandrubodea)

    I’ve tested on my WP Instance with an exact setup as the one you’ve shown and for me, it works correctly. Out of curiosity, if you go to your site’s Dashboard -> Elementor -> Settings -> Features -> and disable the “Element Caching” setting, does it work correctly then?

    Best regards,

    Thread Starter Slaacr

    (@slaacr)

    So not exactly, I have to go in a “regenerate css” all the time. Still rarely has any effects on the outcomes. What does happen, and is very suggestive of caching issues, is sometimes it will work on a fresh reload of the caches, CSS, browsers, etc. But as soon as I refresh or click off page and come back, it quits working. I have left everything installed as it is for now. I am going to move to a different server setup and see if there is something wrong with Apache settings. Maybe try Laragon. It doesn’t make sense to me that it’s not working, I’m just eager to solve this ??

    Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @slaacr,

    Have you managed to try with the different server setup you’ve mentioned? I’m asking this since the thread did not receive any new messages in the past week and a half. Until we receive a new message I will mark this post as Resolved.

    Note: I want to mention that I’ve further tested this on a WP Instance of mine and in my case there were some issues similar to what you’ve mentioned but they were caused by the Elementor caching setting I previously mentioned (Elementor -> Settings -> Features -> Element Caching).

    Best regards,

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.