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

Inserting new field to submit upon order

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

Advanced Member
  
Join Date: Apr 2006
Posts: 30
 

Default Inserting new field to submit upon order

For the products we sell, we require that the user agree to our Disclaimer. This forum got me going on a template addition to disable the Submit Order button until the user types "agree" into a text field under some agreement text, but now we want to store this text in the database to have proof that they did indeed enter their agreement (in case someone has JS disabled).

So basically, I just want to insert the text in that text field into the database when the order is submitted. I'm very MySql/PHP savvy, but I'm not sure which php file actually inserts order info into the DB. Where would I go to add this insertion?

Thanks!
__________________
X-cart Version 4.0.18
Reply With Quote
  #2  
Old 05-10-2006, 07:08 PM
 
balinor balinor is offline
 

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

Default

A similar solution here:

http://forum.x-cart.com/viewtopic.php?t=20888
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-11-2006, 08:43 AM
 
andholt andholt is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 30
 

Default

Quote:
Originally Posted by balinor

Thanks for the link, but I already have the disabled Submit Order button working, I just need to find the file that inserts all submitted order info into the db. Any ideas?

Thanks again!
__________________
X-cart Version 4.0.18
Reply With Quote
  #4  
Old 05-12-2006, 01:32 AM
 
andholt andholt is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 30
 

Default

Does anyone know which php file is used to insert the submitted order info into the db?
__________________
X-cart Version 4.0.18
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 07:25 AM.

   

 
X-Cart forums © 2001-2020