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.
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
Post a Comment