Problem adding script to WPLMS cutomizer plugin

Home Forums Legacy Support Support queries Setup issues Problem adding script to WPLMS cutomizer plugin

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #198378
    Riko
    Participant
    Hi, When I add the code below in WPLMS customizer plugin, I get an error message: https://prnt.sc/mpz4sp.

    add_action('woocommerce_review_order_before_submit',function (){

    ?>

    jQuery('#subscribe_mailchimp').prop('checked',false); jQuery(document).ready(function(){ jQuery('#subscribe_mailchimp').prop('checked',false); });

    <?php

    });

    How to proceed? I want that box to remain unchecked so as to comply with GDPR. Best, Eric
    #198535
    Riko
    Participant
    This reply has been marked as private.
    #198588
    Ava
    Member
    My apologies for delay and grateful for having the patience. It seems the code above you have is not properly correct,please paste the below code instead of above.    add_action('woocommerce_review_order_before_submit',function (){ ?> <script> jQuery('#subscribe_mailchimp').prop('checked',false); jQuery(document).ready(function(){ jQuery('#subscribe_mailchimp').prop('checked',false); }); </script> < ?php });   Hope it works.
    #198689
    Riko
    Participant
    This reply has been marked as private.
    #198815
    Ava
    Member
    I guess this is connected to this problem  : https://wplms.io/support/forums/topic/uncheck-box-permanently/#post-198814 refer reply there .
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Problem adding script to WPLMS cutomizer plugin’ is closed to new replies.
© 2024 - VibeThemes