Add terms and conditions to checkout
Publish agreement documents and link them from the checkbox labels shoppers see at checkout. Work with your administrator and developer to confirm how your storefront defines its agreements before changing their configuration.
Before you begin
Section titled âBefore you beginâ- Obtain approved agreement text and the languages or store views that need it.
- Check that you can author and publish documents and update the storefrontâs placeholders sheet.
- Ask your developer whether the storefront uses its default agreement, custom agreements, or Admin-managed Commerce agreements, and which Admin settings apply.
How to enable and configure the Terms and Conditions
Section titled âHow to enable and configure the Terms and ConditionsâConfirm the applicable Admin configuration with your developer, publish the agreement documents, and update the labels for the agreement source your storefront uses.
Enable the component
Section titled âEnable the componentâIf your developer confirms that your checkout requires the Commerce Admin setting, ask an administrator to enable it as follows:
-
Log in to the Admin Panel.
-
On the Admin sidebar, go to Stores > Settings > Configuration.
-
In the left panel, expand Sales and choose Checkout.
-
Expand the Checkout Options section.
-
Set Enable Terms and Conditions to âYesâ.
-
Click Save Config.
See Terms and conditions for checkout documentation for more information on how to enable the terms and conditions using the Admin Panel.
Create the agreement document
Section titled âCreate the agreement documentâFor agreement labels that link to storefront documents, create the content in Document Authoring:
- Create an agreement document at the intended path, such as
/terms-and-conditionsor a locale-specific path. - Add the approved agreement text and any required links.
- Preview and publish the document.
- Open its published URL and confirm that shoppers can read it without an authoring login. Keep this URL for the checkbox label.
Configure the agreement checkbox label
Section titled âConfigure the agreement checkbox labelâUse the EDS placeholders or the Admin Panel instructions in the following tabs to configure the agreement checkbox label.
For the default storefront agreement, update the placeholders sheet using the existing label key and the following information. For additional agreements, ask your developer which label keys their configuration uses.
- An identifier: Itâs the reference that identifies the label translated
- A label: The text displayed next to the checkbox comes from the storefront placeholders for the shopperâs language. It accepts HTML links to your published agreement documents.
Similarly, the merchant can configure the translation for the validation error that appears when the user clicks the Place Order button and an agreement is not checked, using the âCheckout.TermsAndConditions.errorâ identifier.
Sample of placeholders sheet:
"Checkout.TermsAndConditions.label", "I have read, understand, and accept the <a href='/en/privacy-policy' target='_blank'>Terms of Use, Terms of Sales, Privacy Policy, and Return Policy</a>.""Checkout.TermsAndConditions.error", "Please accept the Terms and Conditions to continue."Replace the example wording with approved text and the example link with the published URL of your agreement document. Follow Change labels and placeholders to preview and publish the updated sheet.
These labels are used to render the TermsAndConditions container in the commerce-checkout.js block file.
Refer to the Adobe Commerce documentation for examples on how to use these labels.
Use this option only when your developer has configured checkout to use Admin-managed Commerce agreements. It does not automatically change the default code-defined agreement.
The merchant has to configure the checkbox label for each agreement using the Admin Panel. As mentioned before, the Admin Panel allows merchants to create configurations per store-view level as follows:
-
Log in to the Admin Panel.
-
On the Admin sidebar, go to Stores > Settings > Terms and Conditions.
-
In the upper-right corner, click the Add New Condition button.
-
Enter the following Terms and Conditions information:
Condition NameThe agreement identifierStatusAttribute to indicate if itâs available or not:- âEnabledâ; the agreement will be retrieved by the GraphQL API query
- âDisabledâ; the agreement wonât be retrieved by the GraphQL API query
AppliedSpecifies how the checkbox should appear:- âManuallyâ: the user is required to manually check and accept the conditions to place an order
- âAutomaticallyâ: the checkbox will appear checked by default, conditions are automatically accepted upon checkout
Store ViewDefines the scope at store view level for this agreement where you want these Terms and Conditions to be usedCheckbox TextIt contains directly the text to show; it accepts HTML with links to a specific page in EDS
-
Click Save Condition.
These entries are used to render the TermsAndConditions container in the commerce-checkout.js block file.
Refer to the Adobe Commerce documentation for examples of this feature.
See the Terms and conditions for checkout documentation to learn how to configure the terms and conditions using the Admin Panel.
Check the result
Section titled âCheck the resultâPreview checkout for each affected store view. Confirm that the intended agreement appears, its links open the published documents, and any required manual acceptance is enforced before an order can be placed. Use your teamâs test-order process rather than placing an unintended live order.