• Hello community!

    I am very new in coding specially with php but whenever I had a problem, thank to this community and a lot of search I got to solve them. Except one of them.
    I have been weeks trying to check a simple box (I know it is the most simple thing to do) but I couldn´t.

    I have installed Paywall for Woocommerce plugging and I´d need to check a checkbox automatically whenever I create a product.
    https://paste.pics/916b993a5c531db368398343aba5eaf2

    Being the id / name for that:
    _woopaywall_hide_description

    I have tried with the typical function with no success:

    
    function paywall_hide_filter(){
     $val = get_option('_woopaywall_hide_description');
        $checkval = "";
        if ($val == 'on'){
            $checkval = "checked";
        }
    	echo '<input type="checkbox" class="checkbox" style="" name="_woopaywall_hide_description" id="_woopaywall_hide_description" value="yes" checked="checked">'; 
    }
    

    Could anybody help me? 🙁

    • This topic was modified 4 years, 10 months ago by serpaspar.

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Checking automatically a Paywall checkbox’ is closed to new replies.