From 256e5764e30904d0fea8cbc2f1a13c7e3b3450e9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 5 Jul 2025 11:18:12 +0300 Subject: [PATCH] =?UTF-8?q?Andrei=20|=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B2=20=D0=BA=D0=B0=D1=82=D0=B0=D0=BB=D0=BE?= =?UTF-8?q?=D0=B3=20=D0=BF=D0=BB=D0=B0=D1=88=D0=BA=D1=83=20not=20found?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../global-functions/multilang-functions.php | 3 + .../components/catalog/assets/css/catalog.css | 69 +++++++++++++++++++ wp-content/themes/cosmopet/static/img/sv.svg | 9 +++ .../_pages/shop/archive-product.twig | 9 +++ 4 files changed, 90 insertions(+) create mode 100644 wp-content/themes/cosmopet/static/img/sv.svg diff --git a/wp-content/themes/cosmopet/global-functions/multilang-functions.php b/wp-content/themes/cosmopet/global-functions/multilang-functions.php index 6c9ed72..b30f38c 100644 --- a/wp-content/themes/cosmopet/global-functions/multilang-functions.php +++ b/wp-content/themes/cosmopet/global-functions/multilang-functions.php @@ -1829,6 +1829,9 @@ pll_register_string('Населенный пункт', 'Населенный п pll_register_string('Ваш город', 'Ваш город', 'Checkout'); pll_register_string('Оплатить', 'Оплатить', 'Checkout'); pll_register_string('Запомнить меня', 'Запомнить меня', 'Checkout'); + +pll_register_string('coming soon', 'coming soon', 'Not found'); +pll_register_string('This item is not on our website yet, but it will be here very soon', 'This item is not on our website yet, but it will be here very soon', 'Not found'); }); diff --git a/wp-content/themes/cosmopet/modules/shop/components/catalog/assets/css/catalog.css b/wp-content/themes/cosmopet/modules/shop/components/catalog/assets/css/catalog.css index 541477c..074e8f8 100644 --- a/wp-content/themes/cosmopet/modules/shop/components/catalog/assets/css/catalog.css +++ b/wp-content/themes/cosmopet/modules/shop/components/catalog/assets/css/catalog.css @@ -943,3 +943,72 @@ display: none; /* product */ } + +/* not-found */ +.not-found-title{ + font-family: 'Craftwork Grotesk'; + font-style: normal; + font-weight: 700; + font-size: 36px; + line-height: 43px; + text-align: center; + text-decoration-line: underline; + text-transform: uppercase; + color: #121212; + + } + .product-main, .not-found{ + width: 100%; + } + .not-found-text{ + /* This item is not on our website yet, but it will be here very soon */ + + max-width: 421px; + margin-right: auto; + margin-left: auto; + margin-top: 1em; + font-family: 'Craftwork Grotesk'; + font-style: normal; + font-weight: 500; + font-size: 24px; + line-height: 29px; + text-align: center; + + color: #121212; + + + /* Inside auto layout */ + flex: none; + order: 1; + flex-grow: 0; + + } + .not-found{ + width: 100%; + position: relative; + padding-top: 7rem; + padding-bottom: 7rem; + } + .not-found img{ + position: absolute; + top: 50%; + left: 50%; + pointer-events: none; + transform: translate(-50%, -50%); + min-width:750px; + } + @media (max-width: 640px) { + .not-found-title{ + font-size: 24px; + } + .not-found-text{ + font-size: 16px; + } + .not-found img{ + min-width:550px; + } + .not-found{ + overflow: hidden; + } + } +/* not-found end */ \ No newline at end of file diff --git a/wp-content/themes/cosmopet/static/img/sv.svg b/wp-content/themes/cosmopet/static/img/sv.svg new file mode 100644 index 0000000..8732de6 --- /dev/null +++ b/wp-content/themes/cosmopet/static/img/sv.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/wp-content/themes/cosmopet/templates/_pages/shop/archive-product.twig b/wp-content/themes/cosmopet/templates/_pages/shop/archive-product.twig index 471d2d9..d0e9107 100644 --- a/wp-content/themes/cosmopet/templates/_pages/shop/archive-product.twig +++ b/wp-content/themes/cosmopet/templates/_pages/shop/archive-product.twig @@ -52,9 +52,18 @@ {% endif %}
+ + {% if posts|length > 0 %} {% for post in posts %} {% include '_blocks/shop/archive-product-tease.twig' with {post: post} %} {% endfor %} + {% else %} +
+ +
{{ fn('pll_e', 'coming soon') }}
+
{{ fn('pll_e', 'This item is not on our website yet, but it will be here very soon') }}
+
+ {% endif %}