This topic has 8 replies, 2 voices, and was last updated 5 months ago ago by Luca Rossi
Hi,
how to uncheck the payment method?
Currently the bank transfer is automatically checked.
I want that the customer has to check by himself bank transfer or credit card payment.
Hi @diderino,
Please try adding the following code under functions.php file locates in your child theme:
add_action('wp_footer', 'n2t_wp_footer');
function n2t_wp_footer(){
if(is_checkout()){
?>
<script>
jQuery( function($){
$(document).ready(function(){
$('#payment_method_bacs').prop('checked', false);
})
});
</script>
<?php
}
}
Hope it helps!
doesn´t work with this code 🙁
Hi @diderino,
This admin account is not working anymore.
Please provide us with the new one.
Thank you!
see private content area
Hi @diderino,
We’ve changed the code to this:
add_action('wp_footer', 'n2t_wp_footer');
function n2t_wp_footer(){
if(is_checkout()){
?>
<script>
jQuery( function($){
$(document).on('click', 'span[data-step="5"]', function(){
$('#payment_method_bacs').prop('checked', false);
});
});
</script>
<?php
}
}
And it’s working fine now.
Could you please check again?
Thank you!
I just tried, but the bank transfer is still checked
Hi @diderino,
Please check again now.
Here is the video: https://www.awesomescreenshot.com/video/29729398?key=5717f1e1b7edfbb283e1c6d8ae636023
Thank you!
You must be logged in to reply to this topic.Log in/Sign up