Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Can't Remove the Login Options from WC-Checkout Blocks #1212

Open
Axos11 opened this issue Sep 25, 2024 · 5 comments
Open

[BUG] Can't Remove the Login Options from WC-Checkout Blocks #1212

Axos11 opened this issue Sep 25, 2024 · 5 comments

Comments

@Axos11
Copy link

Axos11 commented Sep 25, 2024

Describe the bug
I am trying to setup the plugin right now in a new store which has the WC-Checkout-Blocks enabled.
I tried to remove the Checkout Checkboxes from the Checkout or move them to a different position but could not.
Every time I tried to delete the block it just came right back. I then went looking for a filter to disable that behaviour but it seems that there is only one in the "old Shortcode" Checkout.

My issues with that I would like to only have one Checkbox even though we have GDPR enabled. Reason for that is that I would like to change the wording to target just the newsletter.
Also I would like to move it next to the checkout button because in my opinion customers are used to it.

I don't know what the best solution is here but I think it would be at least necessary to somehow disable the checkbox completely, so that people can choose if they would like the button there and even greater would be if there would be a filter like the on for the old checkout which lets me change the position and/or the content/amount of the boxes.

To Reproduce
Steps to reproduce the behavior:

  1. Enable WC Blocks Checkout
  2. Go to: Checkout Page Editor
  3. Try to remove the Checkboxes of Mailchimp

Expected behavior
Let the admin move / delete the boxes. (I know that there are only certain positions you can hook into at the moment, but maybe let us a choice via filter?)
Let the admin customize the amount of checkboxes and their text.

@kjvextras
Copy link

@Axos11 Hi! Thank you for contacting us. Just so I am clear, it is not that the checkout block is not working, it is that you want to customize the block? Or to completely remove box? We will standby.

@Axos11
Copy link
Author

Axos11 commented Sep 26, 2024

@kjvextras I mean to be forced to have the boxes shown seems like not working for me, but yes you are right. Technically they are working.

@kjvextras
Copy link

kjvextras commented Sep 30, 2024

Ok - Got it - removing the checkboxes of mailchimp is possible with filters.

So, here is an option

add_filter('mailchimp_checkout_opt_in_options', 'edit_checkout_opt_in_options');
function edit_checkout_opt_in_options( $options ) {
    $options[] = [ 'label' => esc_html__( 'Hidden, unchecked by default', 'mailchimp-for-woocommerce' ), 'value' => 'hide' ];

    return $options;
}

@kjvextras
Copy link

RE moving them around ... We will have to do some digging. We will sure add the option to remove the checkboxes to our wiki

@Axos11
Copy link
Author

Axos11 commented Oct 2, 2024

Hiding could be done via a css class as well.

Also if I would have to implement a checkbox at a different position myself I assume that they could interfere with each other because of their posted values? (haven't looked into the processing of the values in the block checkout yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants