A Blueprint to Add Magento 2 Terms And Conditions Checkbox
A “Terms and Conditions” is an agreement that imposes a rule for your users to agree and follow when using your product or service. It may contain the guidelines for using your product, what reaction occurs if the users abuse your product, etc.
Reasons to add terms and conditions in Magento 2 store:
- Own your content
- Prevent exploitation
- Limit the accountability
- Set the law
So it is necessary to add Magento 2 terms and conditions checkbox that is offered as a default feature.
When you add this checkbox, the customers are required to agree with the terms and conditions of your store before the order is placed.
Steps to add Magento 2 Terms And Conditions Checkbox:
- Login to admin panel
- Go to Stores > Configuration
- Under Sales, select Checkout
- Expand the Checkout Options
- Check if the field “Enable Onepage Checkout” is set to YES
- Set “E
- Go to Stores > Terms and Conditions”
- Click “Add New Condition” button
- Fill the below fields:
- Condition Name – Enter the name of the condition for internal reference
- Status – Set Status to “Enabled”
- Show Content as – Select either Text or HTML to display terms and conditions content as unformatted or formatted respectively.
- Applied – Select either automatically or manually to apply the terms and conditions.
- Store View – Select the store view where the Terms and Conditions are to be used.
- Checkbox Text – Enter the text for the Terms and Conditions link.
- Content – Enter the entire terms and conditions of the sale
- Enter the Content Height in pixels to decide the height of the text box where the terms and conditions statement appears during checkout.
- Click Save Condition.
Follow these steps to show the terms and conditions checkbox on the checkout page.
If you have any doubts about the topic, please use the Comments section below to mention them. I’d be happy to help.
Also Read: How to Configure Zero Subtotal Checkout in Magento 2
Do share the post with the Magento community via social media.
Thank you.
Sanjay Jethva
Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe.
His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.
8 Comments
Is Magento Store Terms and Conditions Values anywhere in the table.
If we are using react frontend and graphqls to place an order how can we use Terms and Conditions on Checkout Page.
Hii Sonam,
You can find that values from table ‘checkout_agreement’
and use it using react or graphql.
Great tutorial! Does it saves in a table that that the client checked the box? If so, do you know which table? Thank you!
Hello Marcos,
Terms and conditions checkbox is required option.
So, the user needs to select it compulsorily.
Plus, it does not get stored in any table.
Thank You
Ok, thanks for the reply, really appreciate it.
Hello Marcos,
You’re most welcome.
I’m glad to help
Thank You
What is the difference in applying automatically or manually?
Hello,
Check the screenshots below to understand the difference:
Manually – https://drops.meetanshi.com/BBCaa5
Automatically – https://drops.meetanshi.com/ZNBuPL
In manually, the user has to manually tick the checkbox of terms and conditions, while in automatic, the terms and conditions are automatically applied.
Thank you.