To show a banner on some Altru web forms but not others, use a checkout flow. A checkout flow targets web forms by a keyword in their title (for example donation), and runs a short piece of code on the checkout page, cart page or confirmation page. The banner code adds your image to the top of the page at full width.
Before you start: checkout flows need to be connected to Altru. See how to enable checkout flows in Altru with the Page Designer. You also need the banner image, sized 1140 x 250, hosted somewhere that gives you a direct image URL (your website’s content management system, such as WordPress, or a service like Google Drive), plus the banner code snippet from Social Good Software.
Steps
- Copy the image URL (0:55) and keep it handy in a text file.
- Create a new checkout flow (1:48) in the checkout flows tool.
- Set the match rule (2:00). Choose contains, exact value or does not contain, and enter the keyword, here donation (2:27).
- Pick the pages (2:31). The demo uses the checkout page and the cart page. Add a note such as Banner image for donations and click Next.
- Add the code for the checkout page (3:12). Paste the banner code and replace the URL with yours, keeping the single quotes. Click Next.
- Skip the dynamic step (4:06). The checkout page dynamic code runs on every Altru AJAX request and isn’t needed for a banner.
- Repeat for the cart page (4:16), then skip cart page dynamic and the confirmation page.
- Enable and create (4:43). Turn on the flow, click Next, then Create checkout flow.
Common questions
What size should the banner be?
1140 x 250 pixels.
Can I show the banner on every form except donations?
Yes. Use does not contain with the keyword, and the flow runs on every web form whose title doesn’t include it (2:06).
What’s the difference between the checkout, cart and confirmation pages?
The checkout page comes one step before the cart page, the cart page shows the items in the guest’s cart, and the confirmation page is what they see once payment is posted.
What else can checkout flows do?
See how to create a checkout flow, and Checkouts for the full on-brand checkout.
Video transcript
Hey, this is Rick with Social Good Software. In this short demo I’ll show you how to add a header image to specific web forms on your Altru checkout pages. We have a handy tool called the checkout flows tool that lets you target specific web forms to do specific things. In our case, we want to add a banner to our donation web form and not to any other form. So we’ll create a checkout flow that targets just the donation forms to show this image.
If you haven’t created the image already, this is the size we need: 1140 by 250. If you haven’t created this asset, go create it now and come back to this video once you have it. In my example I already have it, so I’ll copy the image address, because we’ll need it shortly. I’ll paste it into a text file so I don’t forget it. Your URL will be different. You might wonder where I got it: I went to my image and copied it. This URL points to the actual image, which is hosted by our content management system, WordPress in our case. You might use a different content management system, like Wix or Squarespace, or even Google Drive to store images. As long as you can get an image URL, you can use this process to inject the image into the specific web form you want to show the banner on.
Now that we have our URL, we go over to the checkout flows tool. As you can see, I already have some checkout flows. I’ll create a new one for donation. It can say contains, exact value or does not contain. You can go the other way around: if you want to run this flow every time there isn’t a donation, it adds the banner to all the web forms except the donation ones. In our case we say “contains”: if it has donation anywhere in the title, we want to show this. So we type in our keyword, donation.
Now we have the option to run this at three different stages: the checkout page, the cart page and the confirmation page. The checkout page is one step before the cart page. The cart page is where they see their cart and the items in it. And the confirmation page is what they see once their payment has been posted. In our case we only care about the checkout page and the cart page, so I’ll enable those. If you wanted to show it on the confirmation page too, you can. I’ll give myself a note, “Banner image for donations”, and click Next.
Here’s where you add the actual code. We already created this code for you; it should be available below this video if you want to download it. It takes the URL, which we’ll give it in a second, and prepends an image tag to the first container in the main content section. I’ll copy the code, paste it in here, then copy my image URL and paste it in. It grabs the image URL, adds it to the page, and makes it full width at 100 percent. I click Next.
The checkout page dynamic step runs every time Altru does an AJAX request. We don’t need it here, so we click Next. Now the cart page: same as before, copy the code, paste it in, grab our URL, and remember to keep the single quotes. Paste that in and click Next. For the cart page dynamic, same as before, we don’t need anything for the AJAX request. And we’re not showing it on the confirmation page, so we skip that.
Finally, enable this checkout flow, which appends the image on the checkout page and the cart page. I click Next and Create checkout flow, and that creates your checkout flow. At this point, if you have Altru connected with the checkout flows tool, you’ll start seeing that banner on any page that has donation in its title.
That’s going to do it for me. Once again, this is Rick from Social Good Software. If something wasn’t clear or you have more questions, go to socialgoodsoftware.com/feedback. We’re always happy to help.
