We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Show product Category info in Cartthrob Order Notifications emails

How Do I?

IC360 (Oliver Cannell)'s avatar
IC360 (Oliver Cannell)
248 posts
3 years ago
IC360 (Oliver Cannell)'s avatar IC360 (Oliver Cannell)

For anyone else who’s been struggling with displaying an Entry’s Category data, in Cartthrob’s order notification emails… here’s the solution I’ve found that works.

Order Notification Template
Where you list the items in he order:

{order_items}
       {item:title}
       {embed="notifications/new-order-customer-embed" item_entry_id="{item:entry_id}"}
{/order_items}

Embed
This retrieves any of that item’s Category info you need (standard or custom Category fields):

{exp:channel:entries channel="products" entry_id="{embed:item_entry_id}" dynamic="no"}
       {categories}
              {category_name}
       {/categories}
{/exp:channel:entries}

Hope this helps.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.