Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter cobalt5

    (@cobalt5)

    Thank you for the quick reply. I don′t have a Sendcloud account since I do the implementation for a client.

    We found 2 ways of solving the issue:

    1: Change the plugin file class-base-checkout-handler.php and change the constant CHECKOUT_PLUGIN_UI_JS to a locally hosted file.
    2: Block the loading of jsdelivr via a cookie consent plugin

    Both ways are not ideal because the first one would require us to manually change the code after every update. The second option however is somewhat legally dubious since the privacy policy would have to be available in the visitors language, which it isn′t. Additionally, there is the requirement to name the company which handles the data, which is also not obvious from the jsdelvr website. All in all a legal risk for every company which tries to stay GDPR compliant.

    So please consider changing the code to use a local version of that file or a way to deactivate it if the UI elements are not used in the checkout.

    Thread Starter cobalt5

    (@cobalt5)

    The Support solved my issue. Wanted to share the solution here for everyone.

    Problem: UCSS uses a callback path for the creation of the ucss files (/wp-json/litespeed/v1/) .

    Unfortunately, this path (/wp-json) is not accessible while using the wordpress permalink structure “plain”.

    For the plain permalink structure, the correct link to the wp-json endpoint is /?rest_route=.

    Solution 1: Change the permalink structure in the wordpress settings

    Solution 2: Change the callback uri for the ucss creation to /?rest_route=/litespeed/v1/ (not sure if that is possible without changing the plugin code)

    Thread Starter cobalt5

    (@cobalt5)

    If you hook me up with an email, I can give you admin access to the website (multiple sites have the same problem, so knock yourself out on this staging env)

    Thread Starter cobalt5

    (@cobalt5)

    Sure no problem.

    View post on imgur.com

    Hey man, not official support here.
    Do you combine the JS files? If so, does the problem also happen when you disable “JS Combine”.
    If it only happens when combining the js files, you can exclude the fomo script from being included in the js combined file (Page Optimization>Tuning).
    Good luck

Viewing 5 replies - 1 through 5 (of 5 total)