Skip to content

How do I preselect a promo code or tickets in embedded checkout?

Updated

Sometimes you know what the buyer wants before they click, like a "Get 4 tickets" button for a group deal or a sponsor's page with their discount. Preselecting sets those choices up, so checkout opens ready to go.

What can I preselect?

  • A promo code. It's applied when checkout opens, and the buyer sees it applied.

  • A ticket and how many. The buyer still checks the order and selects Continue.

  • A tracking link. The sale is credited to that link on your Links page.

Seat map events, hidden tickets, add-ons and name-your-price tickets are always left for the buyer to choose.

What's the easiest way to set it up?

Open your event and select Embed event (or go to Marketing › Embed). Select Add to site on Button, and under When a buyer clicks, pick a promo code, a ticket and how many. The Button code and the checkout link below it now carry your choices. The iFrame window has the same options under Checkout options.

The WordPress and Elementor code on the Embed page doesn't carry these choices. Add them to the shortcode yourself (see below), or set them in the Elementor widget.

To credit a tracking link as well, add ref yourself, as shown below.

Yes. Add them to the end of your checkout address. Choices on the link work everywhere, even on a site where our script can't load.

Add this

What it does

promo-code=GROUP

Applies the promo code GROUP

ticket=TICKET_ID

Picks that ticket

qty=4

Picks 4 of that ticket

ref=TRACKING_CODE

Credits the sale to that tracking link

Start with ?, put & between each one, and leave out what you don't need.

<script src="https://checkout.eventrise.com/embed.js" async></script>

<a href="https://checkout.eventrise.com/checkout/your-event-slug?promo-code=GROUP&ticket=TICKET_ID&qty=4" data-eventrise-checkout>Get 4 tickets</a>

Can I set them on a button instead?

Yes, with the matching attributes. This works on any element, as long as our script is on the page.

<button type="button"
  data-eventrise-checkout="your-event-slug"
  data-eventrise-promo="GROUP"
  data-eventrise-ticket="TICKET_ID"
  data-eventrise-quantity="4"
  data-eventrise-ref="TRACKING_CODE">Get 4 tickets</button>

Where do I find a ticket ID or tracking code?

When you pick a ticket in the Button or iFrame window, the code comes with its ID filled in. Your tracking link's code is the last part of its short link on Marketing › Links. New to tracking links? See How do I track where my ticket sales come from?

How do I do this in WordPress?

Add promo, ticket and quantity to the Get Tickets shortcode. The inline checkout shortcode takes promo but can't pick tickets. See How do I sell tickets from my WordPress or Elementor site?

More in Integrations & developers

Still need help?

Our team answers every message, and we're organizers too. Send us a message or email support@eventrise.com.