thegeneralyst/AnopaDocs
PDP

Quantity Decrement

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

What it does

AP_QuantityDecrement is the − button for the quantity selector. It decrements the quantity in the shared variant store by 1, stopping at a minimum of 1.

How to set it up

Connect your designed minus button to the Button slot. Use alongside APQuantityIncrementer and APQuantityNumber to create a complete quantity selector.

Key behaviours

  • Minimum quantity is always 1 — it will not decrement below 1.
  • Disables when no variant is selected or when quantity is already 1.
  • Keyboard accessible: responds to Enter and Space keys.

Property Controls

ControlTypeDefaultDescription
ButtonComponent InstanceYour designed − button that will trigger the quantity decrement behaviour.