Skip to main content

Overview

Store settings (delivery options, pickup availability, and live status) are managed through the stores.operations.updateStore mutation. There is no separate settings module. For full details on updating store settings, see the Store Operations documentation.

Quick Reference

The updateStore mutation accepts an optional settings object with the following fields:
settings.deliveryEnabled
boolean
Enable or disable delivery for the store
settings.pickupEnabled
boolean
Enable or disable pickup for the store
settings.storeLive
boolean
Set the store’s live status, controlling visibility to customers
const updatedStore = await convex.mutation(api.stores.operations.updateStore, {
  settings: {
    deliveryEnabled: true,
    pickupEnabled: true,
    storeLive: true
  }
});
Store settings are part of the stores.operations.updateStore mutation. The convex/stores/settings.ts file is reserved for future use. Settings changes take effect immediately and update the store’s availability for customers.