Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created September 15, 2020 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/75ddf834f0d7f6618ae18b5dcbafc64d to your computer and use it in GitHub Desktop.
Save Pebblo/75ddf834f0d7f6618ae18b5dcbafc64d to your computer and use it in GitHub Desktop.
Example of how to remove the PDF icon and use a custom URL for the Receipt button.
<?php
/** @var EE_Transaction $transaction */
/** @var boolean $revisit */
/** @var string $order_conf_desc */
do_action('AHEE__thank_you_page_overview_template__top', $transaction);
?>
<div id="espresso-thank-you-page-overview-dv" class="width-100">
<?php if (! $revisit) : ?>
<div class="ee-attention">
<div class="extra-padding-sides">
<?php echo apply_filters(
'FHEE__thank_you_page_overview_template__order_conf_desc',
sprintf(
$order_conf_desc,
'<h3 class="">',
'</h3>',
'<br />'
)
);
$my_custom_url = 'https://example.com';
if (! empty($my_custom_url)) : ?>
<br/>
<div class="jst-rght">
<a class="ee-button ee-roundish indented-text big-text"
href="<?php echo $my_custom_url; ?>">
<?php
echo apply_filters(
'FHEE__thank_you_page_overview_template__order_conf_button_text',
__('View Full Order Confirmation Receipt', 'event_espresso')
);
?></a>
</div>
<?php endif; ?>
</div>
</div>
<br/>
<?php endif; ?>
<br/>
<?php do_action('AHEE__thank_you_page_overview_template__content', $transaction); ?>
</div>
<!-- end of espresso-thank-you-page-overview-dv -->
<?php do_action('AHEE__thank_you_page_overview_template__bottom', $transaction); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment