Why is my checkout checkbox not functioning correctly?

Hi @muteebnasir ,

Please follow the below steps for developing the functionality.

1: From your Shopify admin, go to Online Store > Themes.

2: Find the theme you want to edit, and then click Actions > Edit code.

3: In the Layout directory, click theme.liquid.

4: Find the closing tag near the bottom of the file.

5: Above the closing tag, paste the following code:


6: Click Save.

After this, In the Templates directory, click cart.liquid.

1: Find the following code:

{% if additional_checkout_buttons %}
    {{ content_for_additional_checkout_buttons }}

  {% endif %}

2: When you find the code, wrap it in Liquid {% comment %} and {% endcomment %} tags. This will stop the code from being shown on your store, but will let you easily put it back if you want to change your new template later. Your code should look like this:

{% comment %}
  {% if additional_checkout_buttons %}
    {{ content_for_additional_checkout_buttons }}

  {% endif %}
  {% endcomment %}

3: Click Save.

Add the jquery file’s latest version to your theme.

1: In the Layout directory, click theme.liquid.

2: Within the element, find a script tag that references your theme’s jQuery source. The src attribute for the script tag contains a URL that includes /jquery/, followed by the version number. The tag looks something like this:


3: Click Save.

Let me know how it goes.

Thank you.