Warenkorb Mobile rote Warnmeldung

Hallo!

Bei unserem Shop wird der Warenkorb in der mobilen Ansicht nicht richtig dargestellt und es erscheint zudem eine Warnmeldung (Roter Kreis mit Ausrufezeichen).

Weiß jemand, wie ich diesen Fehler beheben kann und warum es so merkwürdig aussieht? In der Desktop-Variante ist alles in Ordnung und der Kreis erscheint auch nicht.

Es handelt sich um diesen Shop https://dos-performance.com/cart

Theme: Sense

Danke im Voraus!

@Webbsy ich würde davon ausgehen, dass in der CSS-Datei Fehler besteht bzw. im Template ggf. eine Class fehlt, die für die responsive Darstellung des Warenkorbs verantwortlich ist. Habt Ihr am Warenkorb (im Code) etwas geändert oder eine App installiert, welche im Warenkorb zum Einsatz kommt?

1 Like

Hallo Finer,

danke für die Antwort! Ich habe alle Code-Dateien auf den Originalzustand zurückversetzt. Habe nur kleinere CSS Änderungen gemacht wie Farbänderungen. Es wird aber eine App fürs Pfand berechnen verwendet. Die habe ich mal deaktiviert, leider macht auch dies keinen Unterschied. Bin echt ratlos! :confused:

Kannst du deine components-cart-items.css hier hochladen?

Show More

