---
updatedAt: 2025-11-13T14:12:17.000Z
agentTools:
  siteIndex: https://docs.affirm.com/llms.txt
  projectIndex: https://docs.affirm.com/platforms/llms.txt
---

# Add Affirm promotional messaging on SAP Commerce

Bring awareness to Affirm's flexible payment options at every phase in the shopping journey—increasing conversion and average order value for your business.

<HTMLBlock>{`
<style>
  .dropdown-menu {
    font-family: Arial, sans-serif;
    max-width: 250px;
    margin-left: auto; /* Align to the right */
  	margin-right: 0; /* Ensure it's flush to the right */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #4A4AF4;
    overflow: hidden; /* Ensure the container grows with content */
  }

  .dropdown-item {
    margin-bottom: 10px;
  }

  .dropdown-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
  }

  .dropdown-toggle:hover {
    background: #f0f0f0;
  }

  .dropdown-content {
    display: none;
    margin-top: 5px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  .dropdown-item.open .dropdown-content {
    display: block;
  }

  .flag-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }

  .product-item {
    margin-bottom: 5px;
  }

  .product-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
  
  .country-title {
    font-family: Arial, sans-serif;
    font-size:20px;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
  } 

</style>
  <div class="dropdown-menu">
    <p class="country-title" alt="Countries where this product is available">Country Availability</p>

    <div class="dropdown-item">
      <button class="dropdown-toggle" onclick="toggleDropdown(event)" alt="Drop down menu displaying the available countries for this product">
        <b>Country List</b> ⬇️
      </button>
      <div class="dropdown-content">
        <div class="product-item">
          <img src="https://files.readme.io/a4c8b3d6596d943e2b93c82cb1d432a2edaf6998667835c2e97ef4a31d460c7e-us-circle-01.png" alt="USA" class="flag-icon">
          USA
        </div>
      </div>
    </div>

  </div>
`}</HTMLBlock>

## Configure Affirm promotional messaging

Affirm promotional messaging components, pay-over-time messaging and educational modals, show customers how they can use Affirm to finance their purchases. Properly placed promotional messaging helps drive increased AOV and conversion.

1. Access the Affirm configuration and go to **WCMS > Website > ADMINISTRATION > Affirm Config Container for CMSSite**.
2. Double click on the **Affirm Page Config**.

<Image alt="Affirm Page Config panel with the field &#x22;List of Affirm Page Config&#x22; circled" align="center" src="https://files.readme.io/04dde5cbd13ff1a73a2a86362f23b899877197e872f2a7190234bdc281e8201a-AFFIRMCONFIG100_Screenshot_with_blurs.svg" />

3. To ensure Affirm promotional messaging is enabled, set **Affirm Promotion Flag** to **True** and click **Save**. Click on a value under **List of Affirm Promotion Message** for additional configuration.

![Administeation section on the page](https://files.readme.io/1b418eb-hybris_affirm101.png "hybris_affirm101.png")

4. Scroll down to the administration settings and click **Save** to save any edits.

![](https://files.readme.io/cae1214-hybris_affirm_promo101.png "hybris_affirm_promo101.png")

|                                           |                                                                                                                                 |
| :---------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------ |
| Affirm Promotion Message Code             | Promotion message code for these settings (should not be edited)                                                                |
| Affirm Promotion Page Type                | Values are "CATEGORY", "PDP" (for product page), and "CART" page. This value refers to the page that this configuration is for. |
| AffirmPromoMessage.affirmPromotionMessage | Edit this class to update attributes for Affirm's promotional messaging.                                                        |

## Optional: Configure price threshold for Affirm

> 📘 Note
>
> It is possible to restrict Affirm as a payment option on the checkout page based on minimum or maximum cart totals. If you want Affirm to be displayed for all cart thresholds, you can skip this step.

1. To edit /view thresholds login to **Backoffice** with your admin credentials and go to **Price Settings -> Payment Modes** and select **Affirm**.
2. Select the **Administration** tab and scroll down to **Thresholds** settings.

![Price Settings, Payment Modes](https://files.readme.io/68bad32-hybris_threshold_settings.png "hybris_threshold_settings.png")

3. To edit threshold, select the `PaymentThreshold` object from the list. Select **True** to set the minimum threshold and `False` to set the maximum threshold. Set the threshold in the **Threshold amount** field.

![Threshold amount field](https://files.readme.io/d78455f-hybris_payment_threshhold.png "hybris_payment_threshhold.png")

# Sibling pages

* [Install and Configure Affirm on SAP Commerce](https://docs.affirm.com/platforms/docs/hybris-install-and-configure-affirm.md)