We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Remove I agree with the terms and condition

Solved

Remove I agree with the terms and condition

pranto_90
Visitor
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
7764 2082 2568

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 Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 8 (8)

Moeed
Shopify Partner
7764 2082 2568

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 Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


pranto_90
Visitor
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
7764 2082 2568

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 Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Houston23
Visitor
2 0 0

Hi @Moeed,

I am using Retina theme, does the steps still the same? Thanks in advance.

Moeed
Shopify Partner
7764 2082 2568

Hey @Houston23 

 

Share your store URL and Password if enabled.

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Houston23
Visitor
2 0 0

Here you go:

 

https://sportenics.com/

PageFly-Lucas
Pathfinder
110 28 29

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

banned

USREDA
Visitor
1 0 0

USREDA_0-1732163538929.png

Access the theme code editor

then go to main-cart.liquid and delete this code from here to this end ()

 

-----------------------------------------------

{%- when 'tax' -%}
{%- capture taxes_shipping_checkout -%}{%- assign page_url = settings.link_ship -%}
{%- if se_stts.show_discount -%}
{%- if cart.taxes_included and page_url != blank -%}
{{ 'cart.general.taxes_included_discounts_and_shipping_policy_html' | t: link: page_url }}
{%- elsif cart.taxes_included -%}
{{ 'cart.general.taxes_included_discounts_but_shipping_at_checkout' | t }}
{%- elsif page_url != blank -%}
{{ 'cart.general.taxes_discounts_and_shipping_policy_at_checkout_html' | t: link: page_url }}
{%- else -%}
{{ 'cart.general.taxes_discounts_and_shipping_at_checkout' | t }}
{%- endif -%}
{%- else -%}
{%- if cart.taxes_included and page_url != blank -%}
{{ 'cart.general.taxes_included_and_shipping_policy_html' | t: link: page_url }}
{%- elsif cart.taxes_included -%}
{{ 'cart.general.taxes_included_but_shipping_at_checkout' | t }}
{%- elsif page_url != blank -%}
{{ 'cart.general.taxes_and_shipping_policy_at_checkout_html' | t: link: page_url }}
{%- else -%}
{{ 'cart.general.taxes_and_shipping_at_checkout' | t }}
{%- endif -%}
{%- endif -%}
{%- endcapture -%}
<p class="t4s-cart__tax">{{ taxes_shipping_checkout }}</p>

{%- when 'agree' -%}
{%- capture terms_and_conditions -%}{%- assign page_url = settings.link_conditions -%}
{%- if page_url != blank -%}
{{ 'cart.general.terms_and_conditions_html' | t: link: page_url }}
{%- else -%}
{{ 'cart.general.terms_and_conditions' | t }}
{%- endif -%}
{%- endcapture -%}

<p class="t4s-pr t4s-cart__agree"><input type="checkbox" id="cart_agree" data-agree-checkbox name="{{ ck_lumise }}"><label for="cart_agree">{{ terms_and_conditions }}</label><svg class="t4s-dn t4s-icon_checked"><use href="#icon-cart-selected"/></svg></p>

<div class="t4s-clearfix"></div>

-----------------------------------------------