PHP Classes

File: assets/js/admin/shipping-methods.js

Recommend this page to a friend!
  Classes of Julio Cezar Kronbauer   PHP WooCommerce Correios   assets/js/admin/shipping-methods.js   Download  
File: assets/js/admin/shipping-methods.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP WooCommerce Correios
Woocommerce plugin for shipping via Correios
Author: By
Last change:
Date: 7 years ago
Size: 694 bytes
 

Contents

Class file image Download
jQuery( document ).ready( function( $ ) { $( 'input[id$="_show_delivery_time"], #woocommerce_correios_display_date' ).on( 'change', function() { var field = $( 'input[id$="_additional_time"]' ).closest( 'tr' ); if ( $( this ).is( ':checked' ) ) { field.show(); } else { field.hide(); } }).change(); $( 'select[id$="_service_type"], #woocommerce_correios_corporate_service' ).on( 'change', function() { var login = $( 'input[id$="_login"]' ).closest( 'tr' ), password = $( 'input[id$="_password"]' ).closest( 'tr' ); if ( 'corporate' === $( this ).val() ) { login.show(); password.show(); } else { login.hide(); password.hide(); } }).change(); });