markup .cart-items td, .cart-items th { padding: 0; border: none; } .cart-items th { text-align: left; padding-bottom: 1.8rem; opacity: 0.85; font-weight: normal; } .cart-item__quantity-wrapper { display: flex; } .cart-item__totals { position: relative; } .cart-items *.right { text-align: right; } .cart-item__image-container { display: inline-flex; align-items: flex-start; } .cart-item__image-container:after { content: none; } .cart-item__image { height: auto; max-width: calc(10rem / var(--font-body-scale)); } @media screen and (min-width: 750px) { .cart-item__image { max-width: 100%; } } .cart-item__details { font-size: 1.6rem; line-height: calc(1 + 0.4 / var(--font-body-scale)); } .cart-item__details > * { margin: 0; max-width: 30rem; } .cart-item__details > * + * { margin-top: 0.6rem; } .cart-item__media { position: relative; } .cart-item__link { display: block; bottom: 0; left: 0; position: absolute; right: 0; top: 0; width: 100%; height: 100%; } .cart-item__name { text-decoration: none; display: block; } .cart-item__name:hover { text-decoration: underline; text-underline-offset: 0.3rem; text-decoration-thickness: 0.2rem; } .cart-item__price-wrapper > * { display: block; margin: 0; padding: 0; } .cart-item__discounted-prices dd { margin: 0; } .cart-item__discounted-prices .cart-item__old-price { font-size: 1.4rem; } .cart-item__old-price { opacity: 0.7; } .cart-item__final-price { font-weight: 400; } .product-option { font-size: 1.4rem; word-break: break-all; Display:none; line-height: calc(1 + 0.5 / var(--font-body-scale)); } .cart-item cart-remove-button { display: flex; margin-left: 1rem; } @media screen and (min-width: 750px) and (max-width: 989px) { .cart-item cart-remove-button { width: 4.5rem; height: 4.5rem; } } cart-remove-button .button { min-width: calc(4.5rem / var(--font-body-scale)); min-height: 4.5rem; padding: 0; margin: 0 0.1rem 0.1rem 0; } cart-remove-button .button:before, cart-remove-button .button:after { content: none; } cart-remove-button .button:not([disabled]):hover { color: rgb(var(--color-foreground)); border: 0px; background-color:#000; } @media screen and (min-width: 750px) { cart-remove-button .button { min-width: 3.5rem; min-height: 3.5rem; border: 0px; } cart-remove-button .button:hover { min-width: 3.5rem; min-height: 3.5rem; border: 0px; color:#fff; background-color:rgba(0,0,0,0)!important; } cart-remove-button .icon-remove { height: 1.5rem; width: 1.5rem; color: #5ab1aa; } .cart-item .loading-overlay { top: 0; left: auto; right: auto; bottom: 0; padding: 0; } @media screen and (min-width: 750px) { .cart-item .loading-overlay { right: 0; padding-top: 4.5rem; bottom: auto; } } .cart-item .loading-overlay:not(.hidden) ~ * { visibility: hidden; } .cart-item__error { display: flex; align-items: flex-start; margin-top: 1rem; } .cart-item__error-text { font-size: 1.2rem; order: 1; } .cart-item__error-text + svg { flex-shrink: 0; width: 1.2rem; margin-right: 0.7rem; } .cart-item__error-text:empty + svg { display: none; } .product-option + .product-option { margin-top: 0.4rem; } .product-option * { display: inline; margin: 0; } .cart-items thead th { text-transform: uppercase; color: #5ab1aa; font-weight: bold; } @media screen and (max-width: 749px) { .cart-items, .cart-items thead, .cart-items tbody { display: block; width: 100%; } .cart-items thead tr { display: flex; justify-content: space-between; border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.2); margin-bottom: 4rem; } .cart-item { display: grid; grid-template: repeat(2, auto) / repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3.5rem; } .cart-item:last-child { margin-bottom: 0; } .cart-item__media { grid-row: 1 / 3; } .cart-item__details { grid-column: 2 / 4; } .cart-item__quantity { grid-column: 2 / 5; } .cart-item__quantity-wrapper { flex-wrap: wrap; } .cart-item__totals { display: flex; align-items: flex-start; justify-content: flex-end; } } .cart-item__error-text + svg { margin-top: 0.4rem; } @media screen and (min-width: 750px) { .cart-items { border-spacing: 0; border-collapse: separate; box-shadow: none; width: 100%; display: table; } .cart-items th { border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.08); } .cart-items thead th:first-child { width: 50%; } .cart-items th + th { padding-left: 4rem; } .cart-items td { vertical-align: top; padding-top: 4rem; } .cart-item { display: table-row; } .cart-item > td + td { padding-left: 4rem; } .cart-item__details { width: 35rem; } .cart-item__media { width: 10rem; } .cart-item cart-remove-button { margin: 0.5rem 0 0 1.5rem; } .cart-item__price-wrapper > *:only-child:not(.cart-item__discounted-prices) { margin-top: 1rem; } } @media screen and (min-width: 990px) { .cart-item .cart-item__quantity, .cart-items .cart-items__heading--wide { padding-left: 6rem; } .cart-item__details { width: 50rem; } .cart-items thead th:first-child { width: 60%; } }

@Webbsy danke. Die “grid-colum:2 / 4;” Eigenschaft wird nicht angewandt. Auch wenn du die App deaktivierst, ist diese ja dennoch im Code. Daher kann es sein, dass alles gestört wird.

1 Like

Kurzer Hinweis, falls jemand in der Community ähnliche Probleme hat:

In der entsprechenden CSS-Datei fehlte eine “}” (geschwungene Klammer).

1 Like

@Finer du bist eine Legende! :wink:

Hi Webbsy,

ich freue mich zu hören, dass Finer dir bereits mit deinem Warenkorb weiterhelfen konnte.

Falls du noch einmal Probleme mit einem App hast, dass du installiert hattest, es aber trotzdem nicht komplett verschwindet, kannst du auch die Entwickler des besagten Apps kontaktieren, deren Kontaktdaten du auf der Appseite in unserem Appshop findest:

Die daraufhin jeglichen Code des Apps aus deinem Shopify Shop entfernen.

Bevor du Code-Änderungen an deinem Shop vornimmst, also auch Apps installierst, ist es immer auch ratsam vorher das eigene Theme zu duplizieren, damit du immer eine funktionierende Version deines Shopify Shops gesichert hast.

Ich sehe, du hast für deinen Shop eine Präsenz auf Facebook und Instagram, wäre auch TikTok interessant für dich? Das könnte ich mir bei deiner Zielgruppe jedenfalls gut vorstellen.