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

Want to make Comments textbox a required field..how?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-26-2006, 08:38 PM
 
simco simco is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 45
 

Default Want to make Comments textbox a required field..how?

We're going to change the Comments field in the checkout area to something other use and want to know how I would make it required. Thanks.
__________________
www.templatedepot.com

PROGRAM: X-CART PRO
VERSION: Version 4.0.14
RUNNING ON: Linux Enterprise 3.0
Reply With Quote
  #2  
Old 01-27-2006, 01:38 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

You would need to incoroprate it into the JavaScript routine that checks to make sure fields are required.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-14-2006, 07:03 AM
 
simco simco is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 45
 

Default

balinor, thanks for that response and I know this is weeks later. I've been staring at the various templates/modules/code until my eyeballs have popped outta my skull trying to figure out exactly which and how many different little templates and files need to be edited to make this one field be 'required'.

To recap, during the checkout process at the 'summary' page where all the data from the personal/billing/shipping input is displayed, there is a field for Customer Comments (or 'Notes'). We wish to make THAT field required (since we've modified the text related to the field to ask for customer input).

If I could ask a HUGE favor...

* exactly what files/templates/files have to be modified?
* exactly what code needs to be replaced (or added)
* and, what is the code that needs to be added?

After hours of digging I find this:
<TD>{if $default_fields.firstname.required eq 'Y'}<FONT class="Star">*</FONT>{else}{/if}</TD>

Which basically places the red asterisk in front of the required field before the text. But I can't find where anything specifically steates to 'MAKE THE XXX FIELD REQUIRED"

Any help is greatly and humbly appreciated.
__________________
www.templatedepot.com

PROGRAM: X-CART PRO
VERSION: Version 4.0.14
RUNNING ON: Linux Enterprise 3.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 01:36 AM.

   

 
X-Cart forums © 2001-2020