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

Add Disclaimer Checkbox to Products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 11-06-2013, 07:37 AM
 
screamindemon screamindemon is offline
 

Newbie
  
Join Date: Mar 2012
Location: Trenton, NJ
Posts: 9
 

Default Add Disclaimer Checkbox to Products

I own a Hot Sauce Company. Some of the products are medium to hot, while others are so hot that they require a disclaimer in order to be purchased

How do I add a disclaimer checkbox to the specific product pages that I deem necessary?
__________________
Screamin Demon Fiery Foods
Reply With Quote
  #2  
Old 11-06-2013, 06:37 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Add Disclaimer Checkbox to Products

There is not a simple answer unfortunately, what you want to do is going to require some in depth knowledge of Javascript and smarty templates. You could probably accomplish this with product options. But it won't give you a checkbox.

I would first setup a custom field using the extra fields module. Then write some code in the product page template that checks if this field has a "Y" in it. If it does you display the checkbox. Forcing them to use the checkbox is where the Javascript knowledge is going to be necessary.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 11-06-2013, 06:55 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default Re: Add Disclaimer Checkbox to Products

It will be probably easier and better to have the disclaimer on the checkout page.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 11-07-2013, 04:22 PM
 
screamindemon screamindemon is offline
 

Newbie
  
Join Date: Mar 2012
Location: Trenton, NJ
Posts: 9
 

Default Re: Add Disclaimer Checkbox to Products

Thanks guys.
__________________
Screamin Demon Fiery Foods
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 05:06 PM.

   

 
X-Cart forums © 2001-2020