From: soufiane Date: Tue, 18 Feb 2025 17:28:00 +0000 (+0100) Subject: wip #7330 @6:30 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=15f8568b44df4b7d2575ff733c2b8544a532e261;p=physioassist-wordpress.git wip #7330 @6:30 --- diff --git a/wp-content/themes/physioassist/resources/assets/styles/common/app.styl b/wp-content/themes/physioassist/resources/assets/styles/common/app.styl index 5292b862..61e96b08 100644 --- a/wp-content/themes/physioassist/resources/assets/styles/common/app.styl +++ b/wp-content/themes/physioassist/resources/assets/styles/common/app.styl @@ -81,7 +81,7 @@ margin-top: -10px .qib-container - margin-bottom: 23px + margin-bottom: 15px form.cart display: flex @@ -101,6 +101,7 @@ padding: 8px display: flex align-items: center + background-color: #FFFFFF .quantity input.qty:not(#qib_id):not(#qib_id) border: 0 font-size: 18px @@ -110,7 +111,7 @@ &:not(#qib_id):not(#qib_id) height: 39px width: 39px - background-color: #6CC3EE + background: #6CC3EE border-radius: 39px border: 0 @@ -124,38 +125,42 @@ .wps_sfw_subscription_wrapper margin-top: 8px margin-bottom: 20px - label - font-size: 18px - input - margin-right: 11px - width: 18px - height: 18px - color: currentColor - border: 0.063em solid currentColor + + // Radio button + input[type=radio] + margin-right: 11px + width: 18px + height: 18px + color: currentColor + border: 0.063em solid currentColor + border-radius: 50% + vertical-align: middle + appearance: none + display: inline-flex + align-items: center + justify-content: center + &::before + content: "" + width: 0.75em + height: 0.75em border-radius: 50% - vertical-align: middle - appearance: none - display: inline-flex - align-items: center - justify-content: center - &::before - content: "" - width: 0.75em - height: 0.75em - border-radius: 50% - transform: scale(0) - transition: 120ms transform ease-in-out - background-color: #93C7C2 - &:checked::before - transform: scale(1) - - form.cart button[type='submit']:not(#qib_id):not(#qib_id):not(_):not(_) + transform: scale(0) + transition: 120ms transform ease-in-out + background-color: #93C7C2 + &:checked::before + transform: scale(1) + + form.cart button[type='submit']:not(#qib_id):not(#qib_id):not(_):not(_), + .checkout-button width: 100% height: 55px font-size: 18px !important - text-transform: initial - font-weight: 500 - background-color: #1B2943 + text-transform: initial !important + font-weight: 600 + background-color: #1B2943 !important + + .checkout-button + padding: 1em 2em !important // Cart .frequency, @@ -163,6 +168,7 @@ .hide-on-desktop display: block !important + // Cart page body.panier, body.cart font-size: 18px @@ -196,3 +202,72 @@ align-items: center .label margin-right: auto + + .order-total + display: flex + justify-content: space-between + .label, + [data-title=Total] strong .woocommerce-Price-amount + font-size: 22px + [data-title=Total] + text-align: right + .includes_tax + display: block + + .woocommerce-shipping-totals .label + margin-bottom: 10px + + .woocommerce-shipping-calculator + padding-bottom: 16px + border-bottom: 1px solid #E3E4E7 + margin-bottom: 22px + .shipping-calculator-button + text-decoration: underline + font-size: 16px + color: #356DA8 + &:after + display: none + + // Global style + .woocommerce-cart + &-summary-card + border-radius: 15px + padding: 23px 16px + white-box(15px) + .label + font-weight: 600 + + &__title + font-size: 22px + font-weight: 600 + margin-bottom: 14px + + .cart-subtotal + display: flex + justify-content: space-between + border-bottom: 1px solid #E3E4E7 + padding-bottom: 16px + margin-bottom: 23px + font-weight: $semibold + + .woocommerce ul#shipping_method li + margin-bottom: 3px + + .woocommerce-billing-fields__field-wrapper + .form-row + width: 100% + + .input-text::placeholder + color: #8E94A1 + + .input-text:not(textarea) + white-box(28px) + &#order_comments + border-radius: 24px + + .woocommerce form .form-row label + text-transform: initial + color: #1B2943 + + body.validation + font-size: 16px diff --git a/wp-content/themes/physioassist/resources/assets/styles/common/mixins.styl b/wp-content/themes/physioassist/resources/assets/styles/common/mixins.styl index 911c83b7..865789d8 100644 --- a/wp-content/themes/physioassist/resources/assets/styles/common/mixins.styl +++ b/wp-content/themes/physioassist/resources/assets/styles/common/mixins.styl @@ -100,3 +100,10 @@ font-smoothing-reset() -moz-osx-font-smoothing: auto //---------------------------------------// + +white-box(r) + background-color: #fff + border: 1px solid #E3E4E7 + border-radius: r + box-shadow: 0 3px 6px #ECF2F8 + padding: 16px 24px diff --git a/wp-content/themes/physioassist/resources/views/woocommerce/cart/cart-shipping.blade.php b/wp-content/themes/physioassist/resources/views/woocommerce/cart/cart-shipping.blade.php new file mode 100644 index 00000000..7cde79da --- /dev/null +++ b/wp-content/themes/physioassist/resources/views/woocommerce/cart/cart-shipping.blade.php @@ -0,0 +1,173 @@ +countries->get_formatted_address( $package['destination'], ', ' ); +$has_calculated_shipping = ! empty( $has_calculated_shipping ); +$show_shipping_calculator = ! empty( $show_shipping_calculator ); +$calculator_text = ''; +$app = filter_input(INPUT_GET, 'app', FILTER_SANITIZE_STRING) +?> + + +
+
+
+ +
    + +
  • + ', $index, esc_attr( sanitize_title( $method->id ) ), esc_attr( $method->id ), checked( $method->id, $chosen_method, false ) ); // WPCS: XSS ok. + } else { + printf( '', $index, esc_attr( sanitize_title( $method->id ) ), esc_attr( $method->id ) ); // WPCS: XSS ok. + } + printf( '', $index, esc_attr( sanitize_title( $method->id ) ), wc_cart_totals_shipping_method_label( $method ) ); // WPCS: XSS ok. + do_action( 'woocommerce_after_shipping_rate', $method, $index ); + ?> +
  • + +
