Afterpay On-Site Messaging App

Add and style the messaging for Shopify 2.0 Themes

This page shows you how to do the following:

❗️

This information is for Shopify 2.0 Themes

The instructions below apply to Shopify 2.0 Themes only.

Install the Afterpay On-site Messaging App

Do the following:

  1. Click the link to download and install the Afterpay On-Site Messaging app from the Shopify App Store.

Add the Messaging to the Product Pages

  1. Once installed, you need to open the Afterpay On-Site Messaging app. To do this, go to Shopify Admin. Then go to Apps and select Afterpay On-Site Messaging.
670
  1. From the app's Add Messaging section, click Open Theme Editor
894
  1. From the Theme editor, click the dropdown at the top of the editor, then click Products.
345
  1. Select the Default product template, or the Product template that needs messaging.
347

📘

How Messaging Works

Messaging works on Product Page templates. So if you have a single Product Page template, you add messaging to that template. If you have several different Product Page templates, then you'll need to add messaging to each one separately.

  1. Move your mouse over the Product price, a + symbol appears.
363
  1. Move your mouse over the + symbol until the Add Block button appears.
341
  1. Click Add block and then select Payments Messaging - Afterpay On-Site Messaging.
359

The Product page should now look like this:

344
  1. Click Save in the top right corner.
276

Add the Messaging to the Cart Page

You are now ready to add some messaging to the Cart page. Do the following:

  1. For an accurate Cart page preview, click Add to cart
358
  1. Next, to open the Cart page, click the dropdown at the top of the editor and click Cart.
347
  1. Move the mouse over the Subtotal above the Checkout button. A + symbol appears.
350
  1. Move the mouse over the + symbol, an Add block button appears.
350
  1. Click Add Block and select Afterpay On-Site Messaging
352
  1. If the text alignment is wrong, adjust the text alignment. To do this, click the Text Alignment dropdown and select a new alignment option.
719

Mobile view

You can set a separate alignment for display on mobile devices.

Do the following:

  1. To check the appearance on a mobile device, click the monitor icon and then click Mobile at the top right of the editor.
227
  1. Scroll down to Mobile View settings, make any changes you need.

  2. Click Save in the top right corner.

  3. Verify your messaging and alignment on your live store.

You can adjust various aspects of the page for mobile devices. See the Mobile View Adjustments section below for more details.

Adjust the Style of Messaging

You can adjust many aspects of the styling. To do this:

  1. Select the Payments Messaging - Afterpay On-Site Messaging block on the Product page.
353

Alternatively you can select Payments Messaging - Afterpay On-Site Messaging from the side bar under Product information. See picture below:

265

Text Alignment

To adjust the text alignment:

  1. Click the Text Alignment dropdown and select a new alignment option.
699

Margins

To adjust the margins above and below the messaging:

  1. Enter a new value into the Margin Top field.

  2. Enter a new value into the Margin Bottom field.

Negative values are allowed.

707

Text Color

To adjust the text color:

  1. Click the Text Color color-picker and select the new text color.
707

Text Size

To adjust the text size:

  1. Click the Text Size dropdown and select a new text size option, extra small, small, medium and large.
699

Intro Text

To adjust the intro text:

  1. Click the Intro Text dropdown and select a new intro text option.
710

Show/hide "interest-free"

To show or hide the interest-free phrase:

  1. Enable or disable the Show "interest-free" checkbox.
695

The default value is enabled - the phrase interest-free appears to your customers. In the picture above, the checkbox is blank, so no interest-free message appears to your customers.

Bold Payment Amount

To show or hide the payment amount in bold:

  1. Enable or disable the Bold Payment Amount checkbox.
696

The default value is enabled - the payment amount is in bold. In the picture above, the checkbox is blank, so the payment amount does not appear in bold to your customers.

Show/hide "with"

The word with appears between the price and the Afterpay logo or badge. See the Logo Type below. To show or hide the word with:

  1. Enable or disable the Show "with" checkbox.
696

The default value is enabled - the word with appears between the price and the Afterpay logo or badge. In the picture above, the checkbox is blank, so the word with does not appear to your customers.

Logo Type

To set the logo type:

  1. Click the Logo Theme dropdown and select a new logo type.
708

Logo Theme

To set the theme of the logo:

  1. Click the Logo Theme dropdown and select the new logo theme you want.
710

Modal Link Style

When a customer clicks on the modal link, a pop-up window appears with more information about Afterpay. The default symbol for the modal link is a circled info icon ⓘ.

To change or hide the modal link:

  1. Click the Modal Link Style dropdown and select the new modal link option.
710

Modal Theme

The modal theme is the information the customer sees when they click the modal link. There are two options, mint and white. To adjust the modal theme:

  1. Click the Modal Theme dropdown and select a new modal theme option.
742

Outside Order Limits Messaging

The outside order limits messaging is a message displayed when the product price is outside the limits for Afterpay.

Currently the default for these limits are $1.00 - $2,000.00 for US, CA, AU & NZ.

To adjust the outside order limits messaging:

  1. Disable the Show Lower Limit checkbox to hide the lower limit.

  2. Enter a new amount in Minimum Order Limit to show the outside order limits messaging for products under this limit.

📘

Note

The Minimum Order Limit should match your Afterpay account. Remember this setting only affects the messaging and not whether customers can buy products at the checkout.

  1. Disable the Show Upper Limit checkbox to hide the upper limit.

  2. Enter a new amount in the Maximum Order Limit to show the upper limit for products over this limit.

📘

Note

The Maximum Order Limit should match your Afterpay account. Remember this setting only affects the messaging and not whether customers can buy products at the checkout.

Disable Show If Outside Limits to hide the outside order limits messaging completely.

734

Mobile view adjustments

You can set the styling separately for customers on mobile devices. To set the styling for mobile devices, do the following:

  1. Click the monitor icon near the Save button.

  2. Click the Mobile button that appears.

213

Breakpoint

To adjust the screen width that defines the mobile view:

  1. In the Breakpoint field, enter a new number in pixels.
736

Text Alignment

To adjust the text alignment for a mobile view:

  1. Click the Text Alignment dropdown and select a new alignment option.
736

Margins

To adjust the margins above and below the messaging on a mobile view:

  1. Enter a new number, this can be a negative number, into the Margin Top or Margin Bottom fields.
736

Footer Payment Icon

To place a payment icon on the footer (bottom) of the payment page, do the following:

  1. From your Shopify admin, go to Online Store and select Themes.
229
  1. Select the theme you want to edit, click the ... button to open the Actions menu, and then click Edit code.
897
  1. Open the Sections folder and click footer.liquid.
274

If your theme doesn't include this file, click theme.liquid in the Layout folder.

274
  1. Find the following code in the file:
604
  1. Replace line 324 in the example with the following two lines of code:
{% assign enabled_payment_types = afterpay | concat: shop.enabled_payment_types %}
{% for type in enabled_payment_types %}

Once you have made your replacement, the code should look like this:

730
  1. Click Save.

  2. Verify on your live store.

📘

Code language

The code examples above are in Liquid, which is Shopify's own code language.