Constants
Ez az oldal még csak angolul érhető el.
The constants of @poltura/theme-sdk/cart.
Ezen az oldalon
import { … } from '@poltura/theme-sdk/cart';cartRegions
The cart template's regions, where merchants place blocks.
const cartRegions: {
readonly head: 'head';
readonly items: 'items';
readonly foot: 'foot';
readonly aside: 'aside';
readonly empty: 'empty';
}Example
import { Slot } from '@poltura/theme-sdk/elements';
import { cartRegions } from '@poltura/theme-sdk/cart';
export function CartAside() {
return <Slot name={cartRegions.aside} />;
}