Payment method bank trasnfer checked / unchecked

This topic has 8 replies, 2 voices, and was last updated 5 months ago ago by Luca Rossi

  • Avatar: diderino
    diderino
    Participant
    July 18, 2024 at 07:02

    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.

    Files is visible for topic creator and
    support staff only.
    7 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    July 18, 2024 at 12:11

    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!

    Avatar: diderino
    diderino
    Participant
    July 19, 2024 at 18:02

    doesn´t work with this code 🙁

    Avatar: Justin
    Luca Rossi
    Support staff
    July 20, 2024 at 07:39

    Hi @diderino,

    This admin account is not working anymore.

    Please provide us with the new one.

    Thank you!

    Please contact administrator
    for this information.
    Avatar: diderino
    diderino
    Participant
    July 20, 2024 at 07:54

    see private content area

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    July 20, 2024 at 08:01

    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!

    Avatar: diderino
    diderino
    Participant
    July 20, 2024 at 08:22

    I just tried, but the bank transfer is still checked

    Avatar: Justin
    Luca Rossi
    Support staff
    July 20, 2024 at 09:33

    Hi @diderino,

    Please check again now.

    Here is the video: https://www.awesomescreenshot.com/video/29729398?key=5717f1e1b7edfbb283e1c6d8ae636023

    Thank you!

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.