1

I have an online membership form which takes an alternate (custom location type) address in a profile. On the receipts, these fields are always empty whether the user has filled them out or not (although the address does seem to populate in their contact record with the correct location type):

Receipt without address

Is there a trick to this, or is this a bug in the receipt template? I looked in the Message Template area and didn't see anything that was obviously awry, especially since the field names (customName) seem to show up just fine:

 {if $customPre}
  <tr>
   <th {$headerStyle}>
    {$customPre_grouptitle}
   </th>
  </tr>
  {foreach from=$customPre item=customValue key=customName}
   {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
    <tr>
     <td {$labelStyle}>
      {$customName}
     </td>
     <td {$valueStyle}>
      {$customValue}
     </td>
    </tr>
   {/if}
  {/foreach}
 {/if}

I've just updated to CiviCRM 5.8.2 to make sure it's not due to a bug that has been recently fixed.

PHP 7.0.33 CiviCRM 5.8.2 Drupal 7.60

  • Are you saying it is not a case that it is printing the Primary Address? – petednz - fuzion Jan 6 '19 at 22:15
  • @petednz-fuzion The billing address gets included, but the "Delivery" address (custom location type and not necessarily a primary address, collected in a standard CiviCRM profile/form) is always blank on the receipt. I just checked and it looks like the billing address ends up marked as the primary address after submitting the Contrib. form. – Laryn - CEDC.org Jan 7 '19 at 17:53
  • does the "Yes, please" field get filled in on the receipt if data was entered? – petednz - fuzion Jan 7 '19 at 19:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.