diff --git a/assets/css/wc-setup.scss b/assets/css/wc-setup.scss index 49d7bd4f2d4..33db79f0268 100644 --- a/assets/css/wc-setup.scss +++ b/assets/css/wc-setup.scss @@ -633,7 +633,7 @@ body { } } - .shipping-method-description .live_rates { + .shipping-method-descriptions .live_rates { color: #a6a6a6; font-size: 0.92em; } diff --git a/assets/js/admin/wc-setup.js b/assets/js/admin/wc-setup.js index b44a4caa4ce..fec03e54948 100644 --- a/assets/js/admin/wc-setup.js +++ b/assets/js/admin/wc-setup.js @@ -45,16 +45,16 @@ jQuery( function( $ ) { } ); $( '.wc-wizard-services' ).on( 'change', '.wc-wizard-shipping-method-select .method', function( e ) { - var $zone = $( this ).parent( 'div' ); + var zone = $( this ).closest( '.wc-wizard-service-description' ); var selectedMethod = e.target.value; - var $descriptions = $zone.find( '.shipping-method-description' ); - $descriptions.find( 'p' ).hide(); - $descriptions.find( 'p.' + selectedMethod ).show(); + var description = zone.find( '.shipping-method-descriptions' ); + description.find( '.shipping-method-description' ).addClass( 'hide' ); + description.find( '.' + selectedMethod ).removeClass( 'hide' ); - var $settings = $zone.find( '.shipping-method-settings' ); - $settings.find( 'div' ).hide(); - $settings.find( 'div.' + selectedMethod ).show(); + var settings = zone.find( '.shipping-method-settings' ); + settings.find( '.shipping-method-setting' ).addClass( 'hide' ); + settings.find( '.' + selectedMethod ).removeClass( 'hide' ); } ); function submitActivateForm() { diff --git a/includes/admin/class-wc-admin-setup-wizard.php b/includes/admin/class-wc-admin-setup-wizard.php index b07d7223fd2..6af5ef7fa05 100644 --- a/includes/admin/class-wc-admin-setup-wizard.php +++ b/includes/admin/class-wc-admin-setup-wizard.php @@ -622,9 +622,9 @@ class WC_Admin_Setup_Wizard { -
+
$method ) : ?> -

+

@@ -633,7 +633,7 @@ class WC_Admin_Setup_Wizard {
$method ) : ?> -
+
$setting ) : ?>