Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Terms of service checkbox (agreement) for specific products

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-24-2015, 04:59 AM
 
Burpomatic Burpomatic is offline
 

Member
  
Join Date: Jan 2015
Posts: 18
 

Question Terms of service checkbox (agreement) for specific products

Hello,

I would like to add a "I understand this and that" checkbox to X Cart 5. In a way, it would be a bit similar to the one discussed in this thread (x cart 4)

If possible, I would like this checkbox to be mandatory only for specific products (I have added an * to those products' names but I'm open for any other way to differentiate them)

I've thought of two ways to implement this :
1. Prevent users from adding those specific products in the cart, by disabling or hiding the add-to-cart button with JS code unless they check the checkbox (which would be an attribute Yes/No field, to prevent users from buying without going through the product details page)

2. Prevent users from completing checkout, by disabling or hiding the Place Order button with JS code unless they check the checkbox (which would either be right in the checkout page, or in the Terms of Service popup).

Could anyone help me with this?

Thanks a lot,
__________________
Alex

Business 5.3.2.5 Crisp White
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:52 AM.

   

 
X-Cart forums © 2001-2020