thegeneralyst/AnopaDocs
Product

Quantity Number

Displays the currently selected quantity from the variant store as a read-only value.

Quantity Number

AP_QuantityNumber displays the currently selected quantity from the variant store as a read-only text value. Place it between the increment and decrement buttons to complete a quantity selector. On the canvas it shows a configurable preview value so you can style it without needing a live variant selection. Font, color, text alignment, and minimum width are all configurable from the panel.

Property Controls

ControlTypeDefaultDescription

Font

Font

14px / 1.4em

Typography for the displayed quantity number.

Color

Color

#000000

Text color for the quantity number.

Min Width

Number

32px

Minimum width of the number display. Useful for keeping the layout stable as the number changes. Range: 0–200.

Align

Enum

center

Text alignment of the quantity number. Options: Left, Center, Right.

Show Live in Canvas

Boolean

false

When on, shows the actual live quantity from the store on the canvas instead of the canvas preview value.

Canvas Value

Number

1

Static value shown on the canvas when Show Live in Canvas is off. Has no effect at runtime.