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

Add required field to checkout

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-09-2004, 10:35 PM
 
Watersweb Watersweb is offline
 

Member
  
Join Date: Mar 2004
Posts: 14
 

Default Add required field to checkout

I want to add a field to the checkout form that would require my customers to tell me what domain they wish to use my products on. How can I do this?

Thank you!

x-cart 3.4.12
Reply With Quote
  #2  
Old 06-10-2004, 04:20 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

You can do this on a per product basis if that applies better. Use the product options and do a product validation that makes it required to fill in. Something like this may do what you want it to:

Code:
if (product_option('Domain').value == '') { alert('Domain must be specified before adding to cart.'); return false; }

HTH!

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


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 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 02:25 PM.

   

 
X-Cart forums © 2001-2020