-
Loki Checkout
- User documentation
-
Developer documentation
- Modules
- Getting started
- Architecture
-
Basic customizations
- Customizing component appearance
- Simple XML layout changes for fields
- Customer Address configurations
- Customizing CSS classes
- Changing the grid of field blocks
- Child block rendering
- Field validation and filtering
- Styling input fields
- Adding a custom block to a form
- Ordering blocks properly
- Changing error messages
- Changing the date field format
- Customizing the progress bar
- Using ImageOutput ViewModel
- Changing the cart item quantity
- Advanced customizations
- Integrations
- Troubleshooting
- ADR
- Playbook
- Reference
- Milestones and roadmap
- Module overview
- Frequently Asked Questions
- Loki Components
- Loki Field Components
- Loki Admin Components
- Loki Theme Kit
- Loki Base
- Miscellaneous
Changing the cart item quantity
Via the module LokiCheckout_EditCart, the quantity of each cart item, typically shown in the sidebar, becomes modifiable. By default, this is presented with a text input field. But you can change this to a select box or something else easily.
The module already ships with a select.phtml to allow you to switch the input box to a dropdown:
<referenceBlock name="loki-checkout-edit-cart.sidebar.items.item.actions.input" template="LokiCheckout_EditCart::checkout/sidebar/items/item/actions/select.phtml"/>
When changing the quantity via this dropdown, the results are automatically submitted. Probably, this means that the Update button is no longer needed:
<referenceBlock name="loki-checkout-edit-cart.sidebar.items.item.actions.update" remove="true" />
Last modified: May 13, 2026