checkout page gift subscription au
-
Hi, This code I can “See” is working and the checkbox is checked on page load, BUT it is automatically unchecked? This code below automatically selects the checkbox, BUT WHAT removes it? Why or what is WC doing that it unchecks the box?
add_action( 'woocommerce_after_checkout_form', 'autocheck' ); function autocheck(){ ?> <script> jQuery(document).ready(function () { jQuery('#gifting_999_option').attr('checked', 'checked'); }); </script> <?php }
Note: this is the gift subscription checkbox viewed ON the checkout page. Its the checkbox you click to add the gift recipient email address. I need it automatically check because the buyer does NOT need to check it. It should automatically checked?
thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘checkout page gift subscription au’ is closed to new replies.