Header
Sepet
Turkish content
This section is currently available in Turkish only. Component code and Twig variable names are language-independent.
Temada ürünleri sepete attıktan sonra tıklandığında sepet sayfasına yönlendiren alan
Görünüm

Sepet Yapısı
Kod Yapısı
HTML
index.html<div class="cart-menu"> <a href="{{ path('cart_index') }}" aria-label="Cart"> <svg width="36" height="36" viewBox="0 0 36 36" fill="none"> <path d="M26.9944 25.243L26.0803 15.708C26.0438 15.3041 25.8404 14.9276 25.5106 14.6537C25.1809 14.3799 24.7491 14.2289 24.3017 14.231H22.7627V13.315C22.7627 12.1706 22.2608 11.0731 21.3674 10.2638C20.474 9.45461 19.2623 9 17.9989 9C16.7355 9 15.5238 9.45461 14.6304 10.2638C13.737 11.0731 13.2351 12.1706 13.2351 13.315V14.231H11.695C11.2484 14.2299 10.8177 14.3813 10.4889 14.6551C10.16 14.9288 9.95721 15.3048 9.92083 15.708L9.0067 25.243C8.9853 25.4661 9.01528 25.6907 9.09473 25.9027C9.17418 26.1148 9.30138 26.3095 9.46827 26.4747C9.63515 26.6399 9.83809 26.7718 10.0642 26.8623C10.2904 26.9527 10.5348 26.9996 10.782 27H25.2147C25.4622 27 25.707 26.9534 25.9335 26.8632C26.16 26.7729 26.3634 26.641 26.5306 26.4758C26.6979 26.3106 26.8254 26.1157 26.905 25.9034C26.9847 25.6912 27.0147 25.4663 26.9933 25.243H26.9944ZM14.476 13.315C14.476 12.469 14.847 11.6576 15.5075 11.0593C16.168 10.4611 17.0638 10.125 17.9978 10.125C18.9318 10.125 19.8276 10.4611 20.4881 11.0593C21.1486 11.6576 21.5196 12.469 21.5196 13.315V14.231H14.476V13.315ZM25.6155 25.715C25.5663 25.7672 25.5047 25.8087 25.4353 25.8364C25.3659 25.8641 25.2905 25.8773 25.2147 25.875H10.782C10.7066 25.875 10.6321 25.8608 10.5632 25.8333C10.4943 25.8058 10.4324 25.7656 10.3815 25.7153C10.3307 25.665 10.2919 25.6056 10.2677 25.541C10.2435 25.4764 10.2344 25.408 10.241 25.34L11.1551 15.805C11.166 15.682 11.2278 15.5673 11.3281 15.4838C11.4284 15.4004 11.5599 15.3544 11.6961 15.355H13.2329V18.042C13.2329 18.1912 13.2983 18.3343 13.4148 18.4397C13.5312 18.5452 13.6892 18.6045 13.8539 18.6045C14.0186 18.6045 14.1765 18.5452 14.293 18.4397C14.4095 18.3343 14.4749 18.1912 14.4749 18.042V15.356H21.5185V18.042C21.5252 18.1871 21.5936 18.3242 21.7094 18.4247C21.8251 18.5252 21.9792 18.5813 22.1395 18.5813C22.2998 18.5813 22.4539 18.5252 22.5697 18.4247C22.6854 18.3242 22.7538 18.1871 22.7605 18.042V15.356H24.2995C24.4357 15.3554 24.5672 15.4014 24.6675 15.4848C24.7678 15.5683 24.8296 15.683 24.8405 15.806L25.7546 25.341C25.7636 25.4091 25.7556 25.4782 25.7311 25.5431C25.7067 25.608 25.6664 25.6671 25.6133 25.716L25.6155 25.715Z" fill="#110F21"/> </svg> <span>{{ theme.settings.cart_title }}</span> <div class="cart-amount" data-selector="cart-item-count"></div> </a> </div>
SCSS
style.css.cart-menu { position: relative; margin-left: var(--spacer-4); > a { position: relative; @include center; min-width: 36px; height: 36px; color: $color-text; font-size: var(--font-size-14); .cart-amount { position: absolute; left: 0; top: -9px; @include center; width: 18px; height: 18px; color: $color-white; font-size: var(--font-size-12); text-align: center; border-radius: 100%; background-color: $color-primary; } @include max($sm) { > span { display: none; } } } }
JSON
index.js"cart_title": { "type": "text", "default_value": "Sepet", "label": "Sepet Butonu" },
Last modified on