Add agree to terms - Theme Warehouse

Solved
Highlighted
New Member
6 0 0

Hi 

 

I am having issues while following this guide: https://community.shopify.com/c/Shopify-Design/Cart-Add-an-Agree-to-terms-and-conditions-checkbox/m-...

 

I can't seem to make it work. I have followed the guide and added the codes, to the requested areas in this guide

 

Can anyone help?

 

The theme is Warehouse

 

Webpage: www.aerosoftshop.com 

 

- Kind regards Mike

0 Likes
Highlighted
Shopify Partner
582 69 93

@Aerosoftshop 

Mike, I couldn't see any code on the page, which liquid file did you make a change to?

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

Skype : lokendra.panwar1
0 Likes
Highlighted
New Member
6 0 0

Hi @Propero 

I added the codes to: cart-template.liquid and theme.js

0 Likes
Highlighted
Shopify Partner
582 69 93

I think there are 2 issues

1) the link to T&C is not clickable for that please update the code

<label style="display:inline; float:none" for="agree">
    I agree with the " <a href="https://aerosoftshop.com/pages/terms"> " terms and conditions</a>.
  </label>

remove the quotes from here  " <a href="https://aerosoftshop.com/pages/terms"> " 

the second issue is of the checkbox event. apparently either the script is not loading which you placed in theme.js, need to isolate problem whether its only particular script or entire them.js is not laoding

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

Skype : lokendra.panwar1
0 Likes
Highlighted
New Member
6 0 0

Fixed the link now, thanks! 

I'm a little green in this area. What would be the best option to do, to solve the 2nd part? 

0 Likes
Highlighted
Shopify Partner
582 69 93

@Aerosoftshop , It could be a small issue but can only be found by doing some debugging from the backend. I can send you a request for collaboration

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

Skype : lokendra.panwar1
0 Likes
Highlighted
New Member
6 0 0

@Propero 

I would appreciate it very much, if you do that. 

0 Likes
Highlighted
Shopify Partner
582 69 93

@Aerosoftshop  could you please check your admin page and accept the request

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

Skype : lokendra.panwar1
0 Likes
Highlighted
New Member
6 0 0

I have accepted the request now 

0 Likes
Highlighted
Shopify Partner
582 69 93

This is an accepted solution.

Please check this and publish it - if good.

https://drx290v5215lk92i-33545650312.shopifypreview.com

You needed to include the theme.js and also appropriate jQuery

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

Skype : lokendra.panwar1
1 Like