diff --git a/assets/css/pickup-locations.scss b/assets/css/pickup-locations.scss index 8ae0b765..3ff39287 100644 --- a/assets/css/pickup-locations.scss +++ b/assets/css/pickup-locations.scss @@ -6,63 +6,71 @@ margin-right: 5px; padding: 0 3px; } -.woocommerce form { - #current_pickup_location_field { - display: none; - } +.woocommerce-checkout, .woocommerce-account { + .woocommerce form { + #current_pickup_location_field { + display: none; + } + + .pickup_location_notice { + margin-top: -.5rem; - .pickup_location_notice { - margin-top: -.5rem; + p { + margin: 0; + padding: 0; + } - p { - margin: 0; - padding: 0; + a.pickup-location-remove { + color: var(--wc-subtext); + font-size: 0.9em; + margin-top: 1rem; + } } - a.pickup-location-remove { - color: var(--wc-subtext); - font-size: 0.9em; - margin-top: 1rem; + .wc-gzd-shipments-managed-by-pickup-location { + position: relative; } - } - .wc-gzd-shipments-managed-by-pickup-location { - position: relative; - } -} + .wc-gzd-shipments-managed-by-pickup-location { + .woocommerce-input-wrapper { + input.input-text:read-only { + background-color: #eee; + } + } -.wc-gzd-shipments-managed-by-pickup-location { - select + .select2-container { - pointer-events: none; - touch-action: none; + select + .select2-container { + pointer-events: none; + touch-action: none; - .select2-selection { - background: #eee; - box-shadow: none; - } + .select2-selection { + background: #eee; + box-shadow: none; + } - .select2-selection__arrow, - .select2-selection__clear { - display: none; + .select2-selection__arrow, + .select2-selection__clear { + display: none; + } + } + + select { + pointer-events: none; + touch-action: none; + } } - } - select { - pointer-events: none; - touch-action: none; + .wc-gzd-shipments-managed-by-pickup-location-notice { + font-size: 0.7em; + color: var(--wc-subtext); + line-height: 1em; + position: absolute; + right: 0; + bottom: auto; + margin-top: -1.5rem; + } } } -.wc-gzd-shipments-managed-by-pickup-location-notice { - font-size: 0.7em; - color: var(--wc-subtext); - line-height: 1em; - position: absolute; - right: 0; - bottom: auto; - margin-top: -1.5rem; -} - body.wc-gzd-body-modal-active { overflow: hidden; } @@ -190,5 +198,5 @@ body.wc-gzd-body-modal-active { } .wc-gzd-modal-background.active, .wc-gzd-modal-content.active { - display: block; + display: block !important; } \ No newline at end of file diff --git a/package.json b/package.json index df1963c3..8d2b1242 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "woocommerce-germanized-shipments", "title": "Shipments for WooCommerce", - "version": "3.2.4", + "version": "3.3.0", "homepage": "https://vendidero.de", "repository": { "type": "git", diff --git a/src/Package.php b/src/Package.php index f5f82a1c..3b464508 100644 --- a/src/Package.php +++ b/src/Package.php @@ -18,7 +18,7 @@ class Package { * * @var string */ - const VERSION = '3.2.4'; + const VERSION = '3.3.0'; public static $upload_dir_suffix = ''; diff --git a/src/PickupDelivery.php b/src/PickupDelivery.php index e57d9208..fe1f65cc 100644 --- a/src/PickupDelivery.php +++ b/src/PickupDelivery.php @@ -22,7 +22,7 @@ public static function init() { add_action( 'wp_enqueue_scripts', array( __CLASS__, 'register_assets' ), 100 ); - add_action( 'woocommerce_after_edit_address_form_shipping', array( __CLASS__, 'register_customer_address_modal' ) ); + add_action( 'woocommerce_after_edit_account_address_form', array( __CLASS__, 'register_customer_address_modal' ) ); add_action( 'woocommerce_after_save_address_validation', array( __CLASS__, 'register_customer_address_validation' ), 10, 4 ); add_filter( 'woocommerce_address_to_edit', array( __CLASS__, 'register_customer_address_fields' ), 10, 2 ); @@ -235,7 +235,7 @@ public static function pickup_location_search_modal( $context = 'checkout' ) { ?>
-