Skip to main content
replaced http://civicrm.stackexchange.com/ with https://civicrm.stackexchange.com/
Source Link

It doesn't work because $lineItem is not set in the template, you'll have to loop thorough $contribtuions and use the API:

{foreach from=$contributions item=contribution}
{crmAPI var='result' entity='LineItem' action='get' contribution_id=$contribution.id} 
  {foreach from=$result.values item=lineitem} 
    {$lineitem.label} // Price field label
  {/foreach}
{/foreach}

Please note: this works fine generating ThankYou's with one contribution per individual.

Related topics for more details:

Let me know if that helps.

It doesn't work because $lineItem is not set in the template, you'll have to loop thorough $contribtuions and use the API:

{foreach from=$contributions item=contribution}
{crmAPI var='result' entity='LineItem' action='get' contribution_id=$contribution.id} 
  {foreach from=$result.values item=lineitem} 
    {$lineitem.label} // Price field label
  {/foreach}
{/foreach}

Please note: this works fine generating ThankYou's with one contribution per individual.

Related topics for more details:

Let me know if that helps.

It doesn't work because $lineItem is not set in the template, you'll have to loop thorough $contribtuions and use the API:

{foreach from=$contributions item=contribution}
{crmAPI var='result' entity='LineItem' action='get' contribution_id=$contribution.id} 
  {foreach from=$result.values item=lineitem} 
    {$lineitem.label} // Price field label
  {/foreach}
{/foreach}

Please note: this works fine generating ThankYou's with one contribution per individual.

Related topics for more details:

Let me know if that helps.

Source Link
Andrei
  • 2.3k
  • 1
  • 13
  • 17

It doesn't work because $lineItem is not set in the template, you'll have to loop thorough $contribtuions and use the API:

{foreach from=$contributions item=contribution}
{crmAPI var='result' entity='LineItem' action='get' contribution_id=$contribution.id} 
  {foreach from=$result.values item=lineitem} 
    {$lineitem.label} // Price field label
  {/foreach}
{/foreach}

Please note: this works fine generating ThankYou's with one contribution per individual.

Related topics for more details:

Let me know if that helps.