• Resolved tuomonurkkala

    (@tuomonurkkala)


    Hi there,

    How can I disable the default payment method on checkout page?

    document.addEventListener(‘DOMContentLoaded’, function () { $ = jQuery; $(document).on(‘updated_checkout’, function () { document.querySelector(‘.woocommerce-checkout-payment [name=”payment_method”]’).checked = false; document.querySelector(‘.payment_box’).style.display = ‘none’; document.getElementById(‘place_order’).innerHTML = ‘Choose Payment Method’; }); });

    I found that code from here, but this is not working properly:

    https://element.how/woocommerce-no-default-payment-method/

    I would like that the customer can see all the payment methods first and after they have chosen the bank which they would like to pay then the banks drop downs would open.

    Best Regards,

    Tuomo Nurkkala

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @tuomonurkkala,

    I understand you want to disable the default payment method on the checkout page and allow your customers to choose their preferred payment method first.

    I was able to check out your site and could already notice different payment options. Just curious, could you please share with us more details on what you are trying to achieve?

    The code you’ve provided is supposed to do the trick, but it seems it’s not working as expected. This might be due to a conflict with your theme or another plugin.

    To troubleshoot this, I recommend deactivating all other plugins and switching to a default theme like StoreFront to see if the issue persists.

    Another reason is that the provided code might not be compatible with the current version of WooCommerce.

    If this is the case, you may need to find a more updated solution or hire a developer to create a custom solution for you. With that said, I suggest reaching out to a developer, as this involves custom coding and implementations.

    Luckily, the WooCommerce community is filled with talented open-source developers, and many of them are active on the channels listed below:

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Disable default payment method’ is closed to new replies.