Check if zasilkovna pickup point is selected

0.0/5
<?php
add_action( 'wp_footer', 'hide_zasilkovna' );

function hide_zasilkovna() {
?>
	<script>
		jQuery(document).ready(function () {
			if (jQuery('input#shipping_method_0_zasilkovnaz-points').is(':checked')) {
				jQuery('div.shipping_options img, div.shipping_options .button').css({ display: "none" });
			};
		});
		jQuery(document).ready(function () {
			if (jQuery('input#shipping_method_0_zasilkovnaz-points').is(':checked')) {
				jQuery('div.shipping_options img').css({ display: "inline-block" });
				jQuery('div.shipping_options .button').css({ display: "inline-block" });
			};
		});
	</script>

<?php }

Comments and reviews

{{ reviewsTotal }} Review
{{ reviewsTotal }} Reviews
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}

Description

This snippet was fetched automatically from WPDistro.cz projects.

Author

Tags

This snippet is untagged