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

Field

field is a legacy helper tag that returns a single field value from a channel entry.

This is an immediate-execution single tag.

See also:

Parameters

entry_id

Entry ID to read.

entry_id="123"

field

Field short name/key to return from that entry.

field="product_download_url"

Behavior and Constraints

  1. Loads the target entry from entry_id.
  2. Returns element(field, entry) from the loaded entry array.
  3. Output is raw field value.

Notes:

  • This helper does not include fieldtype-specific formatting logic.
  • If entry/field is missing, output is empty.
  • Legacy helper retained for compatibility.

Examples

Output one entry field value:

{exp:cartthrob:field entry_id="123" field="title"}

Resolve a download field value:

{exp:cartthrob:field entry_id="{entry_id}" field="product_download_url"}