Support

Home Forums Event Espresso Premium Customising the check out page?

Customising the check out page?

Posted: May 23, 2016 at 8:35 am

Viewing 1 reply thread


westonemanor

May 23, 2016 at 8:35 am

Hi,

I am trying to add the McAfee seal on every page on the checkout but I am unsure how to do this?

This is simply an image.

In addition, McAfee offers Identity Protection so it needs to send customers who already booked an event an email.

McAfee says to put this code on the confirmation page:

<script src="https://cdn.ywxi.net/js/conversion.js"
  class="mcafeesecure-track-conversion"
  data-type="purchase"
  data-orderid="1234"
  data-email="john_doe@domain.com"
  data-firstname="John"
  data-lastname="Doe"
  data-country="US"
  ></script>

Would this successfully capture the required data?

Thanks


Tony

  • Support Staff

May 24, 2016 at 5:04 am

Hi there,

To output the image you can use the ‘AHEE__SPCO__reg_form_footer’ action hook. THat is ran after each step within the single page checkout (SPCO).

Something like this:

function tw_ee_output_after_SPCO() {

	echo "Output details here";

}
add_action( 'AHEE__SPCO__reg_form_footer', 'tw_ee_output_after_SPCO' );

Will just output ‘Output details here’ on SPCO but you can swap that out to output your image.

Would this successfully capture the required data?

All of the details are hardcoded into that script, so its not going to capture the details of the registrant.

There are multiple hooks available within EE that will allow you to add that script to the thank you page, for example:

AHEE__thank_you_page_overview_template__top

That hook is passed the $transaction object which means from there you can pull in the registration details and out the script which contains the correct data for the primary registrant.

Viewing 1 reply thread

The support post ‘Customising the check out page?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso