Code help to trigger ‘unlimited’ selection on certain product
-
Hello,
On this page: https://www.public-montessori.org/product/mfe-at-bundle/ we have a product that we want the default/ONLY selection to be ‘unlimited’. The unlimited option is part of a groups plugin that allows the group leader to add unlimited group members to the site under their account.
We are using the code below but that also effects another product with the unlimited option. On that product we don’t want it to be the default and only option.
Is there a way to update this code to only work on the product ID: 31255?
Thank you.
CURRENT CODE:
add_action( ‘wp_head’, function () { ?>
<style>
.ldgr-unlimited-member-options{
display:none;
}
</style>
<script>jQuery( document ).ready(function() {
console.log( “ready!” );
setTimeout(function(){
jQuery(‘#ldgr-unlimited-member-check’).trigger(‘click’);
jQuery(‘.ldgr-unlimited-member-options’).show();
},500);});
</script>
<?php } );`The page I need help with: [log in to see the link]
The topic ‘Code help to trigger ‘unlimited’ selection on certain product’ is closed to new replies.