This commit is contained in:
Roman Pyrih
2025-11-12 10:26:26 +01:00
parent d4df30d692
commit bf356e9a4a
4 changed files with 362 additions and 326 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -55,7 +55,7 @@
.top-bar {
background: #ff0f1c;
color: #FFF !important;
color: #fff !important;
display: flex;
gap: 10px;
justify-content: center;
@@ -76,7 +76,7 @@
}
#checkout .card {
background: #FFF !important;
background: #fff !important;
}
#tc-container {
@@ -115,7 +115,7 @@
}
.cart-detailed-totals {
background: #FFF !important;
background: #fff !important;
}
.promo-highlighted {
@@ -136,7 +136,6 @@
#tc-container-mobile,
#tc-container {
.custom-checkbox {
margin-bottom: 10px !important;
}
@@ -150,15 +149,15 @@
&::before {
background: #ff0f1c !important;
color: #FFF !important;
color: #fff !important;
border: 0 !important;
}
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
textarea,
select {
border: 1px solid #d3d3d3;
@@ -187,7 +186,7 @@
.suggestion:hover,
.selected {
background: #FFF !important;
background: #fff !important;
}
.remaining-amount-to-free-shipping-container {
@@ -218,7 +217,7 @@
display: none !important;
}
.custom-checkbox input[type=checkbox]:checked+span .checkbox-checked {
.custom-checkbox input[type='checkbox']:checked + span .checkbox-checked {
color: #ff0f1c;
font-size: 20px;
}
@@ -247,12 +246,12 @@ body.compact-cart #tc-container .qty-container .qty-box {
}
.cart-detailed-totals {
background: #FFF !important;
background: #fff !important;
}
.card.cart-summary {
padding: 0 !important;
background: #FFF !important;
background: #fff !important;
}
.delivery-options-list.shipping-selected {
@@ -293,11 +292,10 @@ body.compact-cart #tc-container .product-line-actions {
}
@media (max-width: 767px) {
.product-line-qty,
.product-line-price,
.product-line-delete {
padding: 0 !important
padding: 0 !important;
}
.product-line-body {
@@ -366,7 +364,7 @@ body.compact-cart #tc-container .product-line-actions {
justify-content: flex-end;
width: 100%;
input[name="s"] {
input[name='s'] {
width: 100%;
max-width: 600px;
}
@@ -381,7 +379,7 @@ body.compact-cart #tc-container .product-line-actions {
justify-content: center;
i {
color: #FFF !important;
color: #fff !important;
}
}
}
@@ -431,3 +429,13 @@ body#product {
.form-control.alert {
border: 1px solid #cc0000 !important;
}
.box_clothes_size {
text-align: center;
font-weight: 600;
line-height: 1.25;
display: block;
color: #000;
font-size: 16px;
text-decoration: underline;
}

View File

@@ -61,6 +61,11 @@
<div class="col-md-6 productblock-content">
{block name='page_header_container'}
{block name='page_header'}
{if isset($product.quantity) && $product.quantity > 0}
<div class="product-badge product-badge--available" aria-label="{l s='Product available' d='Shop.Theme.Catalog'}">
{l s='PRODUKT DOSTĘPNY - produkt na stanie' d='Shop.Theme.Catalog'}
</div>
{/if}
<h1 class="h1" itemprop="name">{block name='page_title'}{$product.name}{/block}</h1>
{/block}
{/block}
@@ -119,6 +124,29 @@
{/block}
</form>
{/block}
{block name='product_clothes_size'}
{assign var=catIds value=Product::getProductCategories($product.id)}
{assign var=checkCats value=[918,1155]}
{foreach from=$checkCats item=c}
{if $c|in_array:$catIds}
{assign var=inSpecialCat value=true}
{/if}
{/foreach}
{if isset($inSpecialCat) && $inSpecialCat}
<div class="box_clothes_size">
<a href="/content/8-sprawdz-rozmiar">Sprawdź rozmiar</a>
</div>
{/if}
<pre style="display: none;">
{$catIds|@print_r}
</pre>
{/block}
{hook h='displayProductGuarantee' product=$product}
{hook h='displayProductSocials' product=$product}