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

added SQL statement at checkout.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-23-2003, 02:08 PM
 
turbocycle turbocycle is offline
 

Newbie
  
Join Date: Apr 2003
Posts: 1
 

Default added SQL statement at checkout.

What I need to do is add some information (based on product ordered) into a database at the time that checkout is completed (and successful). I have added a value to product called MID which shows the database the user is to be added to.

So, this is my SQL statement: $sql="INSERT INTO $products[prod_num].mid ( `ID` ,`Name_First` , `Name_Last` , `Address_One` ,`Address_Two` , `City` , `State` ,`Postal_Code` , `country` , `email_address` ,`completed` ) VALUES (
'', $order.firstname, $order.lastname, $order.s_address, NULL , $order.s_city, $order.s_statename, $order.s_zipcode, $order.s_countryname, $order.email, 'N');";

Where does this need to go to get processed at checkout for each item ordered? I'm pulling my hair out!
Reply With Quote
  #2  
Old 04-23-2003, 06:37 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Have you poked around include/func.php? particularly func_place_order();
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
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 10:15 AM.

   

 
X-Cart forums © 2001-2020