Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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
Solved! Go to the solution
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:
{% 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.
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
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>
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
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:
{% 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.
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
Hi @Moeed,
I am using Retina theme, does the steps still the same? Thanks in advance.
Hey @Houston23
Share your store URL and Password if enabled.
Best Regards,
Moeed
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
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>
-----------------------------------------------