🛒 AutoCart Docs

Block Settings

Settings available to merchants in the Shopify theme editor.

Overview

Both AutoCart app blocks expose configurable settings in the Shopify theme editor. These settings control the UI labels, appearance, and basic behavior of the AutoCart modal.

Settings Reference

Mode Selection

Only available in the Button Mode block. The Automatic Mode block always uses actionVariant: "automatic".

SettingIDTypeDefaultDescription
Autocart Modalaction_variantselect"button"Choose how autocart should behave: "automatic" (triggers immediately) or "button" (requires user click).

Styling

SettingIDTypeDefaultDescription
Button custom CSScustom_stylestextarea#ac-submit-button { }Custom CSS for the trigger button. Target the #ac-submit-button selector.
Dialog custom CSScustom_dialog_stylestextarea#ac-dialog { }Custom CSS for the dialog/modal. Target the #ac-dialog selector.

UI Labels

SettingIDTypeDefaultDescription
Button Labelbutton_labeltext"Open Autocart"Text on the trigger button (button mode only).
Modal titlemodal_titletext"Autocart Picker"Title displayed at the top of the gift picker modal.
Modal subtitlemodal_subtitletext"Select which product you desire to receive"Subtitle displayed below the modal title.
Next button labelnext_button_labeltext"Next"Label for the "Next" navigation button in multi-step modals.
Back button labelback_button_labeltext"Back"Label for the "Back" navigation button.
Confirm button labelconfirm_button_labeltext"Confirm"Label for the final confirmation button.
Deny button labeldeny_button_labeltext"I don't want these gifts"Label for the "decline" button when modal selector is enabled.
Close button labelclose_button_labeltext"Close"Label for the close button.
Product labelvariant_labeltext"Variants"Label shown above the variant selector.
Product descriptionvariant_descriptiontext"Select the variant of the product."Description text for the variant selector.
Product select buttonvariant_select_buttontext"Select"Button label when only one variant is available (replaces dropdown).
Product variant placeholdervariant_select_placeholdertext"No variant selected"Placeholder text in the variant dropdown.
Total products corner labelcorner_labeltext"Gifts"Label shown in the corner badge indicating total gift count.
Confirm Modal titleconfirm_modal_titletext"Products to add"Title of the confirmation modal (automatic mode).
Confirm Modal subtitleconfirm_modal_subtitletext"The following products are going to be added to your cart, accept or refuse."Description in the confirmation modal.

Toast Notifications

SettingIDTypeDefaultDescription
Loading toast titleloading_toast_titletext"Updating cart..."Message shown while cart is being updated.
Update toast titleupdate_toast_titletext"Cart has been updated."Title of the toast shown after cart update completes.
Update toast descriptionupdate_toast_descriptiontext"Your cart is out of date. Reload to reflect the changes."Description shown when manual reload is needed.

Behavior

SettingIDTypeDefaultDescription
Manual reloadmanual_relaodcheckboxfalseWhen enabled, shows a reload prompt instead of automatically refreshing the page after cart updates.
Discount codes to excludediscount_codes_to_excludetext(empty)Comma-separated list of discount codes. When any of these codes are applied, AutoCart rules are skipped.
DebugdebugcheckboxfalseWhen enabled, logs all automation evaluations and conditions to the browser console.

Advanced

SettingIDTypeDescription
Custom settingscustom_settingstextareaAdvanced settings passed as additionalSettings. See Custom Settings for the full reference.

Usage Example

The custom_settings field accepts key-value pairs formatted as JavaScript object properties:

manualOpen: true, showPrice: true, ignorePages: ["/pages/about", "/pages/faq"]

These values are injected directly into window.autoCartConfig.additionalSettings.

On this page