wordpress - Woocommerce: disable payment method with cost on delivery -


i have problem when select cost on delivery shipment method: paypal button doesn't disappear, user pay twice , undesirable behaviour.

i've attached image clarify problem because i'm searching web don't find solution.

enter image description here

thanks

a way how through jquery. put inside of document following

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> 

then find file checkout page setup , enter following:

$(document).ready(function() {     if ($('input[name=your_radio_name]:checked').val() == "the value when element should hidden") {         $('#id_of_the_element_that_should_be_hidden').hide();     }); });  

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -