Task 6945 | исправлены стили на странице успешного заказа

pull/36/head
parent 9c447b5020
commit f157d03109
  1. 47
      wp-content/themes/cosmopet/modules/shop/components/checkout/assets/css/checkout.css
  2. 2
      wp-content/themes/cosmopet/temp-functions/modules-logic.php
  3. 5
      wp-content/themes/cosmopet/temp-functions/woocommerce-logic.php
  4. 1
      wp-content/themes/cosmopet/woocommerce/checkout/review-order.php

@ -696,3 +696,50 @@
.form-row{ .form-row{
margin-top: 1rem; margin-top: 1rem;
} }
.woocommerce-order-overview{
}
.woocommerce .woocommerce-customer-details .woocommerce-column__title, .woocommerce-order-details__title{
margin-bottom: .5em;
margin-top: 1em;
}
.woocommerce ul.order_details{
margin: 3rem 0;
}
.woocommerce .woocommerce-customer-details address p{
margin-top: .5em;
}
.woocommerce .woocommerce-customer-details .woocommerce-customer-details--email::before,
.woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone::before {
margin-top: -.25em;
}
.woocommerce-order-overview__order.order{
display: flex;
flex-direction: column;
}
.woocommerce-order{
max-width: calc(100% - 30px);
margin-right: auto;
margin-left: auto;
}
@media (max-width: 640px) {
.woocommerce ul.order_details li {
margin-right:0em;
font-size: .715em;
line-height: 1.3;
border-right: none;
border-bottom: 1px dashed #cfc8d8;
padding-right: 2em;
width: 100%;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
}

@ -336,7 +336,7 @@ include_module('layout');
add_action('wp', 'my_custom_checkout_code'); add_action('wp', 'my_custom_checkout_code');
function my_custom_checkout_code() { function my_custom_checkout_code() {
if (function_exists('is_checkout') && is_checkout() && !is_order_received_page()) { if (function_exists('is_checkout')) {
include_component('shop', 'checkout'); include_component('shop', 'checkout');
} }
} }

@ -220,8 +220,9 @@ function remove_view_cart_button_js() {
function custom_remove_woocommerce_styles_on_checkout( $enqueue_styles ) { function custom_remove_woocommerce_styles_on_checkout( $enqueue_styles ) {
if ( is_checkout() ) { // Если это страница оформления заказа, но НЕ страница "Спасибо за заказ"
return []; // Удаляет все стандартные стили WooCommerce только на странице checkout if ( is_checkout() && ! is_wc_endpoint_url( 'order-received' ) ) {
return []; // Удаляем стандартные стили WooCommerce
} }
return $enqueue_styles; return $enqueue_styles;

@ -16,6 +16,7 @@
*/ */
defined( 'ABSPATH' ) || exit; defined( 'ABSPATH' ) || exit;
?> ?>

Loading…
Cancel
Save