+ +

+ ' . esc_html( $formatted_destination ) . '' ); + $calculator_text = esc_html__( 'Change address', 'woocommerce' ); + } else { + echo wp_kses_post( apply_filters( 'woocommerce_shipping_estimate_html', __( 'Shipping options will be updated during checkout.', 'woocommerce' ) ) ); + } + ?> +

+ + ' . esc_html( $formatted_destination ) . '' ), + $formatted_destination + ) + ); + $calculator_text = esc_html__( 'Enter a different address', 'woocommerce' ); + endif; + ?> + + + ' . esc_html( $package_details ) . '

'; ?> + + + + + +
+
+ + + + + + + +

+ ' . esc_html( $formatted_destination ) . '' ); + $calculator_text = esc_html__( 'Change address', 'woocommerce' ); + } else { + echo wp_kses_post( apply_filters( 'woocommerce_shipping_estimate_html', __( 'Shipping options will be updated during checkout.', 'woocommerce' ) ) ); + } + ?> +

+ + ' . esc_html( $formatted_destination ) . '' ), + $formatted_destination + ) + ); + $calculator_text = esc_html__( 'Enter a different address', 'woocommerce' ); + endif; + ?> + + + ' . esc_html( $package_details ) . '

'; ?> + + + + + + + + diff --git a/wp-content/themes/physioassist/resources/views/woocommerce/cart/cart-totals.blade.php b/wp-content/themes/physioassist/resources/views/woocommerce/cart/cart-totals.blade.php index f9c26059..9c224213 100644 --- a/wp-content/themes/physioassist/resources/views/woocommerce/cart/cart-totals.blade.php +++ b/wp-content/themes/physioassist/resources/views/woocommerce/cart/cart-totals.blade.php @@ -22,48 +22,44 @@ defined( 'ABSPATH' ) || exit; -

+

@php($app = filter_input(INPUT_GET, 'app', FILTER_SANITIZE_STRING)) - + -
+
-
+
- cart->get_coupons() as $code => $coupon ) : ?> -
-
-
-
+ cart->get_coupons() as $code => $coupon ) : ?> +
+
+
+
- cart->needs_shipping() && WC()->cart->show_shipping() ) : ?> - + cart->needs_shipping() && WC()->cart->show_shipping() ) : ?> - - - cart->needs_shipping() && 'yes' === get_option( 'woocommerce_enable_shipping_calc' ) ) : ?> -
-
-
-
+
+
+
+
- cart->get_fees() as $fee ) : ?> -
-
name ); ?>
-
-
+ cart->get_fees() as $fee ) : ?> +
+
name ); ?>
+
+
- cart->display_prices_including_tax() ) { $taxable_address = WC()->customer->get_taxable_address(); $estimated_text = ''; @@ -96,7 +92,7 @@ defined( 'ABSPATH' ) || exit;
-
+