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

Purchased Entry IDs (tag pair)

purchased_entry_ids returns purchased item entry IDs as tag-pair rows.

This is a legacy purchased-history helper.

See also:

Parameters

This implementation does not define tag-specific parameters.

Variables

  • entry_id

Behavior and Constraints

  1. Loads purchased entry IDs from purchased_items_model->purchased_entry_ids().
  2. Converts each ID into a parsed row with entry_id.
  3. Returns parsed tag-pair output.

Examples

Output purchased entry IDs:

{exp:cartthrob:purchased_entry_ids}
    {entry_id}<br>
{/exp:cartthrob:purchased_entry_ids}

Use purchased IDs to fetch entry titles:

{exp:cartthrob:purchased_entry_ids}
    {exp:channel:entries entry_id="{entry_id}" dynamic="no"}
        <p>{title}</p>
    {/exp:channel:entries}
{/exp:cartthrob:purchased_entry_ids}