Settings Tag

{exp:store:settings setting="stripe_publishable_key"}

The Settings Tag allows you to retrieve a specific Store setting or payment method setting by name. This is useful for exposing configuration values (such as API keys) to your templates, or for custom integrations.

Settings Tag Parameters

  • setting (required): The name of the setting to retrieve. For example, stripe_publishable_key.

Behavior

  • If the setting parameter is stripe_publishable_key, the tag will look for the Stripe PaymentIntents method and return its publishable key.
  • For other values, the tag will search all enabled payment methods for a matching setting.
  • If the setting is not found in payment methods, it will fall back to the Store config items.

Settings Tag Example

{exp:store:settings setting="stripe_publishable_key"}

{exp:store:settings setting="your_custom_setting"}