• Resolved giuseppelinkdigital

    (@giuseppelinkdigital)


    Hi,

    Is it possible to add List Choice sign-up option on the WooCommerce Registration page using this plugin?

    I followed your article and can get them displaying on the WooCommerce Registration page using the following code:

    function hb_show_list_choice_in_registration() {	?>
    
    	<h4>Choose the lists you wish to subscribe to..</h4>
    	<p>
    		<label class="newsletter-checkboxes">
    			<input name="mc4wp_lists[]" type="checkbox" value="xx">
    			<span>Newsletter</span>
    		</label>
    		<label class="newsletter-checkboxes">
    			<input name="mc4wp_lists[]" type="checkbox" value="xx">
    			<span>Products and Offers</span>
    		</label>
    		<label class="newsletter-checkboxes">
    			<input name="mc4wp_lists[]" type="checkbox" value="xx">
    			<span>Support and Recipes</span>
    		</label>
    	</p>
    	<input type="hidden" name="mc4wp-subscribe" value="1" />
    
    	<?php
    }
    
    add_action( 'woocommerce_register_form', 'hb_show_list_choice_in_registration' );

    (Replaced list IDs with ‘xx’ for example)

    However when I fill in and submit the form, the user is created but they are not added to any of the lists selected.

    Don’t see anything in the debug log either.

    Appreciate any help and apologies if a repost, I read through all relevant articles I could find and and searched through your support forum but couldn’t find anything.

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘List Choice on WooCommerce Registration Form’ is closed to new replies.