Skip to content

Cards and badges

The screens Cards and Badges under Content → Nova → Component styles set the boxes and the small labels of the shop. Both work as described on How a component screen works.

The screen Content → Nova → Component styles → Cards sets the cards of the account, the checkout and the windows. The product card has its own screen under Content → Nova → Listing → Product card; see Product card.

Above the list, Ready looks (“a starting point, then the style field”) offers three looks of the card:

LookWhat it sets in the state Normal on desktop
Flat (as Shopware)nothing: the card takes Nova’s value
With a borderthe background colour, the border colour and 16 px of inner spacing
With a shadowthe background colour, a transparent border, the shadow Card and 16 px of inner spacing

A look replaces the card’s own values of the state Normal. If the card’s own values match none of the looks, no look is marked.

ElementClassNote
Card.cardThe cards of the account, the checkout and the windows. Nova’s corners follow Medium — cards of Content → Nova → Variables → Radii and shadows; the shadow option Card of the style field follows the field Card of the same screen.
Card title.card-titleThe card’s title with a line under it, as in Shopware; the line has this element’s border colour.

The cards are used in the account (overview, profile, addresses, password, order), the checkout (address, shipping, payment, thank-you page), the guest login, reviews and the CMS form.

The screen Content → Nova → Component styles → Badges sets the shape and type of the core’s badges and the colours of the order statuses.

ElementClassNote
Badge.badgeThe shape and type of every Shopware badge: counters of the cart and the wishlist in the core’s header, order statuses, “3D” in the gallery, labels on the card. A fill from the .bg-* classes follows the skin’s colours.
Status: open, in progress.order-item-status-badge-open · -in_progressNova’s value: white text on the Information colour.
Status: completed.order-item-status-badge-completedNova’s value: white text on the Success colour.
Status: cancelled, failed.order-item-status-badge-cancelled · -failedNova’s value: white text on the Error colour.
Saving.list-price-badge · .p2lab-nova-card__savingThe saving beside an old price, on the product page and on the card. Nova’s value: bold text in the Error colour, without a background; with a background and corners it is shown as a badge.

The status badges appear in the account’s orders. Nova’s product labels take their shape and type from Badge until they set their own. The default address in the account is not a badge and keeps the skin’s colours.