thegeneralyst/AnopaDocs
Product

Quantity Decrement

The − button for the quantity selector. Decrements the shared variant store quantity by 1, stopping at a minimum of 1.

Decrement Button

AP_QuantityDecrement is the minus button for a PDP quantity selector. Each click reduces the shared quantity by 1, stopping at a minimum of 1. It disables itself automatically when no variant is selected or when the quantity is already at 1, and fades to 40% opacity in either case to signal the disabled state. Connect your designed minus button instance to the slot.

Property Controls

ControlTypeDefaultDescription

Button

ComponentInstance

Connect your designed minus (−) button instance here. The component wraps it and decrements the quantity on click. Disabled at quantity 1 or when no variant is selected.