Remove I agree with the terms and condition

Solved
pranto_90
Not applicable
2 0 0

How can I remove the I agree with the terms and conditions on Shopify- "shopping cart"- check box.....Google don't allow this, so i need to remove it. Please help me.

Website url : https://hkmart.co.nz/

Current theme

Kalles version 2.5.0

 

 

Screenshot - 2023-06-03T085952.197.png

 

 

 

 

 

Accepted Solution (1)
Moeed
Shopify Partner
2319 584 700

This is an accepted solution.

Hey @pranto_90 

I apologize for the confusion. It seems that removing the checkbox code alone may not be sufficient to bypass the terms and conditions agreement requirement. To completely remove the requirement from the checkout process in Shopify, you'll need to modify the theme code further. Here's an alternative method you can try:

 

  • Access the theme code editor: Follow the steps mentioned earlier to access the theme code editor for the Kalles theme in your Shopify admin.
  • Locate the cart form template: Look for the template file that controls the cart form. The filename may vary, but it's typically something like cart-template.liquid, cart.liquid, or similar.
  • Find the cart form code: Within the cart form template, search for the code that starts with {% form 'cart' %} or similar. This code represents the beginning of the cart form.
  • Remove the terms and conditions code block: Look for a code block within the cart form that includes the terms and conditions checkbox. It may resemble the following:
{% if settings.cart_agree_terms %}
  <div class="checkbox">
    <input type="checkbox" id="cart-terms" name="cart-terms" value="1" required>
    <label for="cart-terms">{{ 'cart.general.terms_of_service' | t }}</label>
  </div>
{% endif %}

Remove this entire code block to eliminate the terms and conditions checkbox requirement.

  • Save the changes: Once you have removed the code block, click on the "Save" button to save the modified theme.
  • Test the checkout process: Proceed to the checkout process on your live website to confirm that the terms and conditions agreement requirement is no longer enforced.

If after following these steps you are still encountering issues or the terms and conditions requirement remains, it's possible that the requirement is being enforced by another section of the theme or a third-party app. In that case, you may need to reach out to the theme developer or Shopify support for further assistance in disabling the terms and conditions agreement requirement.

 

Please keep in mind that modifying the theme code can have potential implications, and it's always recommended to create a backup or work with a professional Shopify developer to ensure the desired changes are implemented correctly.

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications

- Expert in Shopify SEO optimization for higher search rankings.


- Your Coffee Tip , my code - a perfect blend! ❤️

View solution in original post

Replies 4 (4)
Moeed
Shopify Partner
2319 584 700

Hey @pranto_90 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag.

 

<style>
p.pr.db.mb__5.fs__12 {
    display: none;
}
</style>

 

Capture.JPG


If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications

- Expert in Shopify SEO optimization for higher search rankings.


- Your Coffee Tip , my code - a perfect blend! ❤️
pranto_90
Not applicable
2 0 0
Sorry but this is not working. Shows the line is removed but when I clicked
on checkout it shows 'you must agree with the terms and conditions of sales
to check out'.
Help me please.
Moeed
Shopify Partner
2319 584 700

This is an accepted solution.

Hey @pranto_90 

I apologize for the confusion. It seems that removing the checkbox code alone may not be sufficient to bypass the terms and conditions agreement requirement. To completely remove the requirement from the checkout process in Shopify, you'll need to modify the theme code further. Here's an alternative method you can try:

 

  • Access the theme code editor: Follow the steps mentioned earlier to access the theme code editor for the Kalles theme in your Shopify admin.
  • Locate the cart form template: Look for the template file that controls the cart form. The filename may vary, but it's typically something like cart-template.liquid, cart.liquid, or similar.
  • Find the cart form code: Within the cart form template, search for the code that starts with {% form 'cart' %} or similar. This code represents the beginning of the cart form.
  • Remove the terms and conditions code block: Look for a code block within the cart form that includes the terms and conditions checkbox. It may resemble the following:
{% if settings.cart_agree_terms %}
  <div class="checkbox">
    <input type="checkbox" id="cart-terms" name="cart-terms" value="1" required>
    <label for="cart-terms">{{ 'cart.general.terms_of_service' | t }}</label>
  </div>
{% endif %}

Remove this entire code block to eliminate the terms and conditions checkbox requirement.

  • Save the changes: Once you have removed the code block, click on the "Save" button to save the modified theme.
  • Test the checkout process: Proceed to the checkout process on your live website to confirm that the terms and conditions agreement requirement is no longer enforced.

If after following these steps you are still encountering issues or the terms and conditions requirement remains, it's possible that the requirement is being enforced by another section of the theme or a third-party app. In that case, you may need to reach out to the theme developer or Shopify support for further assistance in disabling the terms and conditions agreement requirement.

 

Please keep in mind that modifying the theme code can have potential implications, and it's always recommended to create a backup or work with a professional Shopify developer to ensure the desired changes are implemented correctly.

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications

- Expert in Shopify SEO optimization for higher search rankings.


- Your Coffee Tip , my code - a perfect blend! ❤️
PageFly-Lucas
Pathfinder
110 28 27

Hi @pranto_90 

This is Lucas from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.css

Step 3: Paste the below code at bottom of the file -> Save

 

.mini_cart_wrap label {

    display: none !important;

}

 

Hope that my solution works for you.

Best regards,

Lucas | PageFly