Home > widget-integration > CartRenderConfig

CartRenderConfig interface

Configuration for cart rendering

Controls how the cart is displayed to users including style, currency formatting, and other display preferences.

Signature:

export interface CartRenderConfig 

Example 1

Side drawer configuration

const config: CartRenderConfig = {
  cartStyle: 'side',
  showCurrencyCodes: false
};

Example 2

Multi-currency configuration

const config: CartRenderConfig = {
  cartStyle: 'modal',
  showCurrencyCodes: true // Show codes for clarity
};

Properties

Property

Modifiers

Type

Description

cartStyle

string

Cart display style

Common values: - 'side': Side drawer (slides from right) - 'drawer': Bottom drawer - 'modal': Center modal - 'page': Full page redirect - Custom values supported for shop-specific implementations

showCurrencyCodes

boolean

Whether to show currency codes in prices (USD, EUR, etc.)