Solved

Terms and conditions checkbox not working (no popup) using Narrative theme.

laketko
Excursionist
13 1 2

Hey Shopify Team,


Followed this guide: https://community.shopify.com/c/Shopify-Design/Cart-Add-an-Agree-to-terms-and-conditions-checkbox/m-...


Got the checkbox to appear, but I can bypass it by not having to tick the box. There is no preventative pop-up

Could you help me out? Using the Narrative theme.

Thx a lot

Accepted Solution (1)
laketko
Excursionist
13 1 2

This is an accepted solution.

I found a solution:

 

the mentioned code above should be placed into custom.js file.

 

Thx!

View solution in original post

Replies 10 (10)

KetanKumar
Shopify Partner
36839 3635 11972

Hello, @laketko 

Welcome to the Shopify community!
Please share your site URL,
So I will check and provide a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
laketko
Excursionist
13 1 2

Hi KetanKumar,

 

https://montelinas.de

 

The site is still under construction, It is not a final version yet.

 

Thx for ur suggestions

 

Kind reagrds

KetanKumar
Shopify Partner
36839 3635 11972

@laketko 

Thanks url

but how can i check this issue ?

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
laketko
Excursionist
13 1 2

just try to add something into the cart: press button "Zu den Boxen" afterwards choose one of the boxes afterwards press "in den warenkorb legen" -> press cart symbol. U will see the cart with an box and below.

 

Anmerkung 2020-06-29 220745.png

 

thx in advance

KetanKumar
Shopify Partner
36839 3635 11972

@laketko 

Thanks for clearfication

sorry, but i can't see any popup code.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
laketko
Excursionist
13 1 2

according to the link provided above  I pasted the code into the theme.js file

 

$(document).ready(function() {
    $('body').on('click', '[name="checkout"], [name="goto_pp"], [name="goto_gc"]', function() {
      if ($('#agree').is(':checked')) {
        $(this).submit();
      }
      else {
        alert("You must agree with the terms and conditions of sales to check out.");
        return false;
      }
    });
  });

 

laketko
Excursionist
13 1 2

This is an accepted solution.

I found a solution:

 

the mentioned code above should be placed into custom.js file.

 

Thx!

JadeCloud9
Visitor
1 0 0

Hi There,

 

I'm trying to follow your instructions on where to paste the code but I can't find this file - or is it one that you create?

 

My check box is currently not compulsory - the same issue so trying to find where to post the pop up alert code?

 

Thanks in advance for any help you can provide 😉

 

Jade

CassieP
Tourist
4 0 4

I am having the exact issue using the Impulse Theme. Any advice? The same solution isn't a fix. 😞

Jahid-KlinKode
Excursionist
145 1 4

Hi @laketko, improve your Shopify cart functionality by following the instructions in this video on adding a 'Agree to Terms and Conditions' checkbox, without the use of apps: https://www.youtube.com/watch?v=smyIqWWuZvs