Template Tags: Purchase History
Purchase history tags query completed orders and purchased line items. Use them to build order history pages, product reports, “customers also purchased” recommendations, and member account views of past purchases.
These tags read from saved order data rather than the active cart session. They are commonly paired with checkout and cart tags on account and confirmation templates.
Line Item and Order Queries
Use these tags to iterate purchased items, summarize order totals, and retrieve entry IDs from historical orders.
- order_items Output purchased line items from one or more orders.
- order_totals Summarize totals across matching orders.
- purchased_entry_ids Return entry IDs for products purchased in past orders.
- get_items_in_range Query purchased items within a date range.
Product Recommendations and Purchase Checks
Use these tags on product detail pages, account areas, and merchandising blocks.
- also_purchased Suggest products frequently purchased alongside a given entry.
- most_purchased List best-selling products from order history.
- is_purchased_item Check whether the current member has purchased a specific entry.
Related Tags
Purchase history tags often appear alongside:
- submitted_order_info Display the order just completed at checkout.
- member_downloads List downloadable products for the logged-in member.
- Order Items FieldType Render saved order line items from a channel custom field.