CartThrob 9 documentation for ExpressionEngine commerce teams Visit CartThrob.com
CartThrob.com

Template Tags: Utilities

Utility tags provide helper operations for redirects, debugging, conversion, formatting, encryption, and runtime configuration.

Actions

  • cart_empty_redirect Redirect the visitor when the current cart is empty (for example to a catalog/start page).
  • field Output a single field value from a specified entry (entry_id + field) using a legacy helper.

Bug Testing

  • debug_info Output CartThrob session/cart debug data. This only returns output when CartThrob debug mode is enabled in settings.

Conversion

  • view_setting Output configured CartThrob setting values and selected mapped values (also used on Checkout page).
  • set_config Set CartThrob runtime config values for the active visitor/session and redirect back to the current URL.
  • plugin_settings Output settings values for an active/selected payment, shipping, or tax plugin.

Additional Utility Tags

  • https_redirect Enforce HTTPS for the current request and optionally adjust runtime site_url handling.
  • set_gateway Save selected gateway from request input (when gateway selection is enabled) and redirect.