• Hello dear Cookie Law team, more than an incidence, I would like to ask for some advice that can help me in my next complex task. I do not need an exact or specific solution, a few tips that can better guide me to implement the necessary changes would suffice.

    Main Request
    I need to adapt your plugin to work in a serverless environment using Amazon Cloudfront & WordPress, so I only have static html and js to interact with the page, that is, I cannot execute “PHP” code to make requests in time real.

    Scenario
    Currently the behavior I have with your plugin is that:
    1) It does not create the cookielawinfo-checkbox-necessary because it is created with php which does not load in my environment.

    2) When I enable the checkbox of the non-necessary section, it changes the value of the cookielawinfo-checkbox-non-necessary to “yes”, but when reloading the page it returns to its previous state of “no”, so which does not save the user’s selection.

    Specific questions
    -What file or script is responsible for saving the option selected by the users in the “Enable” checkbox for the cookie: cookielawinfo-checkbox-non-necessary?

    -Is it likely that the plugin every time it refreshes the page will rewrite the cookielawinfo-checkbox-non-necessary cookie value to “no”?

    Additional Information
    Reviewing the source code of the plugin, I understand that many elements are created or executed by php and many others by js, for example the cookies cookielawinfo-checkbox-non-necessary and viewed_cookie_policy I understand that it was generated with js in the cookie-law-info-public.js and those cookies load correctly in my serverless environment. Although it loads the cookie cookielawinfo-checkbox-non-necessary, it does not save the user’s selection to allow or not the inclusion of the cookie script, as expressed above in the Scenario part.

    Thank you very much in advance for your attention to my request. I understand that it is a question of a certain level of complexity and rare, for this reason any help you can give me will be VERY useful.

    The page I need help with: [log in to see the link]

  • The topic ‘Advice for adapt plugin to a Serverless WordPress Page’ is closed to new replies.